﻿@import url('qomben-ui/index.css');

.confidence-btn-wrap .mud-icon-root {
    font-size: 14px;
}

/* ---------------- LEGACY ----------------*/
:root {
    /*--color-menu-select: #F3F0FE !important;*/
    --color-menu-select: #26b050 !important;
    --Gray-50: #F9FAFB; 
    --Gray-300: #D0D5DD;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}
.mud-popover {
    height: 0;
}

.mud-popover-open {
    height: unset;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.text-capitalize {
    text-transform: capitalize
}

.table-header-bg-color {
    background-color: var(--Gray-50) !important;
    /* Ancienne valeur QB: #F3F0FE; */
}

/*th[scope="col"] {
    background-color: var(--Gray-50) !important;
}*/

.mud-icon-button:hover {
    color: var(--mud-palette-primary);
    box-shadow: none;
    /*background-color: transparent !important;*/
}

.mud-ripple-icon {
    background-color: transparent !important;
}

.field-label {
    font-weight: 500;
    font-size: 14px;
    color: #000000;
}

.font-weight-500 {
    font-weight: 500 !important;
}

.border-radius-16px {
    border-radius: 16px !important;
}

.color-muted {
    color: #757575;
}

.welcome-card {
    padding-top: 10px;
    background-image: url("../images/catfood.svg");
    background-size: contain;
    background-position-x: right;
    background-origin: content-box;
    background-repeat: no-repeat;
    height: 192px;
}

/* ---------------- MARKDOWN VIEWER ----------------*/
.markdown-body {
    line-height: 1.8;
    font-size: 1rem;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ---------------- EMPLOYEE DETAIL DRAWER (panel redesign H12-C) ----------------*/

/* Sticky dark header (EmployeeDetailDrawerHeader) */
.emp-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 20px 20px 24px;
    background-color: #311d70;
    position: sticky;
    top: 0;
    z-index: 2;
}

.emp-header__actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
}

/* Counter the global "#qomben-ui .mud-tooltip-inline { flex: 1 1 0 }" theme rule so the
   tooltip-wrapped actions size to content and stay grouped on the right instead of stretching. */
#qomben-ui .emp-header__actions .mud-tooltip-inline {
    flex: 0 0 auto;
}

/* The QombenIcons SVGs ship with a dark hard-coded stroke; invert them to white on the dark header. */
.emp-header__actions .mud-icon-button {
    color: #ffffff;
}

.emp-header__actions .mud-icon-root {
    filter: brightness(0) invert(1);
}

.emp-header__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background-image: linear-gradient(135deg, #9478ff 0%, #734dff 71%);
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.25;
}

.emp-header__identity {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.emp-header__name {
    color: #ffffff;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.25;
    word-break: break-word;
}

.emp-header__subtitle {
    color: #b2b6c4;
    font-size: 14px;
    line-height: 1.25;
    word-break: break-word;
}

/* Body (EmployeeDetails) */
.emp-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px 24px 24px;
    box-sizing: border-box;
    width: 100%;
    color: #292929;
}

.emp-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.emp-section__title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: #292929;
}

.emp-divider {
    height: 1px;
    width: 100%;
    background-color: #dcdcdc;
    margin-top: 2px;
}

.emp-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.emp-kv {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 0;
    min-width: 0;
}

.emp-kv__label {
    font-size: 12px;
    line-height: 1.3;
    color: #7c7c7c;
    word-break: break-word;
}

.emp-kv__value {
    font-size: 14px;
    line-height: 1.3;
    color: #292929;
    word-break: break-word;
}

.emp-increase {
    font-size: 12px;
    line-height: 1.3;
    color: var(--mud-palette-success);
}

/* Gender badge (reuses GenderLabelChip) */
.emp-gender .mud-chip {
    margin: 0;
    height: auto;
}

/* Emploi : comparaison salarié ↔ référentiel */
.emp-pair {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.emp-pair__labels {
    display: flex;
    width: 100%;
}

.emp-pair__label {
    flex: 1 1 0;
    min-width: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: #7c7c7c;
    word-break: break-word;
}

.emp-pair__label--ref {
    color: #998cfe;
}

.emp-pair__values {
    display: flex;
    gap: 12px;
    align-items: stretch;
    width: 100%;
}

.emp-pair__value {
    flex: 1 1 0;
    min-width: 0;
    font-size: 13px;
    line-height: 1.3;
    color: #292929;
    word-break: break-word;
}

.emp-pair__value--ref {
    color: #784dff;
}

.emp-pair__sep {
    flex: 0 0 1px;
    width: 1px;
    align-self: stretch;
    background-color: #dcdcdc;
}

/* Manager chips */
.emp-manager {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.emp-avatar--sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 11px;
    background-color: #ebe5ff;
    color: #784dff;
    font-size: 10px;
    font-weight: 500;
}

/* Cards (risque, historique) */
.emp-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    background-color: #ffffff;
}

.emp-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.emp-card__header .mud-icon-root {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

/* Risque d'attrition */
.emp-risk {
    padding: 12px 14px;
    gap: 8px;
}

.emp-risk__row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.emp-risk__segments {
    display: flex;
    gap: 4px;
}

.emp-risk__segment {
    width: 20px;
    height: 10px;
    border-radius: 2px;
    background-color: #e1e1e1;
}

.emp-risk__segment--low {
    background-color: #43a047;
}

.emp-risk__segment--moderate {
    background-color: #f5c24b;
}

.emp-risk__segment--high {
    background-color: #e5484d;
}

.emp-risk__score {
    font-size: 14px;
    font-weight: 500;
    color: #7c7c7c;
}

.emp-risk__label {
    font-size: 14px;
    font-weight: 500;
}

.emp-risk__label--low {
    color: #2e7d32;
}

.emp-risk__label--moderate {
    color: #e1a428;
}

.emp-risk__label--high {
    color: #c62828;
}
/* ---- Indicator dashboard: widget type catalog cards ---- */
.wcat-card {
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.wcat-card:hover {
    border-color: var(--graph-primary-light);
    box-shadow: 0 4px 12px rgba(120, 77, 255, 0.12);
    transform: translateY(-2px);
}

.wcat-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 92px;
    margin-top: 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--graph-primary-lighter) 0%, var(--graph-secondary-lighter) 100%);
    overflow: hidden;
    transition: background 0.15s ease;
}

.wcat-preview--selected {
    background: linear-gradient(135deg, var(--graph-primary-light) 0%, var(--graph-primary-lighter) 100%);
}

.wcat-preview svg {
    width: 100%;
    height: 100%;
    padding: 6px 12px;
}

.wcat-fill-primary {
    fill: var(--graph-primary-default);
}

.wcat-fill-primary-light {
    fill: var(--graph-primary-light);
}

.wcat-fill-secondary {
    fill: var(--graph-secondary-default);
}

.wcat-dot-primary {
    fill: var(--graph-primary-default);
}

.wcat-dot-primary-light {
    fill: var(--graph-primary-light);
}

.wcat-dot-secondary {
    fill: var(--graph-secondary-default);
}

.wcat-line-secondary {
    stroke: var(--graph-secondary-default);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wcat-axis {
    stroke: var(--graph-primary-light);
    stroke-width: 2;
    stroke-linecap: round;
}
