/* Eccount UI kit: the shared look of the framed shell pages (header, quick chips, tags, group list, table).
   Colours come from MudBlazor theme variables only, so light and dark mode both work. */

.ecc-pagehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ecc-pagehead__title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.ecc-pagehead__h.mud-typography { font-weight: 600; color: var(--mud-palette-text-primary); }
.ecc-pagehead__sum { font-size: var(--ecc-fs-caption); color: var(--mud-palette-text-secondary); }
.ecc-pagehead__actions { display: flex; align-items: center; gap: 8px; }

.ecc-quickchips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.ecc-quickchips__chip {
    font: inherit; font-size: var(--ecc-fs-caption); line-height: 1; cursor: pointer;
    padding: 6px 12px; border-radius: 999px; border: 1px solid transparent;
    background: var(--mud-palette-background-gray); color: var(--mud-palette-text-secondary);
}
.ecc-quickchips__chip:hover { background: var(--mud-palette-action-default-hover); }
.ecc-quickchips__chip.is-on { background: color-mix(in srgb, var(--mud-palette-primary) 14%, transparent); color: var(--mud-palette-primary); font-weight: 600; }
.ecc-quickchips__chip:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 1px; }

.ecc-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.ecc-tag--neutral { background: var(--mud-palette-background-gray); color: var(--mud-palette-text-secondary); }
.ecc-tag--danger  { background: color-mix(in srgb, var(--mud-palette-error) 14%, transparent);   color: var(--mud-palette-error); }
.ecc-tag--warning { background: color-mix(in srgb, var(--mud-palette-warning) 18%, transparent); color: var(--mud-palette-warning-darken, var(--mud-palette-warning)); }
.ecc-tag--success { background: color-mix(in srgb, var(--mud-palette-success) 16%, transparent); color: var(--mud-palette-success); }
.ecc-tag--info    { background: color-mix(in srgb, var(--mud-palette-primary) 14%, transparent); color: var(--mud-palette-primary); }

.ecc-grouplist { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; padding-right: 4px; }
.ecc-grouplist__row {
    font: inherit; font-size: var(--ecc-fs-caption); display: flex; justify-content: space-between; gap: 8px; text-align: left;
    padding: 7px 10px; border: 0; border-radius: 999px; cursor: pointer;
    background: transparent; color: var(--mud-palette-text-secondary);
}
.ecc-grouplist__row:hover { background: var(--mud-palette-action-default-hover); }
.ecc-grouplist__row.is-on { background: color-mix(in srgb, var(--mud-palette-primary) 14%, transparent); color: var(--mud-palette-primary); font-weight: 600; }
.ecc-grouplist__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ecc-grouplist__val { flex: none; }

/* Two-pane body: group list on the left, table filling the rest. Height comes from the parent flex column. */
.ecc-split { display: flex; gap: 12px; min-height: 0; flex: 1; }
.ecc-split__side { width: 190px; flex: none; min-height: 0; display: flex; flex-direction: column; }
.ecc-split__main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }

/* Table: sticky header, hairline rows, no card chrome. Put class ecc-table on MudTable. */
.ecc-table.mud-table { box-shadow: none; border: 0; background: transparent; display: flex; flex-direction: column; min-height: 0; flex: 1; }
.ecc-table .mud-table-container { flex: 1; min-height: 0; }
.ecc-table .mud-table-head .mud-table-cell { font-weight: 600; font-size: var(--ecc-fs-caption); color: var(--mud-palette-text-secondary); background: var(--mud-palette-surface); }
.ecc-table .mud-table-body .mud-table-cell { font-size: var(--ecc-fs-body); padding-top: 6px; padding-bottom: 6px; }
.ecc-table .mud-table-pagination { border-top: 1px solid var(--mud-palette-lines-default); }
.ecc-num { font-variant-numeric: tabular-nums; }
