/* Pleine largeur utile (gauche → droite), sans étirement vertical */
.page-shell:has(.grh-mockup-scope) {
    max-width: none;
    width: 100%;
    margin: 0;
}

.page-content:has(.grh-mockup-scope) {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Avec sous-onglets module : le scroll est dans la zone contenu, pas sous la barre */
.page-content:has(.aw-grh-shell--ops) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
}

.page-content:has(.aw-grh-shell--ops) > .page-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    max-width: none;
    width: 100%;
}

/* GRH mockup v2 — neutre + bleu CTA + vert Success vif */
.grh-mockup-scope {
    --grh-bg: #f8fafc;
    --grh-surface: #ffffff;
    --grh-head: #f1f5f9;
    --grh-soft: #dcfce7;
    --grh-line: #e2e8f0;
    --grh-fg: #0f172a;
    --grh-muted: #64748b;
    /* Success vif (plus saturé que --aw-success sombre) */
    --grh-brand: #16a34a;
    --grh-brand-strong: #15803d;
    --grh-brand-soft: #bbf7d0;
    --grh-action: #2563eb;
    --grh-action-hover: #1d4ed8;
    --grh-accent: var(--grh-brand);
    --grh-accent-strong: var(--grh-brand-strong);
    --grh-on-accent: #ffffff;
    --grh-sel: #dcfce7;
    --grh-warn: #f97316;
    --grh-danger: #ef4444;
    --grh-info: #0284c7;
    --grh-success: #16a34a;
    --grh-tab-rail: #f1f5f9;
    --grh-r: 0;
    --grh-font: "Public Sans", "Segoe UI", system-ui, sans-serif;
    color: var(--grh-fg);
    font-family: var(--grh-font);
    font-size: 13.5px;
    line-height: 1.45;
    background: var(--grh-bg);
}

.grh-mockup-scope .grh-m-page {
    padding: 0.85rem 1rem 1.5rem;
    max-width: none;
    width: 100%;
    margin: 0;
    min-height: 0;
    display: block;
    box-sizing: border-box;
}

/* Workspace GRH — 2 ou 3 colonnes selon le contenu */
.grh-mockup-scope .grh-m-cols {
    display: grid;
    gap: 1rem;
    align-items: start;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    min-height: 0;
    width: 100%;
}

/* Proportions ~28 / 72 — liste confortable | fiche (pas d’effet « coupé ») */
.grh-mockup-scope .grh-m-cols--3 {
    grid-template-columns: minmax(17.5rem, 28fr) minmax(220px, 32fr) minmax(0, 40fr);
}

.grh-mockup-scope .grh-m-cols--2 {
    grid-template-columns: minmax(17.5rem, 28fr) minmax(0, 72fr);
}

.grh-mockup-scope .grh-emp-dir-page .grh-m-cols--2 {
    grid-template-columns: minmax(18rem, 30fr) minmax(0, 70fr);
}

.grh-mockup-scope .grh-m-cols--2 .grh-m-panel--summary {
    min-height: 22rem;
}

@media (max-width: 1100px) {
    .grh-mockup-scope .grh-m-cols--3,
    .grh-mockup-scope .grh-m-cols--2 {
        grid-template-columns: 1fr;
    }
}

.grh-mockup-scope .grh-m-panel {
    background: var(--grh-surface);
    border: 1px solid var(--grh-line);
    border-radius: var(--grh-r);
    min-width: 0;
    box-shadow: 0 1px 2px rgba(23, 33, 30, 0.07);
    position: relative;
    display: flex;
    flex-direction: column;
}

.grh-mockup-scope .grh-m-panel--summary {
    background: var(--grh-surface);
}

.grh-mockup-scope .grh-m-panel--detail {
    border-left: 1px solid var(--grh-line);
}

/* Liste longue : le détail reste visible pendant le scroll (desktop) */
@media (min-width: 1101px) {
    .grh-mockup-scope .grh-m-panel--summary,
    .grh-mockup-scope .grh-m-panel--detail {
        position: sticky;
        top: 0.5rem;
        align-self: start;
        max-height: calc(100dvh - 5.25rem);
        overflow-y: auto;
        z-index: 1;
    }

    .aw-grh-shell--ops .grh-m-panel--summary,
    .aw-grh-shell--ops .grh-m-panel--detail {
        top: 0.5rem;
        max-height: calc(100% - 0.5rem);
    }
}

.grh-mockup-scope .grh-m-panel__label {
    margin: 0;
    padding: 0.55rem 0.9rem;
    font-size: 0.65rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grh-fg);
    background: var(--grh-head);
    border-bottom: 1px solid var(--grh-line);
}

.grh-mockup-scope .grh-m-panel--summary .grh-m-panel__label {
    color: var(--grh-fg);
    background: var(--grh-head);
    border-bottom-color: var(--grh-line);
}

.grh-mockup-scope .grh-m-panel--detail .grh-m-panel__label {
    color: var(--grh-fg);
    background: var(--grh-head);
    border-bottom-color: var(--grh-line);
}

.grh-mockup-scope .grh-m-panel__body {
    flex: 1 1 auto;
    min-height: 0;
}

.grh-mockup-scope .grh-m-l-pad {
    padding: 1rem 1.1rem 1.15rem;
}

.grh-mockup-scope .grh-m-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--grh-brand);
    background: none;
    border: 0;
    padding: 0;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
}

.grh-mockup-scope .grh-m-back:hover {
    color: var(--grh-accent-strong);
    text-decoration: underline;
}

.grh-mockup-scope .grh-m-title {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin: 0.65rem 0 1rem;
    flex-wrap: wrap;
}

.grh-mockup-scope .grh-m-title h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    color: var(--grh-fg);
}

.grh-mockup-scope .grh-m-title small {
    color: var(--grh-muted);
    font-size: 0.8125rem;
}

.grh-mockup-scope .grh-m-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.grh-mockup-scope .grh-m-filters .grh-m-search {
    flex: 1 1 12rem;
    max-width: 100%;
    min-height: 2.25rem;
    height: 2.25rem;
}

.grh-mockup-scope .grh-m-filters .grh-m-sel {
    flex: 0 1 auto;
    min-width: 9rem;
    max-width: 100%;
    height: 2.25rem;
}

/*
 * Sous-onglets module (Temps / Personnel)
 * Barre fixe en haut du shell ; la liste défile UNIQUEMENT dans .grh-route-stage.
 */
.aw-grh-shell--ops {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.aw-grh-shell--ops .grh-m-ops-rail {
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0 0.5rem;
    background: var(--grh-surface);
    border-bottom: 1px solid var(--grh-line);
}

.aw-grh-shell--ops .grh-route-stage {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    z-index: 0;
    -webkit-overflow-scrolling: touch;
}

.aw-grh-shell--ops .grh-m-page {
    padding-top: 0.75rem;
}

.grh-mockup-scope .grh-m-ops-rail .grh-m-segs--ops {
    margin: 0;
    border-bottom: 0 !important;
    background: var(--grh-tab-rail) !important;
}

.grh-mockup-scope .grh-m-ops-rail .grh-m-segs--ops > .nav-item {
    flex: 1 1 auto;
}

.grh-mockup-scope .grh-m-ops-rail .grh-m-segs--ops > .nav-item > .nav-link {
    justify-content: center;
    width: 100%;
    padding: 0.65rem 0.75rem;
}

.grh-mockup-scope .grh-m-ops-rail .grh-m-segs--ops > .nav-item > .nav-link:not(.active):not([aria-selected="true"]) {
    background: var(--grh-tab-rail) !important;
}

@media (max-width: 900px) {
    .grh-mockup-scope .grh-m-ops-rail .grh-m-segs--ops > .nav-item {
        flex: 0 0 auto;
    }
    .grh-mockup-scope .grh-m-ops-rail .grh-m-segs--ops > .nav-item > .nav-link {
        width: auto;
        justify-content: flex-start;
    }
}

.grh-mockup-scope ul.nav.nav-tabs.grh-m-segs {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1 1 auto;
    min-width: 0;
    background: var(--grh-tab-rail);
    border: 0;
    border-bottom: 1px solid var(--grh-line) !important;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.grh-mockup-scope ul.nav.nav-tabs.grh-m-segs::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.grh-mockup-scope .grh-m-segs > .nav-item {
    margin: 0;
    flex: 0 0 auto;
}

.grh-mockup-scope .grh-m-segs > .nav-item > .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 -1px;
    padding: 0.55rem 0.85rem;
    border: 0 !important;
    border-top: 2px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--grh-muted) !important;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
    box-shadow: none !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.grh-mockup-scope .grh-m-segs > .nav-item > .nav-link:hover,
.grh-mockup-scope .grh-m-segs > .nav-item > .nav-link:focus {
    color: var(--grh-accent-strong) !important;
    background: var(--grh-soft) !important;
    border-top-color: transparent !important;
}

.grh-mockup-scope .grh-m-segs > .nav-item > .nav-link.active,
.grh-mockup-scope .grh-m-segs > .nav-item > .nav-link[aria-selected="true"] {
    color: var(--grh-brand) !important;
    background: var(--grh-surface) !important;
    border-top: 2px solid var(--grh-brand) !important;
    border-left: 1px solid var(--grh-line) !important;
    border-right: 1px solid var(--grh-line) !important;
    border-bottom: 1px solid var(--grh-surface) !important;
    font-weight: 600;
}

.grh-mockup-scope .grh-m-n {
    background: var(--grh-soft);
    border: 1px solid var(--grh-line);
    border-radius: var(--grh-r);
    font-size: 0.6875rem;
    min-width: 1.15rem;
    text-align: center;
    padding: 0.1rem 0.35rem;
    line-height: 1.15rem;
    color: var(--grh-fg);
    font-weight: 700;
}

.grh-mockup-scope .grh-m-segs > .nav-item > .nav-link.active .grh-m-n,
.grh-mockup-scope .grh-m-segs > .nav-item > .nav-link[aria-selected="true"] .grh-m-n {
    background: var(--grh-brand);
    border-color: var(--grh-brand);
    color: #fff;
    box-shadow: 0 1px 2px color-mix(in srgb, var(--grh-brand) 35%, transparent);
}

.grh-mockup-scope .grh-m-search {
    position: relative;
    flex: 1 1 10rem;
    min-width: 9rem;
    max-width: 15rem;
}

.grh-mockup-scope .grh-m-search i {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--grh-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.grh-mockup-scope .grh-m-search input,
.grh-mockup-scope .grh-m-sel {
    border: 1px solid var(--grh-line);
    background: var(--grh-surface);
    border-radius: var(--grh-r);
    padding: 0.45rem 0.65rem;
    width: 100%;
    height: 2.25rem;
    color: var(--grh-fg);
}

.grh-mockup-scope .grh-m-search input { padding-left: 2rem; }

.grh-mockup-scope .grh-m-search--flex {
    flex: 1 1 12rem;
}

.grh-mockup-scope .grh-m-search--full {
    flex: 1 1 100%;
}

.grh-mockup-scope .grh-m-search--auto {
    flex: 1 1 auto;
}

.grh-mockup-scope .grh-m-search--rz .grh-rz-filter-search {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
}

.grh-mockup-scope .grh-m-search--rz .rz-textbox {
    width: 100%;
}

.grh-mockup-scope .grh-m-search--rz input.rz-inputtext {
    padding-left: 2rem;
    height: 2.25rem;
    border: 1px solid var(--grh-line);
    background: var(--grh-surface);
    border-radius: var(--grh-r);
    color: var(--grh-fg);
    width: 100%;
    box-sizing: border-box;
}

.grh-mockup-scope .grh-m-search--rz input.rz-inputtext:focus {
    outline: none;
    border-color: var(--grh-brand);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--grh-brand) 25%, transparent);
}

.grh-mockup-scope .grh-m-sel { width: auto; flex: 0 1 13rem; }

.grh-mockup-scope .grh-m-callout {
    margin: 0.65rem 0 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--grh-r);
    border: 1px solid var(--grh-line);
    background: var(--grh-surface);
    font-size: 0.82rem;
    color: var(--grh-fg);
}

.grh-mockup-scope .grh-m-callout--info {
    border-color: color-mix(in srgb, var(--grh-brand) 35%, var(--grh-line));
    background: color-mix(in srgb, var(--grh-brand) 8%, var(--grh-surface));
}

.grh-mockup-scope .grh-m-callout--warn {
    border-color: color-mix(in srgb, var(--grh-warn, #d97706) 45%, var(--grh-line));
    background: color-mix(in srgb, var(--grh-warn, #d97706) 10%, var(--grh-surface));
}

.grh-mockup-scope .grh-m-callout__list {
    margin: 0.35rem 0 0;
    padding-left: 1.15rem;
}

.grh-mockup-scope .grh-m-callout__list li + li {
    margin-top: 0.25rem;
}

.grh-mockup-scope .grh-m-summary__explain {
    margin: 0 0 1rem;
    padding: 0.65rem 0.75rem;
    border-left: 3px solid var(--grh-brand);
    background: color-mix(in srgb, var(--grh-brand) 6%, transparent);
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--grh-fg);
}

.grh-mockup-scope .grh-m-search input:focus,
.grh-mockup-scope .grh-m-sel:focus {
    border-color: var(--grh-accent);
    outline: 2px solid color-mix(in srgb, var(--grh-accent) 28%, transparent);
    outline-offset: 0;
}

.grh-mockup-scope .grh-m-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--grh-action);
    background: var(--grh-action);
    color: #fff;
    border-radius: 0.25rem;
    padding: 0 0.9rem;
    height: 2.25rem;
    font-weight: 600;
    cursor: pointer;
}

.grh-mockup-scope .grh-m-btn:hover {
    background: var(--grh-action-hover);
    border-color: var(--grh-action-hover);
}

.grh-mockup-scope .grh-m-btn.ghost {
    background: transparent;
    color: var(--grh-action);
    box-shadow: none;
}

.grh-mockup-scope .grh-m-btn.ghost:hover { background: #eff6ff; }
.grh-mockup-scope .grh-m-btn.sm { height: 1.9rem; padding: 0 0.65rem; font-size: 0.78rem; }
.grh-mockup-scope .grh-m-add { margin-top: 0.75rem; }

.grh-mockup-scope .grh-m-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.grh-mockup-scope .grh-m-sec-head h6 {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
}

.grh-mockup-scope .grh-m-sec-head .grh-m-acts {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.grh-mockup-scope .grh-m-sec-head .grh-m-add,
.grh-mockup-scope .grh-m-sec-head .grh-m-btn {
    margin-top: 0;
}

.grh-mockup-scope .grh-m-tw {
    overflow-x: hidden;
    overflow-y: visible;
    margin-top: 0.85rem;
    border-top: 1px solid var(--grh-line);
    margin-inline: -1.1rem;
    padding-inline: 0;
}

.grh-mockup-scope .grh-m-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.grh-mockup-scope .grh-m-table th:nth-child(1),
.grh-mockup-scope .grh-m-table td:nth-child(1) { width: 42%; }
.grh-mockup-scope .grh-m-table th:nth-child(2),
.grh-mockup-scope .grh-m-table td:nth-child(2) { width: 26%; }
.grh-mockup-scope .grh-m-table th:nth-child(3),
.grh-mockup-scope .grh-m-table td:nth-child(3) { width: 18%; }
.grh-mockup-scope .grh-m-table th:nth-child(4),
.grh-mockup-scope .grh-m-table td:nth-child(4) { width: 14%; }

/* Liste employés compacte (Nom + Équipe) — respecte le split 25/75 */
.grh-mockup-scope .grh-m-table--slim th:nth-child(1),
.grh-mockup-scope .grh-m-table--slim td:nth-child(1) { width: 62%; }
.grh-mockup-scope .grh-m-table--slim th:nth-child(2),
.grh-mockup-scope .grh-m-table--slim td:nth-child(2) { width: 38%; }
.grh-mockup-scope .grh-m-table--slim th:nth-child(3),
.grh-mockup-scope .grh-m-table--slim td:nth-child(3),
.grh-mockup-scope .grh-m-table--slim th:nth-child(4),
.grh-mockup-scope .grh-m-table--slim td:nth-child(4) { width: auto; }

.grh-mockup-scope .grh-m-table--slim th,
.grh-mockup-scope .grh-m-table--slim td {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
}

.grh-mockup-scope .grh-m-table--slim .grh-m-av {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.68rem;
}

.grh-mockup-scope .grh-emp-fiche-acts {
    justify-content: flex-end;
    margin: 0 0 0.65rem;
    padding: 0 0.15rem;
}

/* —— Annuaire employés : panneau liste conçu pour la colonne étroite —— */
.grh-mockup-scope .grh-emp-dir-page .grh-m-panel--list .grh-m-panel__body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.grh-mockup-scope .grh-emp-dir {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.grh-mockup-scope .grh-emp-dir__title {
    margin: 0.35rem 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.grh-mockup-scope .grh-emp-dir__title h1 {
    font-size: 1.2rem;
}

.grh-mockup-scope .grh-emp-dir__segs {
    width: 100%;
    overflow: visible !important;
    flex-wrap: nowrap;
    margin: 0;
}

.grh-mockup-scope .grh-emp-dir__segs > .nav-item {
    flex: 1 1 0;
    min-width: 0;
}

.grh-mockup-scope .grh-emp-dir__segs > .nav-item > .nav-link {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 0.45rem 0.4rem;
    gap: 0.3rem;
}

.grh-mockup-scope .grh-emp-dir__tools {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 0 0 auto !important;
    align-items: stretch;
    height: auto !important;
    max-height: none;
}

/* Critiqué : .grh-m-search a flex:1 → en colonne ça gonfle toute la hauteur */
.grh-mockup-scope .grh-emp-dir__tools .grh-m-search {
    width: 100%;
    max-width: none !important;
    flex: 0 0 auto !important;
    height: 2.25rem !important;
    min-height: 2.25rem !important;
    max-height: 2.25rem !important;
    margin: 0;
    position: relative;
}

.grh-mockup-scope .grh-emp-dir__tools .grh-m-search input {
    height: 2.25rem !important;
    max-height: 2.25rem !important;
}

.grh-mockup-scope .grh-emp-dir__tools .grh-m-search i {
    top: 50%;
}

.grh-mockup-scope .grh-emp-dir__tools-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.45rem;
    align-items: center;
    flex: 0 0 auto;
    height: 2.25rem;
}

.grh-mockup-scope .grh-emp-dir__tools .grh-m-sel {
    width: auto !important;
    flex: 1 1 auto !important;
    min-width: 0;
    max-width: none;
    height: 2.25rem !important;
    max-height: 2.25rem !important;
    margin: 0;
    align-self: center;
    appearance: auto;
    -webkit-appearance: menulist;
    overflow: hidden;
}

.grh-mockup-scope .grh-emp-dir__tools .grh-m-add {
    width: auto !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    height: 2.25rem !important;
    white-space: nowrap;
}

.grh-mockup-scope .grh-emp-dir > [aria-busy],
.grh-mockup-scope .grh-emp-dir > .grh-soft-loading,
.grh-mockup-scope .grh-emp-dir > div:last-child {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.grh-mockup-scope .grh-emp-dir__list {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    border-top: 1px solid var(--grh-line);
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.grh-mockup-scope .grh-emp-dir__item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.7rem 0.35rem;
    border-bottom: 1px solid var(--grh-line);
    cursor: pointer;
    border-radius: 0.35rem;
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.grh-mockup-scope .grh-emp-dir__item:hover {
    background: var(--grh-soft);
}

.grh-mockup-scope .grh-emp-dir__item.is-selected {
    background: var(--grh-sel);
    box-shadow: inset 3px 0 0 var(--grh-accent);
}

.grh-mockup-scope .grh-emp-dir__item .grh-m-av {
    flex: 0 0 auto;
    margin-top: 0.1rem;
}

.grh-mockup-scope .grh-emp-dir__meta {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
    flex: 1 1 auto;
}

.grh-mockup-scope .grh-emp-dir__meta b {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--grh-fg);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.grh-mockup-scope .grh-emp-dir__role {
    font-size: 0.72rem;
    font-weight: 650;
    color: var(--grh-brand, #16a34a);
    line-height: 1.3;
}

.grh-mockup-scope .grh-emp-dir__team {
    font-size: 0.72rem;
    color: var(--grh-muted);
    line-height: 1.3;
}

.grh-mockup-scope .grh-emp-dir .grh-m-pager {
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.75rem;
}

.grh-mockup-scope .grh-m-table th {
    background: var(--grh-head);
    color: var(--grh-fg);
    text-align: left;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.7rem 0.65rem;
    border-bottom: 1px solid var(--grh-line);
    white-space: nowrap;
}

.grh-mockup-scope .grh-m-table td {
    padding: 0.65rem 0.65rem;
    border-bottom: 1px solid var(--grh-line);
    vertical-align: middle;
}

.grh-mockup-scope .grh-m-table tbody tr { cursor: pointer; }
.grh-mockup-scope .grh-m-table tbody tr:hover { background: var(--grh-soft); }

.grh-mockup-scope .grh-m-table tbody tr[aria-selected="true"] {
    background: var(--grh-sel);
    box-shadow: inset 3px 0 0 var(--grh-accent);
}

.grh-mockup-scope .grh-m-clip {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grh-mockup-scope .grh-m-who {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    min-width: 0;
}

.grh-mockup-scope .grh-m-who__txt {
    min-width: 0;
    overflow: hidden;
}

.grh-mockup-scope .grh-m-who__txt b,
.grh-mockup-scope .grh-m-who__txt small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grh-mockup-scope .grh-m-td-acts {
    width: 1%;
    white-space: nowrap;
}

.grh-mockup-scope .grh-m-av {
    width: 1.85rem;
    height: 1.85rem;
    border: 0;
    background: var(--grh-brand);
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.grh-mockup-scope .grh-m-table tbody tr:nth-child(3n+1) .grh-m-av { background: #f97316; }
.grh-mockup-scope .grh-m-table tbody tr:nth-child(3n+2) .grh-m-av { background: #ef4444; }
.grh-mockup-scope .grh-m-table tbody tr:nth-child(3n) .grh-m-av { background: #2563eb; }

.grh-mockup-scope .grh-emp-dir__item:nth-child(3n+1) .grh-m-av { background: #f97316; }
.grh-mockup-scope .grh-emp-dir__item:nth-child(3n+2) .grh-m-av { background: #ef4444; }
.grh-mockup-scope .grh-emp-dir__item:nth-child(3n) .grh-m-av { background: #2563eb; }

.grh-mockup-scope .grh-m-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grh-mockup-scope .grh-m-who b {
    font-weight: 650;
    display: block;
    color: var(--grh-fg);
}

.grh-mockup-scope .grh-m-who small {
    display: block;
    color: var(--grh-brand);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}

.grh-mockup-scope .grh-m-status {
    display: inline-block;
    background: var(--grh-brand);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.55rem;
    border-radius: 0.2rem;
    border: 0;
}

.grh-mockup-scope .grh-m-status--warn {
    background: var(--grh-warn);
    color: #fff;
}

.grh-mockup-scope .grh-m-status--out {
    background: #0f766e;
    color: #fff;
}

.grh-mockup-scope .grh-m-status--danger {
    background: var(--grh-danger);
    color: #fff;
}

.grh-mockup-scope .grh-m-kpi {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0.75rem 0 0.35rem;
}

.grh-mockup-scope .grh-m-kpi__item {
    border: 1px solid var(--grh-line);
    background: var(--grh-surface);
    border-radius: var(--grh-r, 0.25rem);
    padding: 0.55rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.grh-mockup-scope .grh-m-kpi__label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.grh-mockup-scope .grh-m-kpi__item strong {
    font-size: 1.15rem;
    font-weight: 750;
    color: var(--grh-fg);
    line-height: 1.1;
}

.grh-mockup-scope .grh-m-lock {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin: 0.65rem 0 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid color-mix(in srgb, var(--grh-warn) 35%, var(--grh-line));
    background: color-mix(in srgb, var(--grh-warn) 8%, var(--grh-surface));
    border-radius: var(--grh-r, 0.25rem);
    font-size: 0.8rem;
    color: #334155;
}

.grh-mockup-scope .grh-m-lock b {
    display: block;
    margin-bottom: 0.1rem;
}

.grh-mockup-scope .grh-m-lock i {
    color: var(--grh-warn);
    margin-top: 0.15rem;
}

.grh-mockup-scope .grh-m-card.is-muted {
    opacity: 0.55;
}

.grh-mockup-scope .grh-m-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
}

.grh-mockup-scope .grh-m-field > span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.grh-mockup-scope label.grh-m-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.grh-mockup-scope .grh-m-status--muted {
    background: #94a3b8;
    color: #fff;
}

.grh-mockup-scope .grh-m-acts { display: flex; gap: 0.35rem; }

.grh-mockup-scope .grh-m-ib {
    width: 1.75rem;
    height: 1.75rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--grh-action);
    background: transparent;
    color: var(--grh-action);
    border-radius: 0.25rem;
    cursor: pointer;
    padding: 0;
}

.grh-mockup-scope .grh-m-ib:hover {
    background: var(--grh-action);
    color: #fff;
}

.grh-mockup-scope .grh-m-ib.warn:hover {
    background: var(--grh-danger);
    border-color: var(--grh-danger);
    color: #fff;
}

.grh-mockup-scope .grh-m-ib.ok {
    border-color: var(--grh-success);
    color: var(--grh-success);
}

/* Liste cartes fiche (docs / contrats / paie…) — colonne étroite */
.grh-mockup-scope .grh-m-cards,
.grh-mockup-scope .grh-m-docs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.grh-mockup-scope .grh-m-card,
.grh-mockup-scope .grh-m-doc {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem 0.75rem;
    padding: 0.7rem 0.75rem;
    border: 1px solid var(--grh-line);
    background: var(--grh-surface);
    border-radius: var(--grh-r, 0.25rem);
}

.grh-mockup-scope .grh-m-card__main,
.grh-mockup-scope .grh-m-doc__main {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    min-width: 0;
    flex: 1 1 12rem;
}

.grh-mockup-scope .grh-m-card__icon,
.grh-mockup-scope .grh-m-doc__icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--grh-action) 16%, var(--grh-surface));
    color: var(--grh-action);
    font-size: 0.95rem;
}

.grh-mockup-scope .grh-m-card__txt,
.grh-mockup-scope .grh-m-doc__txt {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.grh-mockup-scope .grh-m-card__txt b,
.grh-mockup-scope .grh-m-doc__txt b {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--grh-fg);
    line-height: 1.25;
}

.grh-mockup-scope .grh-m-card__txt small,
.grh-mockup-scope .grh-m-doc__txt small {
    font-size: 0.72rem;
    color: var(--grh-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.grh-mockup-scope .grh-m-card__meta,
.grh-mockup-scope .grh-m-doc__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.68rem;
    color: var(--grh-muted);
    margin-top: 0.15rem;
}

.grh-mockup-scope .grh-m-card__side,
.grh-mockup-scope .grh-m-doc__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
    flex: 0 0 auto;
}

.grh-mockup-scope .grh-m-card__side .grh-m-acts,
.grh-mockup-scope .grh-m-doc__side .grh-m-acts {
    flex-wrap: nowrap;
}

.grh-mockup-scope a.grh-m-ib {
    text-decoration: none;
}

.grh-mockup-scope .grh-m-cards .grh-m-card.is-selected {
    border-color: var(--grh-brand);
    box-shadow: inset 3px 0 0 var(--grh-brand);
    background: color-mix(in srgb, var(--grh-brand) 14%, var(--grh-surface));
}

.grh-mockup-scope .grh-m-card[role="button"] {
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.grh-mockup-scope .grh-m-card[role="button"]:hover {
    border-color: color-mix(in srgb, var(--grh-brand) 40%, var(--grh-line));
    background: color-mix(in srgb, var(--grh-brand) 10%, var(--grh-surface));
}

.grh-mockup-scope .grh-m-card[role="button"]:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--grh-brand) 45%, transparent);
    outline-offset: 1px;
}

.grh-mockup-scope .grh-m-job-desc {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--grh-muted);
    white-space: pre-wrap;
}

/* Feuille de temps — timeline mockup */
.grh-mockup-scope .grh-m-ts-hours {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0;
    font-size: 0.68rem;
    font-weight: 650;
    color: var(--grh-muted);
    text-align: center;
    margin-bottom: 0.35rem;
}

.grh-mockup-scope .grh-m-ts-track {
    position: relative;
    height: 0.7rem;
    border-radius: 999px;
    background: var(--grh-head);
    border: 1px solid var(--grh-line);
    overflow: hidden;
    margin-top: 0.35rem;
}

.grh-mockup-scope .grh-m-ts-track--day {
    height: 2.1rem;
    border-radius: 0.35rem;
    background: var(--grh-head);
    border: 1px solid var(--grh-line);
    margin-top: 0;
}

.grh-mockup-scope .grh-m-ts-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
    background: var(--grh-brand, #16a34a);
}

.grh-mockup-scope .grh-m-ts-track--day .grh-m-ts-bar {
    border-radius: 0.25rem;
    top: 0.35rem;
    bottom: 0.35rem;
}

.grh-mockup-scope .grh-m-cards .grh-m-card:nth-child(3n+1) .grh-m-av { background: #f97316; }
.grh-mockup-scope .grh-m-cards .grh-m-card:nth-child(3n+2) .grh-m-av { background: #ef4444; }
.grh-mockup-scope .grh-m-cards .grh-m-card:nth-child(3n) .grh-m-av { background: #2563eb; }

.grh-mockup-scope .grh-m-factgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 0.85rem;
    margin: 0 0 1rem;
    padding: 0.75rem;
    border: 1px solid var(--grh-line);
    background: var(--grh-surface);
    border-radius: var(--grh-r, 0.25rem);
}

.grh-mockup-scope .grh-m-factgrid dt {
    margin: 0;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.grh-mockup-scope .grh-m-factgrid dd {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--grh-fg);
    overflow-wrap: anywhere;
}

.grh-mockup-scope .grh-m-ib.ok:hover {
    background: var(--grh-success);
    border-color: var(--grh-success);
    color: #fff;
}

.grh-mockup-scope .grh-m-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: var(--grh-soft);
    border-top: 1px solid color-mix(in srgb, var(--grh-brand) 22%, var(--grh-line));
    margin-inline: -1.1rem;
    margin-bottom: -1.15rem;
    padding: 0.65rem 1.1rem;
    color: var(--grh-muted);
    margin-top: 0;
}

.grh-mockup-scope .grh-m-empty,
.grh-mockup-scope .grh-m-empty-state {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--grh-muted);
}

.grh-mockup-scope .grh-m-empty-state__title {
    margin: 0 0 0.25rem;
    font-weight: 700;
    color: var(--grh-fg);
}

.grh-mockup-scope .grh-m-empty-state__hint { margin: 0; font-size: 0.8125rem; }
.grh-mockup-scope .grh-m-mono { font-variant-numeric: tabular-nums; }

/* ——— Col. 2 synthèse : carte identité plate + matrice 2D ——— */
.grh-mockup-scope .grh-m-summary {
    padding: 1.1rem 1.15rem 1.35rem;
}

/* Fiche 2 colonnes : bandeau synthèse + onglets */
.grh-mockup-scope .grh-m-fiche {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    padding: 0;
}

.grh-mockup-scope .grh-m-fiche__head {
    position: relative;
    padding: 0.85rem 0.95rem 0.75rem;
    border-bottom: 1px solid var(--grh-line);
    background: linear-gradient(180deg, var(--grh-head) 0%, var(--grh-surface) 100%);
}

.grh-mockup-scope .grh-m-idstrip {
    display: grid;
    grid-template-columns: 4.25rem minmax(0, 1fr) auto;
    grid-template-areas: "photo main actions";
    gap: 0.85rem 0.65rem;
    align-items: start;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--grh-line);
    border-radius: 0.55rem;
    background: var(--grh-surface);
    box-shadow: 0 1px 2px rgba(23, 33, 30, 0.05);
}

.grh-mockup-scope .grh-m-idstrip__photo {
    grid-area: photo;
}

.grh-mockup-scope .grh-m-idstrip__main {
    grid-area: main;
}

.grh-mockup-scope .grh-m-idstrip__actions {
    grid-area: actions;
    align-self: start;
    justify-self: end;
}

.grh-mockup-scope .grh-m-idstrip--skeleton {
    grid-template-columns: 1fr;
    grid-template-areas: "main";
    min-height: 5.5rem;
}

@media (max-width: 640px) {
    .grh-mockup-scope .grh-m-idstrip {
        grid-template-columns: 4.25rem minmax(0, 1fr);
        grid-template-areas:
            "photo main"
            "actions actions";
    }

    .grh-mockup-scope .grh-m-idstrip__actions {
        justify-self: stretch;
    }

    .grh-mockup-scope .grh-m-idstrip__actions .grh-m-acts {
        justify-content: stretch;
    }

    .grh-mockup-scope .grh-m-idstrip__actions .grh-m-btn {
        flex: 1;
    }
}

.grh-mockup-scope .grh-m-idstrip__photo {
    width: 4.25rem;
    height: 4.25rem;
    overflow: hidden;
    border: 1px solid var(--grh-line);
    border-radius: 0.45rem;
    background: var(--grh-brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1rem;
    font-weight: 750;
    flex-shrink: 0;
}

.grh-mockup-scope .grh-m-idstrip__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.grh-mockup-scope .grh-m-idstrip__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.grh-mockup-scope .grh-m-idstrip__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.grh-mockup-scope .grh-m-idstrip__name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--grh-fg);
    line-height: 1.2;
}

.grh-mockup-scope .grh-m-idstrip__badge {
    display: inline-block;
    padding: 0.12rem 0.4rem;
    border: 1px solid var(--grh-line);
    background: var(--grh-surface);
    color: var(--grh-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.grh-mockup-scope .grh-m-idstrip__badge--status {
    background: var(--grh-brand);
    border-color: var(--grh-brand);
    color: #fff;
}

.grh-mockup-scope .grh-m-idstrip__role {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--grh-brand-strong);
}

.grh-mockup-scope .grh-m-idstrip__chips {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem 0.5rem;
}

@media (max-width: 900px) {
    .grh-mockup-scope .grh-m-idstrip__chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.grh-mockup-scope .grh-m-idstrip__chips li {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    padding: 0.35rem 0.45rem;
    border: 1px solid var(--grh-line);
    background: var(--grh-surface);
}

.grh-mockup-scope .grh-m-idstrip__chips span {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--grh-muted);
}

.grh-mockup-scope .grh-m-idstrip__chips b {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--grh-fg);
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.grh-mockup-scope .grh-m-idcard {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}

.grh-mockup-scope .grh-m-idcard__head {
    display: grid;
    grid-template-columns: 5.25rem minmax(0, 1fr);
    gap: 0.95rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid var(--grh-line);
    background: var(--grh-head);
}

.grh-mockup-scope .grh-m-idcard__photo {
    width: 5.25rem;
    height: 5.25rem;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--grh-line);
    background: var(--grh-brand);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    font-weight: 750;
    color: #fff;
    flex: none;
}

.grh-mockup-scope .grh-m-idcard__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.grh-mockup-scope .grh-m-idcard__identity {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.28rem;
}

.grh-mockup-scope .grh-m-idcard__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.grh-mockup-scope .grh-m-idcard__badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border: 1px solid var(--grh-line);
    background: var(--grh-surface);
    color: var(--grh-muted);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.grh-mockup-scope .grh-m-idcard__badge--status {
    background: var(--grh-brand);
    border-color: var(--grh-brand);
    color: #fff;
    letter-spacing: 0.08em;
}

.grh-mockup-scope .grh-m-idcard__name {
    margin: 0.1rem 0 0;
    font-size: 1.15rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--grh-fg);
    overflow-wrap: anywhere;
}

.grh-mockup-scope .grh-m-idcard__role {
    margin: 0;
    color: var(--grh-brand-strong);
    font-weight: 650;
    font-size: 0.84rem;
}

.grh-mockup-scope .grh-m-idcard__code {
    margin: 0;
    color: var(--grh-muted);
    font-size: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.grh-mockup-scope .grh-m-idcard__sep { opacity: 0.45; }

/* Matrice 2D : cellules alignées, plat */
.grh-mockup-scope .grh-m-idcard__matrix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--grh-line);
    background: var(--grh-surface);
}

.grh-mockup-scope .grh-m-idcard__cell {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.7rem 0.8rem;
    border-right: 1px solid var(--grh-line);
    border-bottom: 1px solid var(--grh-line);
    min-width: 0;
}

.grh-mockup-scope .grh-m-idcard__cell:nth-child(2n) {
    border-right: 0;
}

.grh-mockup-scope .grh-m-idcard__cell--wide {
    grid-column: 1 / -1;
    border-right: 0;
}

.grh-mockup-scope .grh-m-idcard__k {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--grh-muted);
}

.grh-mockup-scope .grh-m-idcard__v {
    font-size: 0.84rem;
    font-weight: 550;
    color: var(--grh-fg);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

@media (max-width: 520px) {
    .grh-mockup-scope .grh-m-idcard__head {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .grh-mockup-scope .grh-m-idcard__matrix {
        grid-template-columns: 1fr;
    }

    .grh-mockup-scope .grh-m-idcard__cell {
        border-right: 0;
    }
}

/* Ancien synthèse (autres écrans : absences, congés, offres…) */
.grh-mockup-scope .grh-m-summary__hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--grh-line);
}

.grh-mockup-scope .grh-m-summary__avatar {
    width: 5.5rem;
    height: 7.25rem;
    border-radius: 0;
    overflow: hidden;
    border: 0;
    background: var(--grh-brand);
    flex: none;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    font-weight: 750;
    color: #fff;
}

.grh-mockup-scope .grh-m-summary__h {
    margin: 0 0 0.65rem;
    font-size: 0.68rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 750;
    color: var(--grh-fg);
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--grh-line);
}

.grh-mockup-scope .grh-m-summary__status {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 0;
    background: var(--grh-brand);
    color: #fff;
    border: 0;
    font-size: 0.65rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.grh-mockup-scope .grh-m-summary__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.grh-mockup-scope .grh-m-summary__who {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.grh-mockup-scope .grh-m-summary__name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--grh-fg);
    overflow-wrap: anywhere;
}

.grh-mockup-scope .grh-m-summary__role {
    margin: 0;
    color: var(--grh-brand);
    font-weight: 650;
    font-size: 0.875rem;
}

.grh-mockup-scope .grh-m-summary__meta {
    margin: 0.15rem 0 0;
    color: var(--grh-muted);
    font-size: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.grh-mockup-scope .grh-m-summary__dot { opacity: 0.5; }

.grh-mockup-scope .grh-m-summary__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
}

@media (max-width: 520px) {
    .grh-mockup-scope .grh-m-summary__cols { grid-template-columns: 1fr; }
}

.grh-mockup-scope .grh-m-facts {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.grh-mockup-scope .grh-m-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-top: 1px solid var(--grh-line);
    align-items: flex-start;
}

.grh-mockup-scope .grh-m-facts > div:first-child { border-top: 0; padding-top: 0; }

.grh-mockup-scope .grh-m-facts dt {
    margin: 0;
    color: var(--grh-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.grh-mockup-scope .grh-m-facts dd {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 650;
    text-align: right;
    max-width: 62%;
    overflow-wrap: anywhere;
    color: var(--grh-fg);
}

.grh-mockup-scope .grh-m-facts--stacked > div {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.65rem 0;
}

.grh-mockup-scope .grh-m-facts--stacked dd {
    text-align: left;
    max-width: none;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.45;
}

.grh-m-link-btn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--grh-brand, #16a34a);
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.grh-m-link-btn:hover {
    color: var(--grh-brand-strong, #15803d);
}

/* ——— Col. 3 : onglets type Hyper (Example / Edit Source) ——— */
.grh-mockup-scope .grh-m-tabcard {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--grh-surface);
}

.grh-mockup-scope .grh-m-tabs-rail {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) 2rem;
    align-items: stretch;
    background: var(--grh-tab-rail);
    border-bottom: 1px solid var(--grh-line);
}

.grh-mockup-scope .grh-m-tabs-nav {
    display: grid;
    place-items: center;
    border: 0;
    border-right: 1px solid var(--grh-line);
    background: var(--grh-tab-rail);
    color: var(--grh-muted);
    cursor: pointer;
    padding: 0;
}

.grh-mockup-scope .grh-m-tabs-nav--next {
    border-right: 0;
    border-left: 1px solid var(--grh-line);
}

.grh-mockup-scope .grh-m-tabs-nav:hover:not(:disabled) {
    color: var(--grh-brand-strong);
    background: var(--grh-soft);
}

.grh-mockup-scope .grh-m-tabs-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.grh-mockup-scope .grh-m-tabs-scroller {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox — pas de barre visible */
    -ms-overflow-style: none;
}

.grh-mockup-scope .grh-m-tabs-scroller::-webkit-scrollbar {
    display: none; /* Chrome / Edge / Safari */
    width: 0;
    height: 0;
}

.grh-mockup-scope .grh-m-tabcard > .nav.nav-tabs.grh-m-tabs,
.grh-mockup-scope .grh-m-tabs-scroller > ul.nav.nav-tabs.grh-m-tabs,
.grh-mockup-scope ul.nav.nav-tabs.grh-m-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent;
    border: 0;
    border-bottom: 0 !important;
    overflow: visible;
}

.grh-mockup-scope .grh-m-tabs > .nav-item {
    margin: 0;
    flex: 0 0 auto;
}

.grh-mockup-scope .grh-m-tabs > .nav-item > .nav-link {
    display: block;
    margin: 0 0 -1px;
    padding: 0.72rem 1rem;
    border: 0 !important;
    border-top: 2px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--grh-muted) !important;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
    box-shadow: none !important;
}

.grh-mockup-scope .grh-m-tabs > .nav-item > .nav-link:hover,
.grh-mockup-scope .grh-m-tabs > .nav-item > .nav-link:focus {
    color: var(--grh-accent-strong) !important;
    background: var(--grh-soft) !important;
    border-top-color: transparent !important;
    isolation: isolate;
}

.grh-mockup-scope .grh-m-tabs > .nav-item > .nav-link.active,
.grh-mockup-scope .grh-m-tabs > .nav-item > .nav-link[aria-selected="true"] {
    color: var(--grh-brand) !important;
    background: var(--grh-surface) !important;
    border-top: 2px solid var(--grh-brand) !important;
    border-left: 1px solid var(--grh-line) !important;
    border-right: 1px solid var(--grh-line) !important;
    border-bottom: 1px solid var(--grh-surface) !important;
    font-weight: 700;
}

.grh-mockup-scope .grh-m-sec {
    padding: 1rem 1.1rem 1.25rem;
    max-height: min(72vh, 860px);
    overflow: auto;
    background: var(--grh-surface);
    border: 0;
}

/* Fiche employé — l'onglet Identité utilise toute la largeur du panneau de droite.
   La règle .aw-form globale est volontairement bornée à 640 px pour les formulaires
   isolés ; elle ne convient pas à ce formulaire intégré dans l'espace de travail. */
.grh-mockup-scope .grh-m-sec .grh-employee-personal-form {
    width: 100%;
    max-width: none;
    margin: 0;
}

.grh-mockup-scope .grh-m-placeholder {
    border: 1px dashed var(--grh-line);
    border-radius: var(--grh-r);
    padding: 1.75rem 0.85rem;
    text-align: center;
    color: var(--grh-muted);
}

.grh-mockup-scope .grh-m-placeholder b {
    display: block;
    color: var(--grh-fg);
    margin-bottom: 0.15rem;
}

/* ── Splash entrée GRH (plein écran, doux) ── */
.grh-splash {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: grid;
    place-items: center;
    pointer-events: auto;
    animation: grh-splash-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.grh-splash.is-leaving {
    pointer-events: none;
    animation: grh-splash-out 0.75s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.grh-splash.is-leaving .grh-splash__stage {
    animation: grh-splash-stage-out 0.75s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.grh-splash__veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 50% at 50% 42%, rgba(220, 252, 231, 0.95) 0%, rgba(248, 250, 252, 0.97) 48%, rgba(255, 255, 255, 0.99) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

html[data-bs-theme="dark"] .grh-splash__veil {
    background:
        radial-gradient(ellipse 65% 50% at 50% 42%, rgba(22, 101, 52, 0.45) 0%, rgba(15, 23, 42, 0.96) 52%, rgba(2, 6, 23, 0.99) 100%);
}

.grh-splash__stage {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    animation: grh-splash-stage 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.grh-splash__orb {
    position: relative;
    width: min(11rem, 42vw);
    height: min(11rem, 42vw);
    display: grid;
    place-items: center;
}

.grh-splash__ring,
.grh-splash__ring--soft {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    pointer-events: none;
}

.grh-splash__ring {
    width: 14.5rem;
    height: 14.5rem;
    border: 1.5px solid rgba(22, 163, 74, 0.28);
    animation: grh-splash-ring 2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.grh-splash__ring--soft {
    width: 18rem;
    height: 18rem;
    border: 1px solid rgba(22, 163, 74, 0.12);
    animation: grh-splash-ring-soft 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

html[data-bs-theme="dark"] .grh-splash__ring {
    border-color: rgba(134, 239, 172, 0.35);
}

html[data-bs-theme="dark"] .grh-splash__ring--soft {
    border-color: rgba(134, 239, 172, 0.16);
}

.grh-splash__logo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent !important;
    filter: drop-shadow(0 12px 32px rgba(22, 163, 74, 0.22));
    animation: grh-splash-logo 1.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.grh-splash__logo--light {
    display: none;
}

html[data-bs-theme="dark"] .grh-splash__logo--brand {
    display: none;
}

html[data-bs-theme="dark"] .grh-splash__logo--light {
    display: block;
    filter: drop-shadow(0 14px 36px rgba(74, 222, 128, 0.28));
}

.grh-splash__caption {
    margin: 0;
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #15803d;
    opacity: 0;
    animation: grh-splash-caption 1.25s ease 0.4s both;
}

html[data-bs-theme="dark"] .grh-splash__caption {
    color: #86efac;
}

@keyframes grh-splash-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes grh-splash-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes grh-splash-stage {
    from { transform: translateY(8px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes grh-splash-stage-out {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-4px); opacity: 0; }
}

@keyframes grh-splash-logo {
    0% { opacity: 0; transform: scale(0.94); filter: drop-shadow(0 8px 20px rgba(22, 163, 74, 0)); }
    100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 10px 24px rgba(22, 163, 74, 0.18)); }
}

@keyframes grh-splash-ring {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    45% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0.22; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes grh-splash-ring-soft {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
    40% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.12); }
}

@keyframes grh-splash-caption {
    from { opacity: 0; transform: translateY(6px); letter-spacing: 0.2em; }
    to { opacity: 1; transform: translateY(0); letter-spacing: 0.16em; }
}

@media (prefers-reduced-motion: reduce) {
    .grh-splash,
    .grh-splash.is-leaving,
    .grh-splash__stage,
    .grh-splash.is-leaving .grh-splash__stage,
    .grh-splash__logo,
    .grh-splash__ring,
    .grh-splash__ring--soft,
    .grh-splash__caption {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ── Sidebar module GRH ── */
.grh-sb-host {
    --grh-sb-bg: #ffffff;
    --grh-sb-fg: #334155;
    --grh-sb-muted: #64748b;
    --grh-sb-line: #e2e8f0;
    --grh-sb-active-bg: #dcfce7;
    --grh-sb-active-fg: #15803d;
    background: var(--grh-sb-bg);
    border-right: 1px solid var(--grh-sb-line);
}

.grh-sb {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: 0.85rem 0.7rem 0.75rem;
    box-sizing: border-box;
    font-family: var(--grh-font);
}

/* Premier rendu : état appliqué sans animation */
.grh-sb.is-booting,
.grh-sb.is-booting *,
.grh-sb.is-booting .grh-sb__sub-wrap,
.grh-sb.is-booting .grh-sb__label,
.grh-sb.is-booting .grh-sb__chev,
.grh-sb.is-booting .grh-sb__collapse-ico {
    transition: none !important;
    animation: none !important;
}

/* Préférence repliée connue avant Blazor : éviter le flash large → étroit */
html.grh-sb-pref-collapsed .grh-sb.is-booting {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
}

html.grh-sb-pref-collapsed .grh-sb.is-booting .grh-sb__label,
html.grh-sb-pref-collapsed .grh-sb.is-booting .grh-sb__chev {
    opacity: 0;
    max-width: 0;
    margin: 0;
    pointer-events: none;
}

html.grh-sb-pref-collapsed .grh-sb.is-booting .grh-sb__link {
    justify-content: center;
    gap: 0;
    padding: 0.65rem 0.35rem;
}

.grh-sb__brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0 0 0.85rem;
}

.grh-sb__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.15rem 0.25rem;
    text-decoration: none;
    color: var(--grh-fg, #0f172a);
}

.grh-sb__collapse {
    width: 1.85rem;
    height: 1.85rem;
    border: 1px solid var(--grh-sb-line);
    border-radius: 0.45rem;
    background: #fff;
    color: var(--grh-sb-muted);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.grh-sb__collapse:hover {
    color: var(--grh-sb-fg);
    background: #eef2f7;
}

.grh-sb__collapse-ico {
    display: inline-block;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.grh-sb.is-collapsed .grh-sb__collapse-ico {
    transform: rotate(180deg);
}

.grh-sb__mark {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.45rem;
    display: grid;
    place-items: center;
    background: var(--grh-brand, #16a34a);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    flex: 0 0 auto;
    overflow: hidden;
}

.grh-sb__mark img {
    width: 1.45rem;
    height: 1.45rem;
    object-fit: contain;
    display: block;
    background: transparent;
}

.grh-sb__title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.grh-sb__label {
    overflow: hidden;
    white-space: nowrap;
    opacity: 1;
    max-width: 12rem;
    transition: opacity 0.2s ease, max-width 0.28s cubic-bezier(0.22, 1, 0.36, 1), margin 0.2s ease;
}

.grh-sb__nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.1rem;
    margin-bottom: 0.5rem;
}

.grh-sb__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--grh-sb-fg);
    text-decoration: none;
    text-align: left;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.55rem 0.65rem;
    border-radius: 0.55rem;
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease, padding 0.28s ease;
}

/* Icônes Radzen : masquer le nom technique (ex. « schedule ») avant chargement de la police */
.grh-sb .rzi,
.grh-sb .rz-icon {
    flex: 0 0 auto;
    width: 1.15rem;
    min-width: 1.15rem;
    height: 1.15rem;
    font-size: 0;
    line-height: 0;
    text-align: center;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.28s ease, font-size 0s linear 0.28s;
}

html.aw-icons-ready .grh-sb .rzi,
html.aw-icons-ready .grh-sb .rz-icon {
    font-size: 1.15rem;
    line-height: 1;
    opacity: 0.9;
    transition: opacity 0.28s ease;
}

@media (prefers-reduced-motion: reduce) {
    html.aw-icons-ready .grh-sb .rzi,
    html.aw-icons-ready .grh-sb .rz-icon {
        opacity: 0.9;
        transition: none;
    }
}

.grh-sb__link:hover {
    background: #eef2f7;
    color: #0f172a;
}

.grh-sb__link.is-active {
    background: var(--grh-sb-active-bg);
    color: var(--grh-sb-active-fg);
}

.grh-sb__link--toggle {
    position: relative;
}

.grh-sb__chev {
    margin-left: auto;
    font-size: 0.75rem;
    opacity: 0.65;
    flex: 0 0 auto;
    display: inline-block;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.grh-sb__link--toggle .grh-sb__badge.grh-sb__label {
    margin-left: 0;
}

.grh-sb__link--toggle .grh-sb__chev {
    margin-left: auto;
}

.grh-sb__group.is-open > .grh-sb__link--toggle .grh-sb__chev {
    transform: rotate(90deg);
}

.grh-sb__group.is-section-active > .grh-sb__link--toggle {
    color: var(--grh-sb-active-fg);
}

/* Dépliage doux des sous-menus */
.grh-sb__sub-wrap {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition:
        grid-template-rows 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.22s ease;
}

.grh-sb__group.is-open .grh-sb__sub-wrap {
    grid-template-rows: 1fr;
    opacity: 1;
}

.grh-sb.is-collapsed .grh-sb__sub-wrap,
.grh-sb.is-collapsed .grh-sb__group.is-open .grh-sb__sub-wrap {
    grid-template-rows: 0fr;
    opacity: 0;
    pointer-events: none;
}

.grh-sb__sub-wrap > .grh-sb__sub {
    overflow: hidden;
    min-height: 0;
}

.grh-sb__sub {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.15rem 0 0.35rem 1.85rem;
}

.grh-sb__sublink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    color: var(--grh-sb-muted);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.grh-sb__sublink:hover {
    background: #eef2f7;
    color: #0f172a;
}

.grh-sb__sublink.is-active {
    background: var(--grh-sb-active-bg);
    color: var(--grh-sb-active-fg);
}

.grh-sb__badge {
    margin-left: auto;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #f97316;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 auto;
}

.grh-sb__badge--dot {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    margin: 0;
    min-width: 1rem;
    height: 1rem;
    font-size: 0.6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.grh-sb.is-collapsed .grh-sb__badge--dot {
    opacity: 1;
}

.grh-sb.is-collapsed .grh-sb__link .grh-sb__badge.grh-sb__label {
    display: none;
}

.grh-sb__footer {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.75rem;
    margin-top: auto;
    border-top: 1px solid var(--grh-sb-line);
}

.grh-sb__home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 2.35rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.55rem;
    border: 1px solid var(--grh-sb-line);
    background: #fff;
    color: var(--grh-sb-fg);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, padding 0.28s ease;
}

.grh-sb__home .rzi,
.grh-sb__home .rz-icon {
    font-size: 1.15rem;
}

.grh-sb__home:hover {
    border-color: color-mix(in srgb, var(--grh-brand, #16a34a) 45%, var(--grh-sb-line));
    background: var(--grh-sb-active-bg);
    color: var(--grh-sb-active-fg);
}

/* Sidebar repliée — icônes seules */
.grh-sb.is-collapsed {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
    align-items: stretch;
}

.grh-sb.is-collapsed .grh-sb__brand-row {
    flex-direction: column;
    gap: 0.45rem;
    padding-bottom: 0.65rem;
}

.grh-sb.is-collapsed .grh-sb__brand {
    justify-content: center;
    padding: 0;
}

.grh-sb.is-collapsed .grh-sb__label,
.grh-sb.is-collapsed .grh-sb__chev {
    opacity: 0;
    max-width: 0;
    margin: 0;
    pointer-events: none;
}

.grh-sb.is-collapsed .grh-sb__link {
    justify-content: center;
    gap: 0;
    padding: 0.65rem 0.35rem;
}

.grh-sb.is-collapsed .grh-sb__link .rzi,
.grh-sb.is-collapsed .grh-sb__link .rz-icon {
    margin: 0;
}

.grh-sb.is-collapsed .grh-sb__home {
    gap: 0;
    padding: 0.65rem 0.35rem;
}

[data-bs-theme="dark"] .grh-sb__home {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .grh-sb__home:hover {
    background: color-mix(in srgb, #4ade80 16%, #0f172a);
    border-color: color-mix(in srgb, #4ade80 40%, #334155);
    color: #86efac;
}

.grh-sb__tool {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.5rem;
    border: 1px solid var(--grh-sb-line);
    background: #fff;
    color: var(--grh-sb-fg);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.grh-sb__tool:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.grh-sb__tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 2.15rem;
    padding: 0 0.7rem;
    border-radius: 0.5rem;
    border: 1px solid var(--grh-sb-line);
    background: #fff;
    color: var(--grh-sb-fg);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 650;
}

.grh-sb__tool-btn .rzi,
.grh-sb__tool-btn .rz-icon {
    font-size: 1rem;
}

.grh-sb__tool-btn:hover,
.grh-sb__tool-btn.is-active {
    border-color: color-mix(in srgb, var(--grh-brand, #16a34a) 45%, var(--grh-sb-line));
    background: var(--grh-sb-active-bg);
    color: var(--grh-sb-active-fg);
}

/* Nav module GRH — barre compacte : onglets | actions (legacy) */
.grh-module-chrome .grh-rz-module-nav,
.grh-mockup-scope .grh-rz-module-nav {
    background: var(--grh-surface);
    border-bottom: 1px solid var(--grh-line);
    padding: 0;
    margin: 0;
    font-family: var(--grh-font);
}

.grh-rz-module-nav__inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 2.85rem;
    padding: 0 0.85rem 0 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.grh-rz-module-nav__ops {
    display: flex;
    align-items: stretch;
    gap: 0.1rem;
    min-width: 0;
    flex: 1 1 auto;
    overflow-x: auto;
    scrollbar-width: none;
}

.grh-rz-module-nav__ops::-webkit-scrollbar { display: none; }

.grh-rz-module-nav__tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.85rem;
    margin: 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--grh-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.grh-rz-module-nav__tab:hover {
    color: var(--grh-fg);
    background: color-mix(in srgb, var(--grh-soft) 55%, transparent);
    text-decoration: none;
}

.grh-rz-module-nav__tab.is-active {
    color: var(--grh-brand);
    font-weight: 650;
    border-bottom-color: var(--grh-brand);
    background: transparent;
}

.grh-rz-module-nav__tab .rzi,
.grh-rz-module-nav__tab .rz-icon {
    font-size: 1.05rem;
    opacity: 0.9;
}

.grh-rz-module-nav__tab-short { display: none; }

.grh-rz-module-nav__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #f59e0b;
    color: #111;
    font-size: 0.65rem;
    font-weight: 750;
    line-height: 1;
}

.grh-rz-module-nav__side {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    padding-left: 0.5rem;
    border-left: 1px solid var(--grh-line);
}

.grh-rz-module-nav__divider {
    width: 1px;
    height: 1.35rem;
    background: var(--grh-line);
    margin: 0 0.15rem;
}

.grh-rz-module-nav__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border: 0;
    border-radius: 0.35rem;
    background: transparent;
    color: var(--grh-muted);
    cursor: pointer;
}

.grh-rz-module-nav__icon-btn:hover {
    color: var(--grh-fg);
    background: var(--grh-head);
}

.grh-rz-module-nav__action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 2.1rem;
    padding: 0 0.7rem;
    border: 1px solid var(--grh-line);
    border-radius: 0.35rem;
    background: var(--grh-surface);
    color: var(--grh-fg);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.grh-rz-module-nav__action:hover {
    border-color: var(--grh-brand);
    color: var(--grh-brand);
    background: var(--grh-soft);
    text-decoration: none;
}

.grh-rz-module-nav__action.is-active {
    border-color: var(--grh-brand);
    color: var(--grh-brand);
    background: var(--grh-soft);
}

.grh-rz-module-nav__action .rzi,
.grh-rz-module-nav__action .rz-icon {
    font-size: 1rem;
}

@media (max-width: 900px) {
    .grh-rz-module-nav__tab-label { display: none; }
    .grh-rz-module-nav__tab-short { display: inline; }
    .grh-rz-module-nav__action span { display: none; }
    .grh-rz-module-nav__action { width: 2.1rem; padding: 0; justify-content: center; }
}

.grh-mockup-scope .aw-pager .rz-pager-page.rz-state-active {
    background: var(--grh-brand) !important;
    border-color: var(--grh-brand) !important;
    color: #fff !important;
}

.grh-mockup-scope .aw-pager .rz-pager-page:not(.rz-state-active):hover {
    color: var(--grh-brand) !important;
    border-color: var(--grh-brand) !important;
}

/* CTA type « Examiner » — bleu vif dans la fiche */
.grh-mockup-scope .rz-button.rz-primary:not(.rz-variant-outlined):not(.rz-variant-text):not(.rz-variant-flat),
.grh-mockup-scope .btn-primary {
    background: var(--grh-action) !important;
    border-color: var(--grh-action) !important;
    color: #fff !important;
}

.grh-mockup-scope .rz-button.rz-primary:not(.rz-variant-outlined):not(.rz-variant-text):hover:not(.rz-state-disabled),
.grh-mockup-scope .btn-primary:hover {
    background: var(--grh-action-hover) !important;
    border-color: var(--grh-action-hover) !important;
}

.grh-mockup-scope .grh-m-sec .aw-dialog__section {
    font-size: 0.68rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--grh-fg);
    font-weight: 750;
    border-bottom: 1px solid var(--grh-line);
    padding-bottom: 0.5rem;
    margin-bottom: 0.85rem;
}

/* ——— Transition entre écrans GRH — fondu léger, sans skeleton (évite les sauts) ——— */
.grh-mockup-scope {
    position: relative;
}

.grh-mockup-scope .grh-route-stage {
    transition: opacity 0.22s ease;
}

.grh-mockup-scope .grh-route-stage.is-soft-pending {
    opacity: 0.72;
    pointer-events: none;
}

.grh-mockup-scope .grh-route-veil {
    display: none !important;
}

.grh-mockup-scope .grh-route-veil.is-leaving {
    opacity: 0;
}

.grh-mockup-scope .grh-route-veil__cards {
    display: grid;
    gap: 1rem;
    width: 100%;
    align-items: start;
}

.grh-mockup-scope .grh-route-veil__cards--3 {
    grid-template-columns: minmax(0, 40fr) minmax(260px, 50fr) minmax(0, 60fr);
}

.grh-mockup-scope .grh-route-veil__cards--2 {
    grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
}

@media (max-width: 1100px) {
    .grh-mockup-scope .grh-route-veil__cards--3,
    .grh-mockup-scope .grh-route-veil__cards--2 {
        grid-template-columns: 1fr;
    }
}

.grh-mockup-scope .grh-route-veil__card {
    background: var(--grh-surface);
    border: 1px solid var(--grh-line);
    border-radius: var(--grh-r);
    box-shadow: 0 1px 2px rgba(23, 33, 30, 0.07);
    display: flex;
    flex-direction: column;
    min-height: 18rem;
    min-width: 0;
    overflow: hidden;
}

.grh-mockup-scope .grh-route-veil__label {
    height: 2.05rem;
    flex-shrink: 0;
    background: var(--grh-head);
    border-bottom: 1px solid var(--grh-line);
}

.grh-mockup-scope .grh-route-veil__body {
    flex: 1;
    padding: 0.85rem;
    min-height: 0;
}

.grh-mockup-scope .grh-route-veil__body .aw-skel {
    padding: 0;
}

/* Rechargement interne — voile fixe, sans mouvement */
.grh-mockup-scope .grh-soft-loading {
    position: relative;
}

.grh-mockup-scope .grh-soft-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: color-mix(in srgb, var(--grh-surface) 62%, transparent);
    pointer-events: none;
    border-radius: inherit;
}

.grh-mockup-scope .grh-m-sec .aw-form__grid,
.grh-mockup-scope .grh-m-sec .rz-card,
.grh-mockup-scope .grh-m-sec .RadzenCard {
    box-shadow: none !important;
}

.grh-mockup-scope .grh-m-sec .rz-data-grid {
    border: 1px solid var(--grh-line);
    border-radius: var(--grh-r);
}

.grh-mockup-scope .visually-hidden,
.grh-mockup-scope .sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* —— Cockpit / tableau de bord —— */
.grh-mockup-scope .grh-m-cockpit > .grh-m-l-pad + .grh-m-cols {
    margin-top: 0.85rem;
}

.grh-mockup-scope .grh-m-cockpit__lead {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin: 0.85rem 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.grh-mockup-scope .grh-m-cockpit__lead span:last-child {
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.8125rem;
    color: #475569;
}

.grh-mockup-scope .grh-m-cockpit__lead b {
    color: var(--grh-fg);
    font-weight: 700;
}

.grh-mockup-scope .grh-m-cockpit__meter {
    margin: 0 0 0.75rem;
}

.grh-mockup-scope .grh-m-cockpit__meter-track {
    height: 0.4rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.grh-mockup-scope .grh-m-cockpit__meter-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--grh-brand, #0f766e);
    transition: width 0.35s ease;
}

.grh-mockup-scope .grh-m-cockpit__meter-fill.is-mid {
    background: #d97706;
}

.grh-mockup-scope .grh-m-cockpit__meter-fill.is-low {
    background: var(--grh-danger, #dc2626);
}

.grh-mockup-scope .grh-m-kpi--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0.35rem 0 0;
}

.grh-mockup-scope .grh-m-kpi--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0.35rem 0 1rem;
}

/* Dashboard graphique */
.grh-mockup-scope .grh-m-dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(15rem, 0.85fr);
    gap: 0.85rem;
    margin: 0 0 0.85rem;
}

.grh-mockup-scope .grh-m-dash-card {
    background: var(--grh-surface, #fff);
    border: 1px solid var(--grh-line, #e2e8f0);
    border-radius: var(--grh-r, 12px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.grh-mockup-scope .grh-m-dash-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem 0.4rem;
}

.grh-mockup-scope .grh-m-dash-card__head h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--grh-fg);
}

.grh-mockup-scope .grh-m-dash-card__head small {
    display: block;
    margin-top: 0.15rem;
    color: var(--grh-muted, #64748b);
    font-size: 0.75rem;
    font-weight: 500;
}

.grh-mockup-scope .grh-m-dash-card__body {
    padding: 0.35rem 1rem 1rem;
    flex: 1 1 auto;
    min-height: 0;
}

.grh-mockup-scope .grh-m-dash-card__body--chart {
    padding-top: 0.15rem;
}

.grh-mockup-scope .grh-m-dash-card__body--donut {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 14rem;
}

.grh-mockup-scope .grh-m-donut-wrap {
    width: 210px;
    height: 210px;
    flex: 0 0 auto;
}

.grh-mockup-scope .grh-m-donut-wrap .rz-chart {
    width: 100% !important;
    height: 100% !important;
}

.grh-mockup-scope .grh-m-donut-center {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    text-align: center;
    pointer-events: none;
    padding: 0.35rem;
    box-sizing: border-box;
}

.grh-mockup-scope .grh-m-donut-center strong {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.05rem;
    color: var(--grh-brand, #16a34a);
    line-height: 1;
    font-weight: 800;
}

.grh-mockup-scope .grh-m-donut-center__n {
    font-size: 1.85rem;
    letter-spacing: -0.03em;
    color: var(--grh-brand, #16a34a);
}

.grh-mockup-scope .grh-m-donut-center__pct {
    font-size: 0.95rem;
    font-weight: 750;
    margin-top: 0.2rem;
    color: var(--grh-brand, #16a34a);
}

.grh-mockup-scope .grh-m-donut-center--queue strong,
.grh-mockup-scope .grh-m-donut-center--queue .grh-m-donut-center__n,
.grh-mockup-scope .grh-m-donut-center--queue .grh-m-donut-center__pct {
    color: var(--grh-warn, #ea580c);
}

.grh-mockup-scope .grh-m-donut-center > span {
    font-size: 0.65rem;
    color: var(--grh-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 650;
}

.grh-mockup-scope .grh-m-dash-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 14rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.grh-mockup-scope .grh-m-dash-legend li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--grh-muted, #64748b);
}

.grh-mockup-scope .grh-m-dash-legend b {
    color: var(--grh-fg);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.grh-mockup-scope .grh-m-dash-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    margin-right: 0.45rem;
    flex: 0 0 auto;
    display: inline-block;
}

.grh-mockup-scope .grh-m-dash-bottom {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 0.5rem;
}

.grh-mockup-scope .grh-m-dash-bottom--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grh-mockup-scope .grh-m-dash-card .rz-legend-item-text,
.grh-mockup-scope .grh-m-dash-card .rz-axis-title,
.grh-mockup-scope .grh-m-dash-card .rz-axis text {
    fill: var(--grh-muted, #64748b);
    font-size: 0.72rem;
}

.grh-mockup-scope .grh-m-kpi__item small {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.3;
}

.grh-mockup-scope .grh-m-kpi__val--brand { color: var(--grh-brand, #0f766e); }
.grh-mockup-scope .grh-m-kpi__val--warn { color: #d97706; }
.grh-mockup-scope .grh-m-kpi__val--danger { color: var(--grh-danger, #dc2626); }

.grh-mockup-scope .grh-m-card__icon--warn {
    background: color-mix(in srgb, #d97706 16%, var(--grh-surface));
    color: #b45309;
}

.grh-mockup-scope .grh-m-card__icon--danger {
    background: color-mix(in srgb, var(--grh-danger, #dc2626) 14%, var(--grh-surface));
    color: var(--grh-danger, #dc2626);
}

.grh-mockup-scope .grh-m-cockpit__org {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.grh-mockup-scope .grh-m-cockpit__org-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 650;
    color: var(--grh-fg);
    margin-bottom: 0.35rem;
}

.grh-mockup-scope .grh-m-cockpit__org-head .grh-m-mono {
    color: #64748b;
    font-weight: 600;
}

.grh-mockup-scope .grh-m-cockpit__org-track {
    height: 0.45rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.grh-mockup-scope .grh-m-cockpit__org-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--grh-brand, #0f766e);
}

@media (max-width: 1100px) {
    .grh-mockup-scope .grh-m-dash-grid,
    .grh-mockup-scope .grh-m-dash-bottom,
    .grh-mockup-scope .grh-m-dash-bottom--3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .grh-mockup-scope .grh-m-kpi--3,
    .grh-mockup-scope .grh-m-kpi--4 {
        grid-template-columns: 1fr;
    }
}

/* —— Catalogue Paramétrage —— */
.grh-mockup-scope .grh-m-catalog {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
    gap: 0.65rem;
}

.grh-mockup-scope .grh-m-catalog__tile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--grh-line);
    border-radius: var(--grh-r, 0.35rem);
    background: var(--grh-surface);
    text-decoration: none;
    color: inherit;
    min-height: 4.25rem;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.grh-mockup-scope a.grh-m-catalog__tile:hover {
    border-color: color-mix(in srgb, var(--grh-brand) 50%, var(--grh-line));
    background: color-mix(in srgb, var(--grh-brand) 12%, var(--grh-surface));
    box-shadow: inset 3px 0 0 var(--grh-brand);
}

.grh-mockup-scope a.grh-m-catalog__tile:hover .grh-m-catalog__icon {
    background: color-mix(in srgb, var(--grh-brand) 22%, var(--grh-surface));
    color: var(--grh-brand-strong);
}

.grh-mockup-scope a.grh-m-catalog__tile:hover > .bi-chevron-right {
    color: var(--grh-brand);
}

.grh-mockup-scope a.grh-m-catalog__tile:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--grh-brand) 55%, transparent);
    outline-offset: 2px;
}

.grh-mockup-scope .grh-m-catalog__tile.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.grh-mockup-scope .grh-m-catalog__icon {
    flex: 0 0 2.35rem;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.45rem;
    display: grid;
    place-items: center;
    background: var(--grh-soft);
    color: var(--grh-brand);
    border: 1px solid color-mix(in srgb, var(--grh-brand) 22%, var(--grh-line));
    font-size: 1.05rem;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.grh-mockup-scope .grh-m-catalog__txt {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.grh-mockup-scope .grh-m-catalog__txt b {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--grh-fg);
}

.grh-mockup-scope .grh-m-catalog__txt small {
    font-size: 0.75rem;
    color: var(--grh-muted);
    line-height: 1.35;
}

.grh-mockup-scope .grh-m-catalog__tile > .bi-chevron-right {
    color: var(--grh-muted);
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.grh-mockup-scope .grh-m-related {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.grh-mockup-scope .grh-m-related__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--grh-line);
    border-radius: var(--grh-r, 0.25rem);
    background: var(--grh-surface);
    font-size: 0.8125rem;
}

.grh-mockup-scope .grh-m-related__row b {
    font-weight: 650;
    color: var(--grh-fg);
}

.grh-mockup-scope .grh-m-related__row small {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
}

/* ——— Arborescence organisationnelle ——— */
.grh-mockup-scope .grh-m-org {
    margin-top: 0.65rem;
    min-width: 0;
}

.grh-mockup-scope .grh-m-org__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.grh-mockup-scope .grh-m-org__item {
    margin: 0;
    padding: 0;
    padding-left: calc(var(--org-depth, 0) * 0.95rem);
}

.grh-mockup-scope .grh-m-org__row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    padding: 0.5rem 0.55rem;
    border: 1px solid var(--grh-line);
    border-radius: var(--grh-r, 0.35rem);
    background: var(--grh-surface);
    cursor: pointer;
    border-left-width: 3px;
    border-left-color: var(--grh-line);
    transition: background 0.12s ease, border-color 0.12s ease;
}

.grh-mockup-scope .grh-m-org__item--site > .grh-m-org__row {
    border-left-color: #15803d;
    background: color-mix(in srgb, var(--grh-soft) 42%, var(--grh-surface));
}

.grh-mockup-scope .grh-m-org__item--department > .grh-m-org__row {
    border-left-color: #f59e0b;
}

.grh-mockup-scope .grh-m-org__item--service > .grh-m-org__row {
    border-left-color: #0e7490;
}

.grh-mockup-scope .grh-m-org__item--jobposition > .grh-m-org__row {
    border-left-color: #94a3b8;
}

.grh-mockup-scope .grh-m-org__row:hover {
    background: color-mix(in srgb, var(--grh-brand, #0f766e) 7%, var(--grh-surface));
}

.grh-mockup-scope .grh-m-org__item.is-selected > .grh-m-org__row {
    border-color: color-mix(in srgb, var(--grh-brand, #0f766e) 45%, var(--grh-line));
    background: color-mix(in srgb, var(--grh-brand, #0f766e) 10%, var(--grh-surface));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--grh-brand, #0f766e) 18%, transparent);
}

.grh-mockup-scope .grh-m-org__row:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--grh-brand, #0f766e) 55%, transparent);
    outline-offset: 1px;
}

.grh-mockup-scope .grh-m-org__twist {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #64748b;
    flex-shrink: 0;
    border-radius: 0.25rem;
    line-height: 1;
}

.grh-mockup-scope .grh-m-org__twist:not(.is-leaf):hover {
    background: var(--grh-soft, #f1f5f9);
    color: var(--grh-brand, #0f766e);
}

.grh-mockup-scope .grh-m-org__twist.is-leaf {
    visibility: hidden;
    pointer-events: none;
}

.grh-mockup-scope .grh-m-org__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.4rem;
    flex-shrink: 0;
    font-size: 0.9rem;
    background: var(--grh-soft, #f1f5f9);
    color: #475569;
}

.grh-mockup-scope .grh-m-org__item--site .grh-m-org__icon {
    background: #dcfce7;
    color: #15803d;
}

.grh-mockup-scope .grh-m-org__item--department .grh-m-org__icon {
    background: #fef3c7;
    color: #b45309;
}

.grh-mockup-scope .grh-m-org__item--service .grh-m-org__icon {
    background: #cffafe;
    color: #0e7490;
}

.grh-mockup-scope .grh-m-org__item--jobposition .grh-m-org__icon {
    background: #f1f5f9;
    color: #475569;
}

.grh-mockup-scope .grh-m-org__txt {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.grh-mockup-scope .grh-m-org__txt b {
    font-size: 0.875rem;
    font-weight: 650;
    color: var(--grh-fg);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grh-mockup-scope .grh-m-org__txt small {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
    font-size: 0.72rem;
}

.grh-mockup-scope .grh-m-org__txt code {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.05rem 0.3rem;
    border-radius: 0.25rem;
    background: #f1f5f9;
    color: #0e7490;
}

.grh-mockup-scope .grh-m-org__type {
    display: inline-flex;
    align-items: center;
    padding: 0.08rem 0.4rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.25;
}

.grh-mockup-scope .grh-m-org__type--site {
    background: #15803d;
    color: #fff;
}

.grh-mockup-scope .grh-m-org__type--department {
    background: #f59e0b;
    color: #1f2937;
}

.grh-mockup-scope .grh-m-org__type--service {
    background: #0e7490;
    color: #fff;
}

.grh-mockup-scope .grh-m-org__type--jobposition {
    background: #e2e8f0;
    color: #475569;
}

.grh-mockup-scope .grh-m-org__kids {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.1rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid var(--grh-line);
    font-size: 0.65rem;
    font-weight: 700;
    color: #475569;
}

.grh-mockup-scope .grh-m-org__side {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* ——— Dark mode GRH ——— */
[data-bs-theme="dark"] .grh-mockup-scope {
    --grh-bg: #020617;
    --grh-surface: #0f172a;
    --grh-head: #1e293b;
    --grh-soft: rgba(74, 222, 128, 0.14);
    --grh-line: #334155;
    --grh-fg: #f8fafc;
    --grh-muted: #94a3b8;
    --grh-brand: #4ade80;
    --grh-brand-strong: #86efac;
    --grh-brand-soft: rgba(74, 222, 128, 0.18);
    --grh-action: #60a5fa;
    --grh-action-hover: #93c5fd;
    --grh-accent: var(--grh-brand);
    --grh-accent-strong: var(--grh-brand-strong);
    --grh-on-accent: #052e16;
    --grh-sel: rgba(74, 222, 128, 0.16);
    --grh-warn: #fb923c;
    --grh-danger: #f87171;
    --grh-info: #22d3ee;
    --grh-success: #4ade80;
    --grh-tab-rail: #1e293b;
    background: var(--grh-bg);
    color: var(--grh-fg);
    color-scheme: dark;
}

[data-bs-theme="dark"] .grh-mockup-scope .grh-m-page,
[data-bs-theme="dark"] .grh-mockup-scope .grh-m-panel,
[data-bs-theme="dark"] .grh-mockup-scope .grh-m-sec,
[data-bs-theme="dark"] .grh-mockup-scope .aw-form,
[data-bs-theme="dark"] .grh-mockup-scope .aw-form__body {
    background: var(--grh-surface) !important;
    color: var(--grh-fg) !important;
}

[data-bs-theme="dark"] .grh-mockup-scope .grh-m-search input,
[data-bs-theme="dark"] .grh-mockup-scope .grh-m-sel,
[data-bs-theme="dark"] .grh-mockup-scope input[type="search"],
[data-bs-theme="dark"] .grh-mockup-scope input[type="date"],
[data-bs-theme="dark"] .grh-mockup-scope input[type="text"],
[data-bs-theme="dark"] .grh-mockup-scope input[type="email"],
[data-bs-theme="dark"] .grh-mockup-scope input[type="tel"],
[data-bs-theme="dark"] .grh-mockup-scope input[type="number"],
[data-bs-theme="dark"] .grh-mockup-scope select,
[data-bs-theme="dark"] .grh-mockup-scope textarea,
[data-bs-theme="dark"] .grh-mockup-scope .form-control,
[data-bs-theme="dark"] .grh-mockup-scope .aw-input,
[data-bs-theme="dark"] .grh-mockup-scope .rz-form-field,
[data-bs-theme="dark"] .grh-mockup-scope .rz-form-field-content,
[data-bs-theme="dark"] .grh-mockup-scope .rz-textbox,
[data-bs-theme="dark"] .grh-mockup-scope .rz-dropdown,
[data-bs-theme="dark"] .grh-mockup-scope .rz-datepicker,
[data-bs-theme="dark"] .grh-mockup-scope input.rz-inputtext {
    background: #1e293b !important;
    background-color: #1e293b !important;
    border-color: #475569 !important;
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
    color-scheme: dark;
}

[data-bs-theme="dark"] .grh-mockup-scope .rz-form-field-label,
[data-bs-theme="dark"] .grh-mockup-scope .rz-form-field .rz-label {
    color: #94a3b8 !important;
    background: #0f172a !important;
}

[data-bs-theme="dark"] .grh-mockup-scope .grh-m-btn.ghost {
    background: var(--grh-head) !important;
    border-color: var(--grh-line) !important;
    color: var(--grh-fg) !important;
}

[data-bs-theme="dark"] .grh-mockup-scope .grh-m-btn.ghost:hover {
    background: var(--grh-tab-rail) !important;
}

[data-bs-theme="dark"] .grh-mockup-scope .grh-m-table thead th,
[data-bs-theme="dark"] .grh-mockup-scope .grh-m-table tbody td {
    color: var(--grh-fg);
    border-color: var(--grh-line);
    background: transparent;
}

[data-bs-theme="dark"] .grh-mockup-scope .grh-m-table tbody tr:hover {
    background: color-mix(in srgb, var(--grh-brand) 10%, var(--grh-surface));
}

[data-bs-theme="dark"] .grh-mockup-scope .grh-route-veil {
    background: var(--grh-bg) !important;
}

[data-bs-theme="dark"] .grh-mockup-scope .grh-route-veil__card {
    background: var(--grh-surface) !important;
    border-color: var(--grh-line) !important;
}

[data-bs-theme="dark"] .grh-mockup-scope .aw-skel__block {
    background: linear-gradient(
        90deg,
        #334155 0%,
        #1e293b 45%,
        #334155 90%
    ) !important;
    background-size: 200% 100% !important;
}

[data-bs-theme="dark"] .grh-mockup-scope .grh-m-org__type--jobposition,
[data-bs-theme="dark"] .grh-mockup-scope .grh-m-org__kids {
    background: #334155;
    color: #cbd5e1;
}

[data-bs-theme="dark"] .grh-mockup-scope .grh-m-org__txt code {
    background: #1e293b;
    color: #67e8f9;
}

[data-bs-theme="dark"] .page-shell:has(.grh-mockup-scope),
[data-bs-theme="dark"] .page-content:has(.grh-mockup-scope) {
    background: var(--grh-bg) !important;
}

[data-bs-theme="dark"] .grh-module-chrome {
    --grh-surface: #0f172a;
    --grh-line: #334155;
    --grh-fg: #f8fafc;
    --grh-muted: #94a3b8;
    --grh-brand: #4ade80;
    background: #0f172a !important;
    border-bottom-color: #334155 !important;
}

[data-bs-theme="dark"] .grh-sb-host {
    --grh-sb-bg: #0f172a;
    --grh-sb-fg: #e2e8f0;
    --grh-sb-muted: #94a3b8;
    --grh-sb-line: #334155;
    --grh-sb-active-bg: color-mix(in srgb, #4ade80 18%, #0f172a);
    --grh-sb-active-fg: #86efac;
    background: #0f172a;
    border-right-color: #334155;
}

[data-bs-theme="dark"] .grh-sb__brand {
    color: #f8fafc;
}

[data-bs-theme="dark"] .grh-sb__link:hover,
[data-bs-theme="dark"] .grh-sb__sublink:hover {
    background: #1e293b;
    color: #f8fafc;
}

[data-bs-theme="dark"] .grh-sb__tool,
[data-bs-theme="dark"] .grh-sb__tool-btn,
[data-bs-theme="dark"] .grh-sb__collapse {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .grh-mockup-scope .grh-m-card,
[data-bs-theme="dark"] .grh-mockup-scope .grh-m-doc,
[data-bs-theme="dark"] .grh-mockup-scope .grh-m-dash-card,
[data-bs-theme="dark"] .grh-mockup-scope .grh-m-kpi__item {
    background: var(--grh-surface) !important;
    border-color: var(--grh-line) !important;
    color: var(--grh-fg) !important;
}

[data-bs-theme="dark"] .grh-mockup-scope .grh-m-cards .grh-m-card.is-selected,
[data-bs-theme="dark"] .grh-mockup-scope .grh-m-card[role="button"]:hover {
    background: color-mix(in srgb, var(--grh-brand) 14%, var(--grh-surface)) !important;
    border-color: color-mix(in srgb, var(--grh-brand) 45%, var(--grh-line)) !important;
}

[data-bs-theme="dark"] .grh-mockup-scope .grh-m-ts-track,
[data-bs-theme="dark"] .grh-mockup-scope .grh-m-ts-track--day {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-bs-theme="dark"] .grh-mockup-scope .grh-m-card__icon,
[data-bs-theme="dark"] .grh-mockup-scope .grh-m-doc__icon {
    background: color-mix(in srgb, var(--grh-action) 20%, var(--grh-surface)) !important;
}

[data-bs-theme="dark"] .grh-mockup-scope a.grh-m-catalog__tile:hover {
    background: color-mix(in srgb, var(--grh-brand) 16%, var(--grh-surface)) !important;
    border-color: color-mix(in srgb, var(--grh-brand) 55%, var(--grh-line)) !important;
}

[data-bs-theme="dark"] .grh-mockup-scope .grh-m-catalog__icon {
    background: color-mix(in srgb, var(--grh-brand) 18%, var(--grh-surface)) !important;
    border-color: color-mix(in srgb, var(--grh-brand) 35%, var(--grh-line)) !important;
    color: var(--grh-brand) !important;
}

[data-bs-theme="dark"] .grh-mockup-scope a.grh-m-catalog__tile:hover .grh-m-catalog__icon {
    background: color-mix(in srgb, var(--grh-brand) 28%, var(--grh-surface)) !important;
    color: var(--grh-brand-strong) !important;
}

/* Modales validation congés */
.grh-leave-action-modal {
    max-width: 28rem;
}

.grh-leave-action-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--grh-line, #e2e8f0);
}

.grh-leave-action-modal__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--grh-fg, #0f172a);
}

.grh-leave-action-modal__intro {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.grh-leave-action-modal__facts {
    margin-bottom: 0.75rem;
}

.grh-leave-action-modal__ack {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    cursor: pointer;
    color: var(--grh-fg-muted, #64748b);
}

.grh-leave-action-modal__ack input {
    margin-top: 0.2rem;
    flex: 0 0 auto;
}

.grh-leave-action-modal__foot {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--grh-line, #e2e8f0);
}

.grh-m-help-note--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    border: 1px solid color-mix(in srgb, var(--grh-brand, #16a34a) 40%, var(--grh-line, #e2e8f0));
    border-radius: 50%;
    background: color-mix(in srgb, var(--grh-brand, #16a34a) 10%, #fff);
    color: var(--grh-brand, #16a34a);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.grh-m-help-note--icon:hover {
    background: color-mix(in srgb, var(--grh-brand, #16a34a) 18%, #fff);
    border-color: color-mix(in srgb, var(--grh-brand, #16a34a) 55%, var(--grh-line, #e2e8f0));
    transform: scale(1.05);
}

.grh-m-help-note__bang {
    display: block;
    transform: translateY(-0.5px);
}

.grh-mockup-scope .grh-m-title .grh-m-help-note--icon {
    align-self: center;
    margin-top: -0.05rem;
}

.grh-m-help-note__body {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--grh-fg, #0f172a);
}

.grh-m-help-note__body .grh-m-callout {
    margin-bottom: 0;
}
