/* Portail salariés : styles globaux. Couleurs : variables de MudBlazor (thème PortalUi.Theme). */
:root {
    --portal-navy: #082D5E;
    --portal-navy-2: #0F3F7E;
    --portal-orange: #E85D00;
    --portal-radius: 12px;
    --portal-radius-lg: 16px;
}

html, body { margin: 0; height: 100%; }
body { background: var(--mud-palette-background, #F3F5F9); -webkit-font-smoothing: antialiased; }

.portal-loading {
    position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #082D5E; background: #ffffff;
}

#blazor-error-ui {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000; padding: 12px 16px;
    background: #fff3cd; color: #5c4400; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; box-shadow: 0 -1px 4px rgba(0,0,0,.2);
}
#blazor-error-ui .reload { margin-left: 12px; color: #082D5E; font-weight: 600; }

/* Panneaux : bordure fine, coins arrondis, aucune ombre ; relief léger au survol d'une carte cliquable. */
.mud-paper-outlined { border-radius: var(--portal-radius); border-color: var(--mud-palette-lines-default); }
.portal-card { border-radius: var(--portal-radius); background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); }
.portal-clickable { cursor: pointer; transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease; }
.portal-clickable:hover { box-shadow: 0 6px 18px rgba(8, 45, 94, .10); border-color: #C9D3E1; }
.portal-clickable:active { transform: translateY(1px); }

.portal-page { max-width: 1280px; margin: 0 auto; padding: 24px; box-sizing: border-box; }
@media (max-width: 599.98px) { .portal-page { padding: 14px; } }

.portal-muted { color: var(--mud-palette-text-secondary); }
.portal-kpi { font-size: 2rem; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.portal-section-title { font-weight: 700 !important; }
.portal-unread-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--portal-orange); flex: none; }

/* Pastille d'icône colorée (cartes, listes). */
.portal-icon-chip {
    width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none;
    background: rgba(8, 45, 94, .08); color: var(--portal-navy);
}
.portal-icon-chip.orange { background: rgba(232, 93, 0, .12); color: var(--portal-orange); }
.portal-icon-chip.green { background: rgba(30, 142, 90, .12); color: #1E8E5A; }
.portal-icon-chip.blue { background: rgba(30, 111, 217, .12); color: #1E6FD9; }
.portal-icon-chip.red { background: rgba(198, 40, 40, .12); color: #C62828; }

/* Vignette de mois d'un bulletin. */
.portal-month {
    width: 52px; height: 56px; border-radius: 10px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(160deg, var(--portal-navy), var(--portal-navy-2)); color: #fff; line-height: 1.05;
}
.portal-month .m { font-size: .72rem; font-weight: 700; letter-spacing: .06em; }
.portal-month .y { font-size: .95rem; font-weight: 700; }

/* Liseré d'importance des informations. */
.importance-urgent { border-left: 4px solid #C62828 !important; }
.importance-important { border-left: 4px solid var(--portal-orange) !important; }
.importance-normal { border-left: 4px solid var(--portal-navy) !important; }

/* Titre de page focalisé à la navigation (lecteurs d'écran) : pas de cadre visible. */
h1:focus { outline: none; }

/* Barre du haut : pas d'ombre, filet orange discret. */
.portal-appbar { box-shadow: none !important; border-bottom: 3px solid var(--portal-orange); }
