/* Geld (V2). App.razor (KERN, bevroren) moet hier nog naar linken — zie docs/besluiten-nacht/vervolg-geld.md. */

.oh-formula-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 16px;
    padding: 1rem;
}

.oh-formula-term {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
}

.oh-formula-value {
    font-size: 20px;
    white-space: nowrap;
}

.oh-formula-label {
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
}

.oh-formula-op {
    font: 500 20px/1.5 var(--oh-mono);
    color: var(--mud-palette-text-secondary);
    min-width: 1ch;
}

.oh-formula-result .oh-formula-value {
    font-weight: 700;
}

/* kassabon (onder 600 px): operator in een eigen kolom links, uitkomst onder een streep */
.oh-formula-strip.oh-kassabon {
    display: grid;
    grid-template-columns: 1.5ch 1fr;
    gap: 8px 12px;
    align-items: baseline;
}

.oh-kassabon .oh-formula-value {
    font-size: 18px;
}

.oh-kassabon .oh-formula-eq,
.oh-kassabon .oh-formula-result {
    border-top: 1px solid var(--mud-palette-divider);
    padding-top: 8px;
}

.oh-formula-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem 1rem;
}

.oh-money-legend {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--mud-palette-text-secondary);
}

.oh-money-swatch, .oh-money-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.oh-money-dot {
    background: var(--mud-palette-warning);
    margin-left: 4px;
}

.oh-money-filled {
    background: var(--mud-palette-primary);
}

.oh-money-grid-wrap {
    overflow: auto;
    max-width: 100%;
}

table.oh-money-grid {
    border-collapse: collapse;
    width: auto;
    min-width: 100%;
}

.oh-money-grid thead th {
    position: sticky;
    top: 0;
    background: var(--oh-blad-kop);
    z-index: 2;
    padding: 0.35rem 0.75rem;
    min-width: 112px;
    text-align: right;
    white-space: nowrap;
    font-weight: 500;
}

.oh-money-grid tbody tr {
    border-top: 1px solid var(--oh-blad-lijn);
}

.oh-money-label-col {
    position: sticky;
    left: 0;
    background: var(--oh-kaart);
    z-index: 1;
    min-width: 200px;
    text-align: left;
    font-family: "Roboto", sans-serif;
    padding: 0.25rem 0.75rem 0.25rem 0.25rem;
}

.oh-money-grid thead .oh-money-label-col {
    background: var(--oh-blad-kop);
    z-index: 3;
}

.oh-money-cell {
    height: 32px;
    padding: 0.25rem 0.75rem;
    text-align: right;
    position: relative;
    cursor: pointer;
    white-space: nowrap;
}

@media (max-width: 599.98px) {
    .oh-money-label-col {
        min-width: 128px;
        max-width: 160px;
        white-space: normal;
    }
}

.oh-money-cell-filled {
    color: var(--mud-palette-primary);
}

.oh-money-cell-error {
    color: var(--mud-palette-error);
}

.oh-money-cellref {
    display: block;
    font-size: 0.65rem;
    color: var(--mud-palette-text-disabled);
}

.oh-mono {
    font-family: "Roboto Mono", monospace;
    font-variant-numeric: tabular-nums;
}
