/* Eccount UI depth layer: soft shadows, tinted surfaces and a little colour on top of the kit.
   Tone stays EGAT blue (the MudBlazor primary); every colour is mixed from theme variables so dark mode keeps working.
   Remove this file to return to the flat look. */

:root {
    --ecc-shell: color-mix(in srgb, var(--mud-palette-primary) 9%, var(--mud-palette-background));
    --ecc-tint: color-mix(in srgb, var(--mud-palette-primary) 6%, var(--mud-palette-surface));
    --ecc-tint-strong: color-mix(in srgb, var(--mud-palette-primary) 14%, var(--mud-palette-surface));
    --ecc-ring: color-mix(in srgb, var(--mud-palette-primary) 22%, transparent);
    --ecc-shadow-1: 0 1px 2px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(0, 97, 153, 0.08);
    --ecc-shadow-2: 0 2px 4px rgba(15, 23, 42, 0.06), 0 10px 28px rgba(0, 97, 153, 0.14);
    --ecc-grad: linear-gradient(135deg, #006199 0%, #0284C7 100%);
}

/* Shell and the framed work panel */
.ecc-main.mud-main-content {
    background: linear-gradient(180deg, var(--ecc-shell) 0%, color-mix(in srgb, var(--mud-palette-primary) 4%, var(--mud-palette-background)) 100%);
}
.ecc-frame {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 10%, var(--mud-palette-lines-default));
    box-shadow: var(--ecc-shadow-2);
}

/* Page title gets a colour accent */
.ecc-pagehead__h.mud-typography { color: var(--mud-palette-primary); letter-spacing: 0.1px; }
.ecc-pagehead__sum {
    padding: 2px 10px; border-radius: 999px;
    background: var(--ecc-tint-strong); color: var(--mud-palette-primary); font-weight: 500;
}
.ecc-pagehead__actions .mud-button-filled.mud-button-filled-primary {
    background: var(--ecc-grad); box-shadow: 0 2px 6px rgba(0, 97, 153, 0.35); border-radius: 8px;
}
.ecc-pagehead__actions .mud-button-filled.mud-button-filled-primary:hover { box-shadow: 0 4px 12px rgba(0, 97, 153, 0.45); filter: brightness(1.05); }
.ecc-pagehead__actions .mud-button-outlined { border-radius: 8px; background: var(--mud-palette-surface); box-shadow: var(--ecc-shadow-1); }

/* Filter strip becomes a soft raised bar */
.ecc-filterbar {
    background: var(--ecc-tint);
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 14%, transparent);
    border-radius: 12px;
    padding: 8px 10px;
    box-shadow: var(--ecc-shadow-1);
}
.ecc-filterbar .mud-input.mud-input-outlined { background: var(--mud-palette-surface); border-radius: 8px; }

/* Quick chips: the chosen one is a coloured, lifted pill */
.ecc-quickchips__chip { background: var(--mud-palette-surface); border-color: var(--mud-palette-lines-default); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
.ecc-quickchips__chip.is-on { background: var(--ecc-grad); color: #fff; border-color: transparent; box-shadow: 0 3px 8px rgba(0, 97, 153, 0.35); }

/* Tabs */
.ecc-tabs-fill .mud-tab-slider { height: 3px; border-radius: 3px 3px 0 0; background: var(--ecc-grad); }
.ecc-tabs-fill .mud-tabs-tabbar .mud-tab.mud-tab-active { background: linear-gradient(180deg, transparent 0%, var(--ecc-tint) 100%); border-radius: 8px 8px 0 0; }

/* Group list: raised selected row with a colour edge */
.ecc-grouplist__row { border-radius: 10px; }
.ecc-grouplist__row.is-on {
    background: var(--ecc-tint-strong); box-shadow: var(--ecc-shadow-1), inset 3px 0 0 var(--mud-palette-primary);
}

/* Table: tinted header, framed body, row hover tint */
.ecc-split__main .ecc-table .mud-table-container {
    border: 1px solid var(--mud-palette-lines-default); border-radius: 12px; box-shadow: var(--ecc-shadow-1);
}
.ecc-table .mud-table-head .mud-table-cell { background: var(--ecc-tint-strong); color: var(--mud-palette-primary); }
.ecc-table .mud-table-body .mud-table-row:hover .mud-table-cell { background: var(--ecc-tint); }
.ecc-table .mud-table-body .mud-table-row:nth-child(even) .mud-table-cell { background: color-mix(in srgb, var(--mud-palette-primary) 2.5%, transparent); }

/* Tags: slim ring so they read as little badges */
.ecc-tag { box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 22%, transparent); }

/* ===== Dashboard blocks (blended from the accounts-payable pages): KPI cards, chart cards, alert strip ===== */
:root { --ecc-card-shadow: 0 1px 2px rgba(20, 33, 61, 0.06), 0 4px 12px rgba(20, 33, 61, 0.07); --ecc-card-radius: 14px; }

.ecc-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 10px 4px 6px; }
.ecc-scroll > * { flex-shrink: 0; }
.ecc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.ecc-grid2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; }
.ecc-grid2--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .ecc-grid2, .ecc-grid2--even { grid-template-columns: 1fr; } }

.ecc-kpi {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l h" "v v"; align-items: baseline; column-gap: 8px;
    min-width: 0; padding: 8px 16px 10px; background: var(--mud-palette-surface);
    border-radius: var(--ecc-card-radius); box-shadow: var(--ecc-card-shadow);
}
.ecc-kpi__label { grid-area: l; font-weight: 500; font-size: var(--ecc-fs-caption); color: var(--mud-palette-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecc-kpi__hint { grid-area: h; font-size: var(--ecc-fs-caption); color: var(--mud-palette-text-secondary); white-space: nowrap; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.ecc-kpi__value { grid-area: v; font-size: 1.2rem; font-weight: 700; line-height: 1.3; color: var(--mud-palette-text-primary); }
.ecc-kpi--primary .ecc-kpi__value { color: var(--mud-palette-primary); }
.ecc-kpi--warning .ecc-kpi__value { color: var(--mud-palette-warning); }
.ecc-kpi--success .ecc-kpi__value { color: var(--mud-palette-success); }
.ecc-kpi--danger .ecc-kpi__value { color: var(--mud-palette-error); }

.ecc-card { background: var(--mud-palette-surface); border-radius: var(--ecc-card-radius); box-shadow: var(--ecc-card-shadow); overflow: hidden; min-width: 0; }
.ecc-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px 6px; }
.ecc-card__head h3 { margin: 0; font-size: var(--ecc-fs-title); font-weight: 600; color: var(--mud-palette-text-primary); }
.ecc-card__note { font-size: var(--ecc-fs-caption); color: var(--mud-palette-text-secondary); }
.ecc-card__body { padding: 0 8px 10px; }

.ecc-bars { display: grid; grid-template-columns: repeat(var(--ecc-bars-n, 12), minmax(0, 1fr)); gap: 8px; padding: 6px 12px 6px; align-items: end; }
.ecc-bar { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.ecc-bar__val { height: 14px; font-size: 10px; color: var(--mud-palette-text-secondary); white-space: nowrap; }
.ecc-bar__col { display: flex; align-items: flex-end; width: 100%; height: 120px; border-radius: 8px; background: color-mix(in srgb, var(--mud-palette-primary) 7%, transparent); }
.ecc-bar__fill { display: block; width: 100%; min-height: 2px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--mud-palette-primary) 60%, transparent), color-mix(in srgb, var(--mud-palette-primary) 35%, transparent)); transition: height 300ms ease; }
.ecc-bar.is-now .ecc-bar__fill, .ecc-bar:hover .ecc-bar__fill { background: linear-gradient(180deg, #0284C7, #006199); }
.ecc-bar__lbl { font-size: var(--ecc-fs-caption); color: var(--mud-palette-text-secondary); }

.ecc-donut-wrap { display: flex; align-items: center; gap: 18px; padding: 6px 12px 8px; flex-wrap: wrap; }
.ecc-donut { width: 132px; height: 132px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 97, 153, 0.18); }
.ecc-donut__hole { width: 84px; height: 84px; border-radius: 50%; background: var(--mud-palette-surface); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 1px 3px rgba(20, 33, 61, 0.12); }
.ecc-donut__big { font-size: 1.15rem; font-weight: 700; line-height: 1; }
.ecc-donut__sm { font-size: var(--ecc-fs-caption); color: var(--mud-palette-text-secondary); }
.ecc-legend { list-style: none; margin: 0; padding: 0; flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ecc-legend__row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 48px; gap: 8px; align-items: center; font-size: var(--ecc-fs-body); }
.ecc-legend__dot { width: 10px; height: 10px; border-radius: 50%; }
.ecc-legend__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ecc-legend__amt { font-weight: 600; }
.ecc-legend__pct { text-align: right; color: var(--mud-palette-text-secondary); }

.ecc-alertstrip {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 16px;
    border-radius: var(--ecc-card-radius); box-shadow: var(--ecc-card-shadow);
    background: color-mix(in srgb, var(--mud-palette-warning) 14%, var(--mud-palette-surface));
    border-left: 4px solid var(--mud-palette-warning); font-size: var(--ecc-fs-body);
}
.ecc-alertstrip__link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--mud-palette-primary); font-weight: 600; }
.ecc-alertstrip__link:hover { text-decoration: underline; }

.ecc-meter { display: inline-block; width: 90px; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent); vertical-align: middle; overflow: hidden; }
.ecc-meter > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #006199, #0284C7); }

/* ===== Type scale (owner 2026-11-24): smaller text; bold only on titles, table heads, selected items and key numbers ===== */
@media (min-width: 1024px) { :root { --ecc-fs-body: 12.5px; --ecc-fs-caption: 11.5px; --ecc-fs-title: 14px; } }
.ecc-frame { font-size: var(--ecc-fs-body); }
.ecc-pagehead__h.mud-typography { font-size: 1.05rem; font-weight: 600; }
.ecc-pagehead__sum { font-weight: 400; }
.ecc-card__head h3 { font-size: var(--ecc-fs-title); font-weight: 600; }
.ecc-kpi__hint { font-weight: 400; font-size: 11px; }
.ecc-table .mud-table-head .mud-table-cell, .ecc-card .mud-simple-table th { font-size: 11.5px; font-weight: 600; }
.ecc-table .mud-table-body .mud-table-cell, .ecc-card .mud-simple-table td { font-size: var(--ecc-fs-body); font-weight: 400; }
.ecc-tag { font-size: 11px; font-weight: 500; }
.ecc-quickchips__chip { font-weight: 400; } .ecc-quickchips__chip.is-on { font-weight: 600; }
.ecc-grouplist__row { font-weight: 400; } .ecc-grouplist__row.is-on { font-weight: 600; }
.ecc-legend__name { font-weight: 400; } .ecc-legend__amt { font-weight: 600; }
.ecc-alertstrip { font-size: var(--ecc-fs-body); }
.ecc-tabs-fill .mud-tabs-tabbar .mud-tab { font-size: 12.5px; font-weight: 500; }
.ecc-tabs-fill .mud-tabs-tabbar .mud-tab.mud-tab-active { font-weight: 600; }

/* Font Awesome icons inside MudBlazor buttons/icons: keep them crisp and sized with the text */
.mud-icon-root.fa-solid, .mud-icon-root.fa-regular, .mud-icon-root.fa-brands {
    display: inline-flex; align-items: center; justify-content: center; line-height: 1; text-align: center;
    width: 1.25em; height: 1.25em; font-size: 15px; flex: none;
}
/* Per place: every icon sits in a fixed square so labels line up and the glyph is centred and big enough to read */
.mud-button-root .mud-icon-root.fa-solid { font-size: 14px; width: 16px; height: 16px; }
.mud-nav-link .mud-nav-link-icon.fa-solid { font-size: 16px; width: 22px; height: 22px; margin-right: 10px; }
.mud-icon-button .mud-icon-root.fa-solid { font-size: 18px; width: 22px; height: 22px; }
.ecc-tile-icon .mud-icon-root.fa-solid { font-size: 21px; width: 26px; height: 26px; }
.ecc-tile-arrow.fa-solid { font-size: 14px; width: 18px; height: 18px; }
.ecc-hero-pill .mud-icon-root.fa-solid, .ecc-status-pill .mud-icon-root.fa-solid { font-size: 13px; width: 16px; height: 16px; }
.ecc-btn-excel.mud-button-outlined { color: color-mix(in srgb, #1D6F42 78%, var(--mud-palette-text-primary)); border-color: color-mix(in srgb, #1D6F42 55%, transparent); }
.ecc-btn-excel.mud-button-outlined:hover { background: color-mix(in srgb, #1D6F42 10%, transparent); }
.ecc-btn-pdf.mud-button-outlined { color: color-mix(in srgb, #C62828 78%, var(--mud-palette-text-primary)); border-color: color-mix(in srgb, #C62828 55%, transparent); }
.ecc-btn-pdf.mud-button-outlined:hover { background: color-mix(in srgb, #C62828 10%, transparent); }

/* ===== One line, ellipsis (owner 2026-11-24): every text in the kit stays on one line and ends with ... when too long ===== */
.ecc-ellipsis, .ecc-pagehead__h, .ecc-pagehead__sum, .ecc-card__head h3, .ecc-card__note, .ecc-alertstrip__text,
.ecc-tag__text, .ecc-grouplist__label, .ecc-legend__name, .ecc-kpi__value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ecc-pagehead__title { flex-wrap: nowrap; }
.ecc-pagehead__sum { flex: 0 1 auto; max-width: 60vw; }
.ecc-table .mud-table-body .mud-table-cell, .ecc-card .mud-simple-table td, .ecc-card .mud-simple-table th,
.ecc-table .mud-table-head .mud-table-cell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.ecc-table .mud-table-cell .ecc-cell-main { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ecc-table .mud-table-cell .mud-typography { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ecc-tag { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; }
.ecc-kpi { overflow: hidden; }

/* ===== Chips, tags, cards with icons ===== */
.ecc-tag__icon { font-size: 10px; flex: none; }
.ecc-quickchips__chip { display: inline-flex; align-items: center; gap: 6px; }
.ecc-quickchips__icon { font-size: 11px; opacity: 0.85; }
.ecc-card__head h3 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ecc-card__head h3 > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ecc-card__icon {
    flex: none; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
    border-radius: 8px; color: var(--mud-palette-primary); background: var(--ecc-tint-strong);
}
.ecc-kpi.has-icon { grid-template-columns: 38px minmax(0, 1fr) auto; grid-template-areas: "b l h" "b v v"; column-gap: 10px; align-items: center; }
.ecc-kpi__badge {
    grid-area: b; width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
    color: var(--mud-palette-primary); background: var(--ecc-tint-strong); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mud-palette-primary) 16%, transparent);
}
.ecc-kpi--warning .ecc-kpi__badge { color: var(--mud-palette-warning); background: color-mix(in srgb, var(--mud-palette-warning) 16%, var(--mud-palette-surface)); box-shadow: none; }
.ecc-kpi--success .ecc-kpi__badge { color: var(--mud-palette-success); background: color-mix(in srgb, var(--mud-palette-success) 14%, var(--mud-palette-surface)); box-shadow: none; }
.ecc-kpi--danger  .ecc-kpi__badge { color: var(--mud-palette-error);   background: color-mix(in srgb, var(--mud-palette-error) 14%, var(--mud-palette-surface)); box-shadow: none; }
.ecc-alertstrip { gap: 10px; }
.ecc-alertstrip__icon { color: var(--mud-palette-warning); flex: none; }
.ecc-alertstrip__text { flex: 1; }
.ecc-alertstrip__link { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 6px; }
.ecc-alertstrip__link i { font-size: 11px; }
.ecc-table .mud-table-cell > div, .ecc-card .mud-simple-table td > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ecc-muted { color: var(--mud-palette-text-secondary); font-weight: 400; }
.ecc-note { color: var(--mud-palette-info); font-weight: 400; }
.ecc-kpi.has-icon { grid-template-columns: 38px minmax(0, 1fr); grid-template-areas: "b l" "b v" "b h"; row-gap: 0; padding: 10px 14px; }
.ecc-kpi.has-icon .ecc-kpi__hint { max-width: none; text-align: left; }
.ecc-kpi.has-icon .ecc-kpi__badge { align-self: center; }
.ecc-table .mud-table-cell { padding-left: 8px; padding-right: 8px; }
.ecc-table .mud-table-body .mud-table-cell { max-width: 230px; }

/* ===== Round 2026-11-24 (owner): KPI back to the two-line mockup shape, shorter charts, tools in the tab row, denser rows ===== */
.ecc-kpi, .ecc-kpi.has-icon { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l h" "v v"; column-gap: 8px; row-gap: 0; padding: 6px 14px 8px; }
.ecc-kpi__badge { display: none; }
.ecc-kpi__icon { font-size: 11px; margin-right: 5px; color: var(--mud-palette-primary); opacity: 0.9; }
.ecc-kpi--warning .ecc-kpi__icon { color: var(--mud-palette-warning); }
.ecc-kpi--success .ecc-kpi__icon { color: var(--mud-palette-success); }
.ecc-kpi--danger .ecc-kpi__icon { color: var(--mud-palette-error); }
.ecc-kpi__value { font-size: 1.15rem; line-height: 1.25; }
.ecc-kpi.has-icon .ecc-kpi__hint { text-align: right; max-width: 190px; }

.ecc-bar__col { height: 76px; }
.ecc-bars { padding: 2px 12px 2px; gap: 6px; }
.ecc-bar__lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.ecc-donut { width: 104px; height: 104px; }
.ecc-donut__hole { width: 66px; height: 66px; }
.ecc-donut__big { font-size: 0.95rem; }
.ecc-donut-wrap { padding: 2px 12px 4px; gap: 14px; }
.ecc-legend { gap: 3px; font-size: var(--ecc-fs-caption); }
.ecc-card__head { padding: 8px 14px 2px; }
.ecc-scroll { gap: 10px; padding-top: 8px; }

/* Search + sort live in the tab row, right aligned */
.ecc-tabs-wrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ecc-tabbar-tools { position: absolute; right: 4px; top: 2px; z-index: 2; display: flex; align-items: center; gap: 10px; }
.ecc-tabbar-tools .mud-input-control { margin: 0; }
.ecc-tabbar-tools .mud-input.mud-input-outlined { height: 32px; border-radius: 8px; background: var(--mud-palette-surface); }
.ecc-tabbar-tools .mud-input-outlined .mud-input-slot { padding-top: 5px; padding-bottom: 5px; font-size: 12.5px; }

/* Denser table rows (more rows per screen) */
.ecc-table .mud-table-body .mud-table-cell { padding-top: 3px; padding-bottom: 3px; }
.ecc-table .mud-icon-button { padding: 3px; }
.ecc-table .mud-table-body .mud-table-row { height: auto; }
.ecc-tag { padding-top: 1px; padding-bottom: 1px; line-height: 1.35; }
.ecc-tabs-fill .mud-tabs-tabbar .mud-tab { min-width: 0; padding-left: 14px; padding-right: 14px; flex: 0 0 auto; }
.ecc-tabs-fill .mud-tabs-tabbar-content, .ecc-tabs-fill .mud-tabs-tabbar-wrapper { justify-content: flex-start; }
.ecc-tabbar-tools .mud-input-control { width: 240px !important; }
.ecc-tabs-fill .mud-tabs-tabbar .mud-tab.mud-tab { min-width: 0 !important; }

/* Pager hugs the bottom of the frame: shorter toolbar, smaller bottom padding */
.ecc-frame { padding-bottom: 8px; }
.ecc-table .mud-table-pagination .mud-toolbar, .ecc-table .mud-table-pagination-toolbar { min-height: 36px; height: 36px; }
.ecc-table .mud-table-pagination .mud-select .mud-input-root, .ecc-table .mud-table-pagination .mud-input-control { margin-top: 0; margin-bottom: 0; }
.ecc-table .mud-table-pagination .mud-table-pagination-caption { margin-top: 0; margin-bottom: 0; line-height: 36px; }
.ecc-table .mud-table-pagination .mud-icon-button { padding: 4px; }
.ecc-main .ecc-frame { padding-bottom: 6px; }
.ecc-table .mud-table-pagination .mud-toolbar { align-items: center; }
.ecc-table .mud-table-pagination .mud-table-pagination-select, .ecc-table .mud-table-pagination .mud-select { margin: 0 8px 0 0; align-self: center; }
.ecc-table .mud-table-pagination .mud-select .mud-input-control, .ecc-table .mud-table-pagination .mud-select .mud-input { margin: 0; }
.ecc-table .mud-table-pagination .mud-table-pagination-spacer { flex: 1; }
.ecc-table .mud-table-pagination { overflow: hidden !important; height: auto; flex: none; }

/* ===== Home page (owner 2026-11-24): compact hero, chip bar, grouped tile grid ===== */
.ecc-home { display: flex; flex-direction: column; gap: 12px; max-width: 1360px; margin: 0 auto; }
.ecc-hero--compact {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-radius: 14px;
    box-shadow: 0 6px 18px -6px rgba(0, 97, 153, 0.35);
}
.ecc-hero__main { min-width: 0; flex: 1; position: relative; z-index: 1; }
.ecc-hero__pills { display: flex; gap: 8px; margin-bottom: 6px; flex-wrap: nowrap; min-width: 0; }
.ecc-hero-pill { min-width: 0; font-size: 11.5px; padding: 2px 10px; }
.ecc-hero-pill i { font-size: 11px; }
.ecc-hero__greet { font-size: 1.05rem; font-weight: 600; color: #fff; line-height: 1.3; }
.ecc-hero__sub { font-size: 12px; color: rgba(255, 255, 255, 0.82); }
.ecc-hero__actions { display: flex; gap: 8px; flex: none; position: relative; z-index: 1; }
.ecc-hero-btn {
    font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 8px; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, 0.45);
}
.ecc-hero-btn:hover { background: rgba(255, 255, 255, 0.12); }
.ecc-hero-btn--solid { background: #fff; color: #006199; border-color: #fff; font-weight: 600; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); }
.ecc-hero-btn--solid:hover { background: #f1f7fb; }
.ecc-hero-btn i { font-size: 13px; }

.ecc-home__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ecc-home__recent { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ecc-home__recent-label { font-size: var(--ecc-fs-caption); font-weight: 600; color: var(--mud-palette-text-secondary); white-space: nowrap; }
.ecc-home__recent-label i { margin-right: 4px; }
.ecc-choicechips__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }

.ecc-home__group { display: flex; flex-direction: column; gap: 8px; }
.ecc-home__grouphead { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--mud-palette-text-primary); min-width: 0; }
.ecc-home__groupicon { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; border-radius: 8px; color: var(--mud-palette-primary); background: var(--ecc-tint-strong); flex: none; }
.ecc-home__groupcount { font-size: 11px; font-weight: 500; padding: 0 8px; border-radius: 999px; color: var(--mud-palette-text-secondary); background: var(--mud-palette-background-gray); flex: none; }

.ecc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 10px; }
.ecc-tile { padding: 8px 12px; min-height: 56px; gap: 10px; border-radius: 12px; height: auto; box-shadow: var(--ecc-shadow-1); border-color: color-mix(in srgb, var(--mud-palette-primary) 10%, var(--mud-palette-lines-default)); min-width: 0; }
.ecc-tile:hover { transform: translateY(-1px); box-shadow: var(--ecc-shadow-2); }
.ecc-tile-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 16px; }
.ecc-tile-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.ecc-tile-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecc-tile.featured .ecc-tile-title { color: var(--mud-palette-primary); }
.ecc-tile-sub { font-size: 11.5px; color: var(--mud-palette-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecc-tile-arrow { font-size: 12px; flex: none; }

/* ===== Main navigation (owner 2026-11-24): denser, one line per item, accent bar on the active item ===== */
.ecc-drawer .mud-nav-link { margin: 1px 8px; padding: 5px 10px; width: calc(100% - 16px); min-height: 34px; font-size: 12.5px; font-weight: 500; border-radius: 10px; }
.ecc-drawer .mud-nav-link .mud-nav-link-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecc-drawer .mud-nav-link:hover:not(.active) { background: color-mix(in srgb, var(--mud-palette-primary) 7%, transparent); }
.ecc-drawer .mud-nav-link.active:not(.mud-nav-link-disabled) {
    background: var(--ecc-tint-strong); color: var(--mud-palette-primary); font-weight: 600;
    box-shadow: var(--ecc-shadow-1), inset 3px 0 0 var(--mud-palette-primary);
}
.ecc-drawer .mud-nav-link.active .mud-nav-link-icon { color: var(--mud-palette-primary); }
.ecc-nav-section-label { font-size: 10.5px; padding: 10px 18px 3px; letter-spacing: 0.05em; }
.ecc-drawer .mud-navmenu { padding-bottom: 8px; }

/* App bar */
.ecc-appbar .ecc-status-pill { box-shadow: var(--ecc-shadow-1); background: var(--mud-palette-surface); }
.ecc-appbar .mud-icon-button { border-radius: 10px; }

/* Icon backplates are circles (owner 2026-11-24: rounded squares looked dated) */
.ecc-tile-icon, .ecc-home__groupicon, .ecc-card__icon, .ecc-kpi__badge { border-radius: 50%; }
.ecc-tile-icon { box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 14%, transparent); }
/* app.css loads after this file and also styles .ecc-tile*, so the home tiles need a stronger selector */
.ecc-tiles .ecc-tile .ecc-tile-icon { border-radius: 50%; width: 38px; height: 38px; font-size: 16px; }
.ecc-tiles .ecc-tile { padding: 8px 12px; min-height: 56px; gap: 10px; border-radius: 12px; height: auto; }

/* ===== Top bar brand: real logo + name only ===== */
.ecc-brand { display: flex; align-items: center; gap: 10px; margin-left: 4px; }
.ecc-brand__logo { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; box-shadow: var(--ecc-shadow-1); display: block; }
.ecc-brand__name { font-size: 15px; font-weight: 700; letter-spacing: 0.4px; color: var(--mud-palette-primary); }

/* ===== Collapsed navigation keeps the icon column (owner 2026-11-24) ===== */
:root { --mud-drawer-width-mini-left: 60px; }
.ecc-drawer.mud-drawer--closed .ecc-nav-section-label { height: 1px; padding: 0; margin: 8px 14px 6px; background: var(--mud-palette-lines-default); font-size: 0; overflow: hidden; }
.ecc-drawer.mud-drawer--closed .mud-nav-link { margin: 2px 8px; padding: 0; width: 44px; justify-content: center; }
.ecc-drawer.mud-drawer--closed .mud-nav-link .mud-nav-link-icon { margin: 0; }
.ecc-drawer.mud-drawer--closed .mud-nav-link .mud-nav-link-text { display: none; }
.ecc-drawer.mud-drawer--closed .mud-nav-link.active:not(.mud-nav-link-disabled) { box-shadow: var(--ecc-shadow-1); }
.ecc-drawer.mud-drawer--closed .ecc-drawer__footer { display: none; }

/* ===== Home shortcuts: round icon buttons replace the old blue welcome card ===== */
.ecc-quick { display: flex; flex-direction: column; gap: 8px; }
.ecc-quick__title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--mud-palette-text-primary); }
.ecc-quick__title i { color: var(--mud-palette-primary); font-size: 12px; }
.ecc-quick__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px 10px; }
.ecc-quick__item {
    font: inherit; cursor: pointer; background: none; border: 0; padding: 8px 4px 6px; border-radius: 14px;
    display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; color: var(--mud-palette-text-primary);
}
.ecc-quick__item:hover { background: color-mix(in srgb, var(--mud-palette-primary) 7%, transparent); }
.ecc-quick__item:hover .ecc-quick__circle { transform: translateY(-2px); box-shadow: var(--ecc-shadow-2); }
.ecc-quick__item:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 1px; }
.ecc-quick .ecc-tile-icon.ecc-quick__circle { width: 52px; height: 52px; border-radius: 50%; font-size: 20px; box-shadow: var(--ecc-shadow-1); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.ecc-quick__label { font-size: 12px; font-weight: 500; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== One 56px column: menu button and the collapsed icon rail share the same centre line ===== */
.ecc-appbar.mud-appbar .mud-toolbar { padding-left: 0; padding-right: 8px; }
.ecc-appbar button[aria-label="เมนู"] { width: 44px; height: 44px; margin: 0 6px 0 6px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.ecc-drawer.mud-drawer--closed .mud-nav-link { margin-left: 6px; margin-right: 6px; width: 44px; }
.ecc-drawer.mud-drawer--closed .mud-nav-link .mud-nav-link-icon { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.ecc-appbar.mud-appbar.px-2 { padding-left: 0 !important; }
.ecc-drawer.mud-drawer--closed .overflow-y-auto { scrollbar-width: none; }
.ecc-drawer.mud-drawer--closed .overflow-y-auto::-webkit-scrollbar { display: none; width: 0; }

/* ===== Home landing banner (owner reference: huge title, subtitle, black + outline buttons, picture fading away at the bottom) ===== */
.ecc-landing { text-align: center; padding: 8px 0 0; display: flex; flex-direction: column; align-items: center; }
.ecc-landing__title { margin: 0; font-size: 2.4rem; font-weight: 700; letter-spacing: 0.5px; line-height: 1.15; color: var(--mud-palette-text-primary); }
.ecc-landing__sub { margin: 6px 0 0; font-size: 1.15rem; font-weight: 400; color: var(--mud-palette-text-primary); }
.ecc-landing__cta { display: flex; gap: 14px; margin-top: 18px; }
.ecc-cta {
    font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 8px 22px; border-radius: 6px;
    color: var(--mud-palette-text-primary); background: transparent; border: 1px solid var(--mud-palette-text-primary);
}
.ecc-cta:hover { background: color-mix(in srgb, var(--mud-palette-text-primary) 7%, transparent); }
.ecc-cta--solid { background: var(--mud-palette-text-primary); color: var(--mud-palette-surface); }
.ecc-cta--solid:hover { background: color-mix(in srgb, var(--mud-palette-text-primary) 85%, var(--mud-palette-primary)); }
.ecc-cta:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 2px; }
.ecc-landing__imgwrap { width: min(760px, 100%); height: 150px; margin-top: 18px; overflow: hidden; position: relative; }
.ecc-landing__img {
    width: 100%; display: block;
    -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 98%); mask-image: linear-gradient(to bottom, #000 25%, transparent 98%);
}

/* ===== Home side panel (owner 2026-11-24): the landing banner lives on the right and shows only on very wide screens ===== */
.ecc-home__main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ecc-aside { display: none; }
@media (min-width: 1440px) {
    .ecc-home.ecc-home--aside { display: grid; grid-template-columns: minmax(0, 1fr) clamp(360px, 24vw, 440px); gap: 24px; max-width: none; align-items: start; }
    .ecc-aside { display: block; position: sticky; top: 0; }
    .ecc-aside .ecc-landing {
        padding: 28px 20px 0; border-radius: 18px; overflow: hidden;
        background: linear-gradient(180deg, color-mix(in srgb, var(--mud-palette-primary) 6%, var(--mud-palette-surface)) 0%, var(--mud-palette-surface) 100%);
        border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 10%, var(--mud-palette-lines-default));
        box-shadow: var(--ecc-shadow-1);
    }
    .ecc-aside .ecc-landing__imgwrap { width: 100%; height: 230px; margin-top: 22px; }
}
@media (min-width: 1440px) {
    /* side panel runs the full height of the work area, the picture fills it and fades out at the bottom */
    .ecc-home.ecc-home--aside { min-height: 100%; align-items: stretch; }
    .ecc-aside { position: static; display: flex; }
    .ecc-aside .ecc-landing { flex: 1; width: 100%; padding-bottom: 0; }
    .ecc-aside .ecc-landing__imgwrap { flex: 1; min-height: 240px; height: auto; }
    .ecc-aside .ecc-landing__img { height: 100%; object-fit: cover; object-position: top center; }
}
@media (min-width: 1440px) {
    .ecc-aside .ecc-landing__img { height: auto; object-fit: initial; width: 100%; }
}

/* ===== Home layout is locked (owner 2026-11-24): chips and side panel never scroll, only the menu groups do ===== */
.ecc-home { height: 100%; min-height: 0; max-width: 1360px; }
.ecc-home__main { height: 100%; min-height: 0; }
.ecc-home__bar { flex: none; }
.ecc-home__scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 2px 6px 6px 2px; margin-right: -6px; }
.ecc-home__scroll > * { flex-shrink: 0; }
@media (min-width: 1440px) {
    .ecc-home.ecc-home--aside { height: 100%; min-height: 0; max-width: none; grid-template-rows: minmax(0, 1fr); }
    .ecc-aside { min-height: 0; height: 100%; }
}

/* ===== Top bar right side: bell, theme and user get the same clear white pill backplate as the status pill (owner 2026-11-24) ===== */
.ecc-appbar .mud-icon-button:not([aria-label="เมนู"]) {
    width: 36px; height: 36px; padding: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--mud-palette-surface); box-shadow: var(--ecc-shadow-1);
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 10%, var(--mud-palette-lines-default));
}
.ecc-appbar .mud-icon-button:not([aria-label="เมนู"]):hover { background: color-mix(in srgb, var(--mud-palette-primary) 8%, var(--mud-palette-surface)); }
.ecc-appbar .mud-menu .mud-button-root {
    background: var(--mud-palette-surface); box-shadow: var(--ecc-shadow-1); border-radius: 999px; min-height: 36px;
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 10%, var(--mud-palette-lines-default));
}
.ecc-appbar .mud-menu .mud-button-root:hover { background: color-mix(in srgb, var(--mud-palette-primary) 8%, var(--mud-palette-surface)); }
.ecc-appbar .ecc-status-pill { border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 10%, var(--mud-palette-lines-default)); min-height: 36px; padding-left: 14px; padding-right: 14px; }
/* The search box keeps its plain icons: the backplate above must not leak into the input (its search / clear buttons) */
.ecc-appbar .mud-input-control .mud-icon-button:not([aria-label="เมนู"]) {
    width: auto; height: auto; padding: 6px; background: transparent; box-shadow: none; border: 0; border-radius: 50%;
}
.ecc-appbar .mud-input-control .mud-icon-button:not([aria-label="เมนู"]):hover { background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent); }

/* ===== Settings pages: not-yet-wired tiles and the on/off switchboard ===== */
.ecc-tiles .ecc-tile.is-soon { cursor: default; box-shadow: none; background: color-mix(in srgb, var(--mud-palette-background-gray) 55%, var(--mud-palette-surface)); }
.ecc-tiles .ecc-tile.is-soon:hover { transform: none; box-shadow: none; border-color: var(--mud-palette-lines-default); }
.ecc-tiles .ecc-tile.is-soon .ecc-tile-icon, .ecc-tiles .ecc-tile.is-soon .ecc-tile-text { opacity: 0.6; }
.ecc-switchlist { display: flex; flex-direction: column; padding: 2px 8px 8px; }
.ecc-switchrow { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-top: 1px solid var(--mud-palette-lines-default); }
.ecc-switchrow:first-child { border-top: 0; }
.ecc-switchrow__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ecc-switchrow__title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecc-switchrow__sub { font-size: 11.5px; color: var(--mud-palette-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecc-switchrow__switch { margin: 0; flex: none; }
.ecc-tiles.ecc-tiles--wide { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.ecc-tile .ecc-tag { flex: none; font-size: 10.5px; padding: 1px 8px; }

/* ===== Login page in the same look as the main shell: tinted backdrop, one framed card, round white controls ===== */
.ecc-login-bg.ecc-login-bg--shell {
    position: relative;
    background: linear-gradient(180deg, color-mix(in srgb, var(--mud-palette-primary) 10%, var(--mud-palette-background)) 0%, color-mix(in srgb, var(--mud-palette-primary) 4%, var(--mud-palette-background)) 100%);
}
.ecc-login-top { position: absolute; top: 14px; right: 18px; display: flex; align-items: center; gap: 10px; }
.ecc-login-top .ecc-status-pill { box-shadow: var(--ecc-shadow-1); background: var(--mud-palette-surface); min-height: 36px; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 10%, var(--mud-palette-lines-default)); }
.ecc-login-gear {
    width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    color: var(--mud-palette-text-primary); background: var(--mud-palette-surface); box-shadow: var(--ecc-shadow-1);
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 10%, var(--mud-palette-lines-default)); font-size: 14px;
}
.ecc-login-gear:hover, .ecc-login-gear.is-on { background: color-mix(in srgb, var(--mud-palette-primary) 10%, var(--mud-palette-surface)); color: var(--mud-palette-primary); }
.ecc-login-gear:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 2px; }

.ecc-login-bg .ecc-login-card {
    background: var(--mud-palette-surface); padding: 28px 30px 26px; max-width: 420px; border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 10%, var(--mud-palette-lines-default)); box-shadow: var(--ecc-shadow-2);
}
.ecc-login-brand { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 22px; }
.ecc-login-brand__logo { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; box-shadow: var(--ecc-shadow-1); }
.ecc-login-brand__name { margin: 12px 0 0; font-size: 1.5rem; font-weight: 700; letter-spacing: 0.5px; color: var(--mud-palette-primary); line-height: 1.2; }
.ecc-login-brand__sub { margin: 4px 0 0; font-size: 13px; color: var(--mud-palette-text-secondary); }
.ecc-login-card .mud-input.mud-input-outlined { background: var(--mud-palette-surface); border-radius: 10px; }
.ecc-login-card .ecc-login-submit.mud-button-filled-primary {
    height: 42px; font-weight: 600; border-radius: 10px; background: var(--ecc-grad); box-shadow: 0 3px 10px rgba(0, 97, 153, 0.35);
}
.ecc-login-card .ecc-login-submit.mud-button-filled-primary:hover { filter: brightness(1.05); box-shadow: 0 5px 14px rgba(0, 97, 153, 0.45); }
.ecc-login-card .ecc-login-submit.mud-button-filled-primary.mud-disabled { filter: grayscale(0.4); opacity: 0.7; box-shadow: none; }
.ecc-login-bg.ecc-login-bg--shell { color: var(--mud-palette-text-primary); }
