:root { --primary:#114b8b; --primary-dark:#0b315c; --accent:#00a3e0; --text:#1f2933; --muted:#6b7280; --border:#d7dee8; --warning:#b45309; --danger:#b91c1c; }
* { box-sizing:border-box; }
html, body { min-height:100%; }
body { margin:0; font-family:"Segoe UI",Arial,sans-serif; color:var(--text); background:linear-gradient(rgba(5,20,40,.62),rgba(5,20,40,.62)),url("/static/img/background.jpg") center center / cover no-repeat fixed; }
.topbar { min-height:72px; background:rgba(255,255,255,.96); display:flex; justify-content:space-between; align-items:center; padding:0 32px; box-shadow:0 2px 16px rgba(0,0,0,.18); }
.brand-simple { font-weight:800; font-size:24px; color:var(--primary-dark); white-space:nowrap; }
.nav { display:flex; gap:14px; align-items:center; flex-wrap:wrap; } .nav a { text-decoration:none; color:var(--primary-dark); font-weight:600; padding:8px 10px; border-radius:8px; } .nav a:hover { background:#e8f2fb; } .nav-user { color:var(--muted); font-size:13px; font-weight:600; }
main { padding:42px 24px; } .login-page { min-height:calc(100vh - 120px); display:flex; align-items:center; justify-content:center; }
.login-card,.page-card { background:rgba(255,255,255,.96); width:100%; max-width:460px; padding:34px; border-radius:20px; box-shadow:0 24px 60px rgba(0,0,0,.28); } .page-card { max-width:980px; margin:0 auto; } .page-card.wide { max-width:1250px; }
.login-logo { display:block; max-width:180px; max-height:90px; object-fit:contain; margin:0 auto 18px auto; }
h1 { margin-top:0; color:var(--primary-dark); } .muted { color:var(--muted); } form { display:flex; flex-direction:column; gap:12px; margin-top:22px; } label { font-weight:700; }
input,select { height:42px; border:1px solid var(--border); border-radius:10px; padding:0 12px; font-size:15px; background:white; } button { height:44px; border:none; border-radius:10px; background:var(--primary); color:white; font-weight:800; cursor:pointer; margin-top:10px; }
.hint { font-size:12px; color:var(--muted); margin:-4px 0 4px 0; } .messages { max-width:980px; margin:0 auto 20px auto; } .alert { padding:12px 14px; border-radius:10px; margin:18px 0; font-weight:600; } .alert.info { background:#e8f4fd; color:#075985; border:1px solid #bae6fd; } .alert.success { background:#dcfce7; color:#166534; border:1px solid #86efac; } .alert.danger { background:#fee2e2; color:#991b1b; border:1px solid #fecaca; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; margin-top:24px; } .tile { display:block; text-decoration:none; background:#f8fafc; border:1px solid var(--border); border-radius:14px; padding:20px; color:var(--primary-dark); font-weight:800; } .tile:hover { border-color:var(--accent); background:#eef8ff; }
.status-list { list-style:none; padding:0; } .status-list li { display:flex; justify-content:space-between; padding:12px; border:1px solid var(--border); border-radius:10px; margin-bottom:10px; background:#f8fafc; }
.badge { display:inline-block; padding:4px 9px; border-radius:999px; font-size:12px; font-weight:800; } .badge.success { background:#dcfce7; color:#166534; } .badge.danger { background:#fee2e2; color:#991b1b; }
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:14px; margin:22px 0; } .stat-card { background:#f8fafc; border:1px solid var(--border); border-radius:14px; padding:16px; } .stat-card span { display:block; color:var(--muted); font-size:13px; } .stat-card strong { display:block; margin-top:6px; font-size:26px; color:var(--primary-dark); }
.filters { display:grid; grid-template-columns:2fr 1fr 1fr 1fr auto; gap:12px; align-items:end; background:#f8fafc; border:1px solid var(--border); border-radius:14px; padding:16px; margin:20px 0; } .filters label { display:block; margin-bottom:6px; font-size:13px; } .filter-actions { display:flex; gap:8px; align-items:center; } .btn-secondary { display:inline-flex; align-items:center; justify-content:center; height:42px; padding:0 12px; border-radius:10px; background:#e5e7eb; color:#111827; text-decoration:none; font-weight:700; }
.table-wrapper { overflow-x:auto; margin-top:20px; } table { width:100%; border-collapse:collapse; background:white; } th,td { border-bottom:1px solid var(--border); padding:10px; text-align:left; font-size:14px; } th { background:#f1f5f9; color:var(--primary-dark); }
.inline-form { display:flex; flex-direction:row; gap:6px; margin:0; } .inline-form select { height:32px; min-width:95px; } .actions-cell { display:flex; flex-wrap:wrap; gap:6px; } .actions-cell form { margin:0; } .btn-small { height:32px; padding:0 9px; margin:0; border-radius:8px; font-size:12px; white-space:nowrap; } .btn-small.warning { background:var(--warning); } .btn-small.danger { background:var(--danger); }
@media (max-width:1000px) { .filters { grid-template-columns:1fr; } .topbar { align-items:flex-start; flex-direction:column; padding:16px 24px; gap:12px; } }

.import-actions { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; margin:18px 0; }


.import-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    margin: 20px 0;
}

.upload-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
}

.upload-card h2 {
    margin-top: 0;
    color: var(--primary-dark);
}

.upload-card input[type="file"] {
    height: auto;
    padding: 10px;
}


.manual-match-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin: 20px 0;
}

.manual-match-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

@media (max-width: 1000px) {
    .manual-match-form { grid-template-columns: 1fr; }
}


.status-erreur td { background: #fff7ed; }
.status-ok td { background: #f0fdf4; }
.actions-cell select { max-width: 220px; height: 32px; font-size: 12px; }


.status-final-erreur td { background: #fff7ed; }
.status-final-ok td { background: #f0fdf4; }
.column-filter-row input, .column-filter-row select { width: 100%; height: 32px; font-size: 12px; padding: 4px; }
.actions-cell select { max-width: 220px; height: 32px; font-size: 12px; }


.page-card.ultra-wide { max-width: calc(100vw - 36px); padding: 26px; }
.matching-table-wrapper { max-height: calc(100vh - 270px); overflow: auto; border: 1px solid var(--border); border-radius: 12px; }
.compact-table { min-width: 1500px; table-layout: fixed; }
.compact-table th, .compact-table td { font-size: 12px; padding: 6px; vertical-align: top; }
.compact-table thead th { position: sticky; top: 0; z-index: 3; }
.column-filter-row th { top: 34px !important; z-index: 4; }
.column-filter-row input, .column-filter-row select, .table-datalist-input { width: 100%; height: 30px; font-size: 12px; padding: 4px; }
.current-value { font-size: 10px; color: var(--muted); margin-top: 3px; }
.status-final-erreur td { background: #fff7ed; }
.status-final-ok td { background: #f0fdf4; }
.bulk-save-bar { position: sticky; bottom: 0; background: rgba(255,255,255,.96); border-top: 1px solid var(--border); padding: 14px; display: flex; justify-content: flex-end; z-index: 10; }
.bulk-save-bar button { width: auto; min-width: 280px; }
.actions-cell { gap: 4px; }


/* V0.6.5 - Matching compact */
.page-card.ultra-wide { max-width: calc(100vw - 18px); padding: 18px; }
.matching-page h1 { margin-bottom: 4px; }
.matching-header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.compact-help { margin-top: 2px; font-size: 12px; }
.matching-threshold { background:#eef6ff; border:1px solid #bfdbfe; color:#0b315c; padding:8px 10px; border-radius:10px; font-size:12px; white-space:nowrap; }
.kpi-grid { display:grid; grid-template-columns: repeat(8, minmax(118px, 1fr)); gap:8px; margin:12px 0 14px 0; }
.kpi-card { border:1px solid var(--border); border-radius:12px; padding:9px 10px; background:white; min-height:58px; }
.kpi-card span { display:block; color:var(--muted); font-size:10px; line-height:1.15; }
.kpi-card strong { display:block; font-size:21px; color:var(--primary-dark); margin-top:5px; }
.kpi-ok { background:#ecfdf5; border-color:#86efac; }
.kpi-ok-soft { background:#f0fdf4; border-color:#bbf7d0; }
.kpi-danger { background:#fef2f2; border-color:#fecaca; }
.kpi-warning { background:#fffbeb; border-color:#fde68a; }
.kpi-neutral { background:#f8fafc; }
.matching-table-wrapper { max-height: calc(100vh - 245px); overflow:auto; border:1px solid var(--border); border-radius:12px; }
.compact-table { width:100%; min-width: 1180px; table-layout: fixed; }
.compact-table th, .compact-table td { font-size:10.5px; padding:4px 5px; vertical-align:middle; line-height:1.2; }
.compact-table thead th { position: sticky; top:0; z-index:3; background:#eef3f9; }
.column-filter-row th { top:26px !important; z-index:4; }
.column-filter-row input, .column-filter-row select, .table-datalist-input, .contract-select { width:100%; height:26px; font-size:10.5px; padding:2px 5px; border-radius:7px; }
.col-final { width:62px; } .col-suivi { width:118px; } .col-matricule { width:74px; } .col-site { width:42px; } .col-cvd { width:42px; } .col-assoc { width:92px; } .col-myreport { width:150px; } .col-score { width:45px; } .col-manager { width:140px; } .col-supervisor { width:120px; } .col-contract-type { width:100px; } .col-contract { width:62px; }
.status-pill { display:inline-flex; align-items:center; justify-content:center; border-radius:999px; padding:3px 7px; font-size:10px; font-weight:800; white-space:nowrap; }
.pill-ok { background:#dcfce7; color:#166534; }
.pill-error { background:#fee2e2; color:#991b1b; }
.pill-muted { background:#e5e7eb; color:#374151; }
.nc-label { font-weight:800; color:#64748b; }
.current-value { font-size:9px; color:var(--muted); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cell-name, .cell-supervisor { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.status-final-erreur td { background:#fff7ed; }
.status-final-ok td { background:#f0fdf4; }
.bulk-save-bar { position:sticky; bottom:0; background:rgba(255,255,255,.97); border-top:1px solid var(--border); padding:10px; display:flex; justify-content:flex-end; z-index:10; }
.bulk-save-bar button { width:auto; min-width:280px; height:40px; margin:0; }
@media (max-width:1400px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }


/* V0.7.0 - Teams */
.team-kpi-grid { grid-template-columns: repeat(5, minmax(140px, 1fr)); }
.team-table { min-width: 1250px; }
.teams-page .filters { margin-bottom: 14px; }


/* V0.7.2 - Manual users and manager scope */
.form-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:14px; }
.team-kpi-grid { grid-template-columns: repeat(4, minmax(140px, 1fr)); }


/* V0.7.4 - Users actions */
.user-page-actions {
    display: flex;
    justify-content: flex-end;
    margin: -8px 0 16px 0;
}
.user-page-actions .btn-secondary {
    text-decoration: none;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* V0.8.3 - delegation stable */
.page-actions { display:flex; gap:8px; align-items:center; justify-content:flex-end; flex-wrap:wrap; margin:8px 0 12px 0; }
.page-actions .btn-secondary { width:auto; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; }
.form-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:14px; align-items:end; }

/* V086_EMPLOYEE_DASHBOARD */
.employee-dashboard-page .status-list { margin-top: 16px; }
.employee-month-filter { grid-template-columns: 240px auto; max-width: 520px; }
.employee-stats-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.employee-table-wrapper { max-height: calc(100vh - 330px); overflow: auto; border: 1px solid var(--border); border-radius: 12px; }
.employee-summary-table { min-width: 1450px; }
.employee-summary-table th { position: sticky; top: 0; z-index: 2; }
.employee-summary-table th, .employee-summary-table td { font-size: 12px; padding: 6px; vertical-align: top; }

/* V088_EMPLOYEE_WEEKS_MATCHING */
.employee-identity-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.identity-card,.kpi,.week-card{background:rgba(255,255,255,.95);border:1px solid var(--border);border-radius:14px;padding:14px;margin-bottom:12px}.identity-card.ok{background:#f0fdf4}.identity-card.warning{background:#fffbeb}.employee-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}.kpi strong{font-size:24px;color:var(--primary-dark)}.week-card summary{cursor:pointer;font-weight:700;color:var(--primary-dark);padding:8px}.week-table-wrap{overflow:auto;max-height:430px}.employee-week-table{min-width:1200px}.employee-week-table th,.employee-week-table td{font-size:12px;padding:7px}.day-pill{border-radius:999px;padding:3px 8px;font-weight:800}.day-pill.travail{background:#dcfce7;color:#166534}.day-pill.absence{background:#fee2e2;color:#991b1b}.day-pill.repos{background:#e5e7eb;color:#374151}.row-absence td{background:#fff7ed}.row-repos td{background:#f8fafc;color:#64748b}


/* V0810B_EMPLOYEE_STATUS_FILTERS */
.employee-dashboard-v0810b .employee-month-form {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.employee-dashboard-v0810b .employee-identity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.employee-dashboard-v0810b .identity-card,
.employee-dashboard-v0810b .kpi,
.employee-dashboard-v0810b .week-card {
    background: rgba(255,255,255,.94);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
}

.employee-dashboard-v0810b .identity-card.ok {
    background: #f0fdf4;
    border-color: #86efac;
}

.employee-dashboard-v0810b .identity-card.warning {
    background: #fffbeb;
    border-color: #fde68a;
}

.employee-dashboard-v0810b .employee-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.employee-dashboard-v0810b .kpi span,
.employee-dashboard-v0810b .identity-card span,
.employee-dashboard-v0810b .identity-card small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.employee-dashboard-v0810b .kpi strong {
    display: block;
    margin-top: 4px;
    font-size: 24px;
    color: var(--primary-dark);
}

.employee-dashboard-v0810b .kpi.warn {
    background: #fff7ed;
    border-color: #fdba74;
}

.status-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 14px 0;
}

.status-filter-bar button {
    width: auto;
    margin: 0;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-weight: 800;
    cursor: pointer;
}

.status-filter-bar button.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.employee-dashboard-v0810b .week-card summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--primary-dark);
    padding: 8px;
}

.employee-dashboard-v0810b .week-table-wrap {
    overflow: auto;
    max-height: 470px;
}

.employee-dashboard-v0810b .employee-week-table {
    min-width: 1550px;
}

.employee-dashboard-v0810b .employee-week-table th,
.employee-dashboard-v0810b .employee-week-table td {
    font-size: 12px;
    padding: 7px;
    vertical-align: middle;
}

.employee-dashboard-v0810b .employee-week-table thead th {
    position: sticky;
    top: 0;
    background: #eef2f7;
    z-index: 1;
}

.employee-dashboard-v0810b .level-ok td {
    background: #f0fdf4 !important;
}

.employee-dashboard-v0810b .level-warning td {
    background: #fff7ed !important;
}

.employee-dashboard-v0810b .level-danger td {
    background: #fee2e2 !important;
    color: #7f1d1d;
    font-weight: 700;
}

.employee-dashboard-v0810b .level-neutral td,
.employee-dashboard-v0810b .status-repos td {
    background: #f8fafc !important;
    color: #475569;
}

.rule-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 8px;
    font-weight: 900;
    white-space: nowrap;
}

.rule-pill.level-ok {
    background: #bbf7d0;
    color: #166534;
}

.rule-pill.level-warning {
    background: #fed7aa;
    color: #9a3412;
}

.rule-pill.level-danger {
    background: #fecaca;
    color: #991b1b;
}

.rule-pill.level-neutral {
    background: #e2e8f0;
    color: #334155;
}

.rule-code {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    color: #64748b;
}

.control-cell {
    max-width: 260px;
    white-space: normal;
}

@media (max-width: 900px) {
    .employee-dashboard-v0810b .employee-identity-grid {
        grid-template-columns: 1fr;
    }
}


/* V0810C2_EMPLOYEE_KPI_DISPLAY */
.employee-dashboard-v0810c {
    color: #0f172a;
}

.employee-dashboard-v0810c .employee-page-header {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 14px;
}

.employee-dashboard-v0810c .employee-page-header h1 {
    margin: 0 0 6px 0;
    color: var(--primary-dark);
}

.employee-dashboard-v0810c .employee-page-header p {
    margin: 0;
    color: #475569;
    font-weight: 600;
}

.employee-dashboard-v0810c .employee-month-form {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.employee-dashboard-v0810c .employee-identity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.employee-dashboard-v0810c .identity-card,
.employee-dashboard-v0810c .synthesis-card,
.employee-dashboard-v0810c .week-card {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(226,232,240,.95);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(15,23,42,.08);
}

.employee-dashboard-v0810c .identity-card.ok {
    background: #f0fdf4;
    border-color: #86efac;
}

.employee-dashboard-v0810c .identity-card.warning {
    background: #fffbeb;
    border-color: #fde68a;
}

.employee-dashboard-v0810c .identity-card span,
.employee-dashboard-v0810c .identity-card small {
    display: block;
    color: #64748b;
    font-size: 12px;
}

.employee-dashboard-v0810c .identity-card strong {
    display: block;
    color: var(--primary-dark);
    margin: 4px 0;
}

.synthesis-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.synthesis-card h2 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--primary-dark);
}

.big-rate {
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 12px;
}

.big-rate span {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.big-rate.ok {
    color: #15803d;
}

.big-rate.warning {
    color: #c2410c;
}

.big-rate.danger {
    color: #b91c1c;
}

.mini-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 8px;
}

.mini-kpi-row div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
}

.mini-kpi-row span {
    display: block;
    font-size: 11px;
    color: #64748b;
    min-height: 28px;
}

.mini-kpi-row strong {
    display: block;
    font-size: 20px;
    color: #0f3764;
    margin-top: 4px;
}

.status-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 14px 0;
}

.status-filter-bar button {
    width: auto;
    margin: 0;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-weight: 800;
    cursor: pointer;
}

.status-filter-bar button.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.employee-dashboard-v0810c .week-card {
    margin-bottom: 12px;
}

.employee-dashboard-v0810c .week-card summary {
    cursor: pointer;
    font-weight: 900;
    color: var(--primary-dark);
    padding: 8px;
}

.employee-dashboard-v0810c .week-table-wrap {
    overflow: auto;
    max-height: 470px;
}

.employee-dashboard-v0810c .employee-week-table {
    min-width: 1550px;
}

.employee-dashboard-v0810c .employee-week-table th,
.employee-dashboard-v0810c .employee-week-table td {
    font-size: 12px;
    padding: 7px;
    vertical-align: middle;
}

.employee-dashboard-v0810c .employee-week-table thead th {
    position: sticky;
    top: 0;
    background: #eef2f7;
    z-index: 1;
}

.employee-dashboard-v0810c .level-ok td {
    background: #f0fdf4 !important;
}

.employee-dashboard-v0810c .level-warning td {
    background: #fff7ed !important;
}

.employee-dashboard-v0810c .level-danger td {
    background: #fee2e2 !important;
    color: #7f1d1d;
    font-weight: 700;
}

.employee-dashboard-v0810c .level-neutral td,
.employee-dashboard-v0810c .status-repos td {
    background: #f8fafc !important;
    color: #475569;
}

.rule-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 8px;
    font-weight: 900;
    white-space: nowrap;
}

.rule-pill.level-ok {
    background: #bbf7d0;
    color: #166534;
}

.rule-pill.level-warning {
    background: #fed7aa;
    color: #9a3412;
}

.rule-pill.level-danger {
    background: #fecaca;
    color: #991b1b;
}

.rule-pill.level-neutral {
    background: #e2e8f0;
    color: #334155;
}

.rule-code {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    color: #64748b;
}

.control-cell {
    max-width: 280px;
    white-space: normal;
}

@media (max-width: 1000px) {
    .synthesis-grid,
    .employee-dashboard-v0810c .employee-identity-grid {
        grid-template-columns: 1fr;
    }
}


/* V0810D_EMPLOYEE_ERGONOMY */
.employee-dashboard-v0810c .employee-page-header {
    background: rgba(255,255,255,.97) !important;
    box-shadow: 0 10px 28px rgba(15,23,42,.10);
}

.monthly-command-card {
    display: grid;
    grid-template-columns: minmax(230px, 320px) 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.command-main {
    background: rgba(255,255,255,.97);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(15,23,42,.10);
}

.command-main span,
.command-main small {
    display: block;
    color: #64748b;
    font-weight: 800;
}

.command-main strong {
    display: block;
    font-size: 44px;
    line-height: 1;
    margin: 8px 0;
}

.command-main.ok strong { color: #15803d; }
.command-main.warning strong { color: #c2410c; }
.command-main.danger strong { color: #b91c1c; }

.command-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
    gap: 10px;
}

.command-metrics .metric {
    background: rgba(255,255,255,.97);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 13px;
    box-shadow: 0 10px 28px rgba(15,23,42,.08);
}

.command-metrics .metric span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.command-metrics .metric strong {
    display: block;
    color: #0f3764;
    font-size: 25px;
    margin-top: 6px;
}

.command-metrics .metric.ok { border-color: #86efac; background: #f0fdf4; }
.command-metrics .metric.warning { border-color: #fdba74; background: #fff7ed; }
.command-metrics .metric.danger { border-color: #fca5a5; background: #fee2e2; }
.command-metrics .metric.neutral { background: #f8fafc; }

.synthesis-accordion-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.synthesis-panel {
    background: rgba(255,255,255,.97);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 0;
    box-shadow: 0 10px 28px rgba(15,23,42,.08);
    overflow: hidden;
}

.synthesis-panel summary {
    cursor: pointer;
    padding: 14px 16px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-dark);
    font-weight: 900;
}

.synthesis-panel summary::-webkit-details-marker {
    display: none;
}

.synthesis-panel summary::before {
    content: "▶";
    margin-right: 8px;
    color: #64748b;
}

.synthesis-panel[open] summary::before {
    content: "▼";
}

.synthesis-panel summary span {
    flex: 1;
}

.synthesis-panel summary strong {
    color: #0f3764;
    font-size: 18px;
}

.synthesis-panel .panel-body {
    border-top: 1px solid #e2e8f0;
    padding: 12px;
}

.employee-dashboard-v0810c .synthesis-grid {
    display: none !important;
}

.status-filter-bar {
    background: rgba(255,255,255,.93);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 8px 22px rgba(15,23,42,.08);
}

.status-filter-bar button[data-filter="ok"] {
    border-color: #86efac;
}

.status-filter-bar button[data-filter="warning"] {
    border-color: #fdba74;
}

.status-filter-bar button[data-filter="danger"] {
    border-color: #fca5a5;
}

.status-filter-bar button[data-filter="danger"].active {
    background: #b91c1c;
    border-color: #b91c1c;
}

.status-filter-bar button[data-filter="warning"].active {
    background: #c2410c;
    border-color: #c2410c;
}

.status-filter-bar button[data-filter="ok"].active {
    background: #15803d;
    border-color: #15803d;
}

@media (max-width: 1000px) {
    .monthly-command-card,
    .synthesis-accordion-grid {
        grid-template-columns: 1fr;
    }
}


/* V0811B_MANAGER_TEAM_COMPLIANCE_CSS */
.manager-compliance-page { color: #0f172a; }
.manager-compliance-header,.team-command-card,.team-table-card{background:rgba(255,255,255,.96);border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 10px 28px rgba(15,23,42,.08)}
.manager-compliance-header{display:grid;grid-template-columns:1fr minmax(220px,320px);gap:14px;padding:18px;margin-bottom:14px}.manager-compliance-header h1{margin:0 0 6px;color:var(--primary-dark)}.manager-compliance-header p{margin:0;color:#475569;font-weight:600}.manager-month-form{display:grid;gap:8px;align-content:center}
.team-command-card{display:grid;grid-template-columns:minmax(240px,330px) 1fr;gap:12px;padding:14px;margin-bottom:14px}.team-command-main{border-radius:16px;padding:18px;background:#f8fafc;border:1px solid #e2e8f0}.team-command-main span,.team-command-main small{display:block;color:#64748b;font-weight:800}.team-command-main strong{display:block;font-size:44px;line-height:1;margin:8px 0}.team-command-main.level-ok strong{color:#15803d}.team-command-main.level-warning strong{color:#c2410c}.team-command-main.level-danger strong{color:#b91c1c}.team-command-main.level-neutral strong{color:#334155}
.team-command-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:10px}.team-command-metrics .metric{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:11px}.team-command-metrics .metric.ok{background:#f0fdf4;border-color:#86efac}.team-command-metrics .metric.warning{background:#fff7ed;border-color:#fdba74}.team-command-metrics .metric.danger{background:#fee2e2;border-color:#fca5a5}.team-command-metrics span{display:block;color:#64748b;font-size:12px;font-weight:800}.team-command-metrics strong{display:block;color:#0f3764;font-size:23px;margin-top:5px}
.team-filter-bar{display:flex;flex-wrap:wrap;gap:8px;background:rgba(255,255,255,.93);border:1px solid #e2e8f0;border-radius:16px;padding:10px;margin-bottom:14px;box-shadow:0 8px 22px rgba(15,23,42,.08)}.team-filter-bar button{width:auto;margin:0;padding:8px 12px;border-radius:999px;border:1px solid #cbd5e1;background:#fff;color:#0f172a;font-weight:800;cursor:pointer}.team-filter-bar button.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.team-table-card{padding:14px}.team-table-title h2{margin:0 0 4px;color:var(--primary-dark)}.team-table-title p{margin:0 0 12px;color:#64748b;font-weight:600}.team-table-wrap{overflow:auto;max-height:580px}.team-compliance-table{min-width:1450px}.team-compliance-table th,.team-compliance-table td{font-size:12px;padding:8px;vertical-align:middle}.team-compliance-table thead th{position:sticky;top:0;background:#eef2f7;z-index:1}
.team-member-row.level-ok td{background:#f0fdf4!important}.team-member-row.level-warning td{background:#fff7ed!important}.team-member-row.level-danger td{background:#fee2e2!important;color:#7f1d1d;font-weight:700}.team-member-row.level-neutral td{background:#f8fafc!important;color:#475569}.team-pill{display:inline-block;border-radius:999px;padding:4px 9px;font-weight:900;white-space:nowrap}.team-pill.level-ok{background:#bbf7d0;color:#166534}.team-pill.level-warning{background:#fed7aa;color:#9a3412}.team-pill.level-danger{background:#fecaca;color:#991b1b}.team-pill.level-neutral{background:#e2e8f0;color:#334155}.team-compliance-table small{display:block;color:#64748b;margin-top:3px}.small-action-link{display:inline-block;border-radius:999px;padding:6px 10px;background:var(--primary);color:white;font-weight:900;text-decoration:none;white-space:nowrap}.small-action-link:hover{background:var(--primary-dark)}
@media(max-width:1100px){.manager-compliance-header,.team-command-card{grid-template-columns:1fr}}


/* ============================================================================
   Ajout v0812L : style du logo dans l'en-tete (base.html contient desormais
   <img class="brand-logo"> + <span class="brand-name">).
   AUCUNE regle existante n'est modifiee ou supprimee : tout le reste de la
   feuille d'origine reste actif (menus deroulants, visualisations, etc.).
   ========================================================================== */
.brand-simple { display:flex; align-items:center; gap:12px; }
.brand-logo { height:38px; width:auto; display:block; }
.brand-name { padding-left:12px; border-left:2px solid var(--primary); font-size:20px; font-weight:800; color:var(--primary-dark); line-height:1; }
@media (max-width:1000px){ .brand-simple{ gap:10px; } .brand-logo{ height:32px; } .brand-name{ font-size:18px; } }
/* === PATCH UI NAVIGATION + SYNTHESES V1 - START === */
.app-shell-topbar { position: sticky; top: 0; z-index: 50; min-height: 76px; gap: 18px; align-items: stretch; }
.app-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { max-height: 44px; max-width: 160px; object-fit: contain; }
.app-nav { display: flex; align-items: stretch; justify-content: flex-end; gap: 10px; flex: 1; }
.nav-section { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border: 1px solid rgba(11,49,92,.08); border-radius: 14px; background: rgba(248,250,252,.9); }
.nav-section-user { max-width: 260px; }
.nav-section-exit { background: rgba(254,242,242,.8); }
.nav-group-label { font-size: 10px; line-height: 1; text-transform: uppercase; color: var(--muted); font-weight: 900; letter-spacing: .08em; margin-right: 4px; }
.nav-link { text-decoration: none; color: var(--primary-dark); font-weight: 750; padding: 9px 10px; border-radius: 10px; white-space: nowrap; }
.nav-link:hover { background: #e8f2fb; }
.nav-link.active { background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(17,75,139,.22); }
.nav-link-logout { color: var(--danger); }
.nav-user { display: flex; flex-direction: column; gap: 2px; color: var(--primary-dark); line-height: 1.15; }
.nav-user small { color: var(--muted); font-size: 11px; }
.nav-toggle { display: none; width: auto; height: 40px; margin: auto 0; padding: 0 14px; }
.app-main { max-width: 1480px; margin: 0 auto; }
.hub-page { overflow: hidden; }
.hub-header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
.eyebrow { margin: 0 0 6px 0; color: var(--accent); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.hub-status-card { min-width: 240px; padding: 18px; border-radius: 18px; background: linear-gradient(135deg,#eff6ff,#ffffff); border: 1px solid #bfdbfe; box-shadow: 0 12px 28px rgba(15,23,42,.08); }
.hub-status-card.ok { background: linear-gradient(135deg,#ecfdf5,#ffffff); border-color: #86efac; }
.hub-status-card.danger { background: linear-gradient(135deg,#fef2f2,#ffffff); border-color: #fecaca; }
.hub-status-card span, .summary-pill span { display: block; color: var(--muted); font-weight: 800; font-size: 12px; text-transform: uppercase; }
.hub-status-card strong { display: block; margin-top: 4px; font-size: 30px; color: var(--primary-dark); }
.hub-status-card small, .summary-pill small, .hub-tile small { display: block; margin-top: 5px; color: var(--muted); }
.summary-strip { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 12px; margin: 20px 0 24px 0; }
.summary-pill { border: 1px solid var(--border); border-radius: 16px; padding: 15px; background: #fff; }
.summary-pill strong { display: block; margin-top: 4px; color: var(--primary-dark); }
.summary-pill.ok { border-color: #86efac; background: #f0fdf4; } .summary-pill.warning { border-color: #fcd34d; background: #fffbeb; } .summary-pill.danger { border-color: #fecaca; background: #fef2f2; } .summary-pill.info { border-color: #bae6fd; background: #f0f9ff; } .summary-pill.neutral { border-color: #e5e7eb; background: #f8fafc; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 16px; margin-top: 18px; }
.hub-tile { display: flex; flex-direction: column; gap: 8px; min-height: 150px; padding: 20px; border-radius: 20px; text-decoration: none; color: var(--text); background: #ffffff; border: 1px solid var(--border); box-shadow: 0 10px 26px rgba(15,23,42,.07); transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.hub-tile:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 18px 36px rgba(15,23,42,.12); }
.hub-tile.primary { border-color: #93c5fd; background: linear-gradient(135deg,#eff6ff,#ffffff); }
.hub-icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 13px; background: var(--primary); color: #fff; font-weight: 900; }
.hub-tile strong { color: var(--primary-dark); font-size: 18px; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 999px; display: none; align-items: center; justify-content: center; box-shadow: 0 12px 26px rgba(15,23,42,.22); z-index: 60; }
.back-to-top.visible { display: inline-flex; }
@media (max-width: 1180px) { .app-shell-topbar { align-items: center; flex-wrap: wrap; padding: 12px 18px; } .nav-toggle { display: inline-flex; align-items: center; justify-content: center; } .app-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; } .app-nav.is-open { display: flex; } .nav-section { flex-wrap: wrap; justify-content: flex-start; } .nav-section-user { max-width: none; } .hub-header { flex-direction: column; } .hub-status-card { width: 100%; } }
@media (max-width: 640px) { main, .app-main { padding-left: 12px; padding-right: 12px; } .page-card, .page-card.wide { padding: 22px; } .hub-grid { grid-template-columns: 1fr; } .summary-strip { grid-template-columns: 1fr; } }
/* === PATCH UI NAVIGATION + SYNTHESES V1 - END === */

/* === PATCH UI TABLEAUX + FILTRES + RH V2 - START === */
:root { --surface-strong: rgba(255,255,255,.975); --shadow-soft: 0 18px 48px rgba(15,23,42,.16); }
.app-main, main { max-width: none !important; width: 100%; padding-left: 18px; padding-right: 18px; }
.page-card, .page-card.wide, .manager-compliance-page, .employee-dashboard-v0810c { width: calc(100vw - 52px) !important; max-width: none !important; margin-left: auto !important; margin-right: auto !important; }
.page-card, .manager-compliance-header, .team-command-card, .team-filter-bar, .employee-page-header, .monthly-command-card, .employee-month-form, .employee-identity-grid, .synthesis-panel, .table-wrapper { background: var(--surface-strong); box-shadow: var(--shadow-soft); }
.table-wrapper { width: 100% !important; max-width: none !important; overflow: auto; border-radius: 16px; border: 1px solid var(--border); }
table { width: 100% !important; min-width: 1180px; border-collapse: separate; border-spacing: 0; }
thead th { position: sticky; top: 0; z-index: 5; background: #eaf2fb !important; box-shadow: inset 0 -1px 0 var(--border); }
tbody tr { transition: background .12s ease; }
tbody tr:hover { background: #eef8ff !important; }
.auto-table-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 12px 0; padding: 12px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 8px 22px rgba(15,23,42,.08); }
.auto-table-tools .global-search { min-width: 280px; flex: 1; height: 40px; border-radius: 999px; }
.auto-table-tools .table-count { font-weight: 900; color: var(--primary-dark); white-space: nowrap; }
.table-filter-row th { top: 34px; z-index: 4; background: #f8fafc !important; padding: 6px !important; }
.table-filter-row input, .table-filter-row select { width: 100%; height: 34px; min-width: 80px; border-radius: 9px; font-size: 12px; padding: 0 8px; }
.rh-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 12px; margin: 14px 0 18px 0; }
.rh-kpi-card { border: 1px solid var(--border); border-radius: 16px; padding: 14px; background: #fff; box-shadow: 0 8px 20px rgba(15,23,42,.06); }
.rh-kpi-card span { display:block; color: var(--muted); font-weight: 850; font-size: 12px; text-transform: uppercase; }
.rh-kpi-card strong { display:block; margin-top:5px; color: var(--primary-dark); font-size: 24px; }
.rh-kpi-card small { display:block; margin-top:3px; color: var(--muted); }
.rh-kpi-card.ok { border-color: #86efac; background:#f0fdf4; }
.rh-kpi-card.warning { border-color:#fcd34d; background:#fffbeb; }
.rh-kpi-card.danger { border-color:#fecaca; background:#fef2f2; }
.rh-kpi-card.info { border-color:#bae6fd; background:#f0f9ff; }
.page-actions-sticky { position: sticky; top: 88px; z-index: 20; display:flex; gap:10px; flex-wrap:wrap; margin-bottom:12px; padding:10px; border-radius:16px; background:rgba(255,255,255,.94); border:1px solid var(--border); box-shadow:0 10px 26px rgba(15,23,42,.10); }
.btn-secondary-link { display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:999px; background:#eef2ff; border:1px solid #c7d2fe; color:var(--primary-dark); text-decoration:none; font-weight:900; }
.btn-secondary-link:hover { background:#dbeafe; }
@media (max-width: 900px) { .page-card, .page-card.wide, .manager-compliance-page, .employee-dashboard-v0810c { width: calc(100vw - 24px) !important; } .app-main, main { padding-left: 8px; padding-right: 8px; } .auto-table-tools .global-search { min-width: 100%; } }
/* === PATCH UI TABLEAUX + FILTRES + RH V2 - END === */

/* === PATCH UI RH CONSOLIDE V3 - START === */
.rh-section-title { margin: 18px 0 8px 0; padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.96); border: 1px solid var(--border); box-shadow: 0 10px 26px rgba(15,23,42,.09); }
.rh-section-title h2 { margin: 0; color: var(--primary-dark); }
.rh-section-title p { margin: 6px 0 0 0; color: var(--muted); font-weight: 600; }
.rh-kpi-grid-extended { grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); }
.rh-kpi-card.neutral { border-color:#e5e7eb; background:#f8fafc; }
.team-member-row[data-contract="interim"] td { background-image: linear-gradient(90deg, rgba(255,251,235,.65), rgba(255,255,255,0)); }
.team-member-row[data-contract="permanent"] td { background-image: linear-gradient(90deg, rgba(240,253,244,.42), rgba(255,255,255,0)); }
/* === PATCH UI RH CONSOLIDE V3 - END === */

/* === PATCH UI SYNTHESE UNIQUE + PVNPVNPH V4 - START === */
.unified-synthesis-card{margin:14px 0;padding:16px;border-radius:18px;background:rgba(255,255,255,.97);border:1px solid var(--border);box-shadow:0 14px 34px rgba(15,23,42,.12)}
.unified-synthesis-header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:12px}.unified-synthesis-header h2{margin:0;color:var(--primary-dark)}.unified-synthesis-header p{margin:5px 0 0 0;color:var(--muted);font-weight:600}.unified-score{display:inline-flex;align-items:center;justify-content:center;min-width:104px;min-height:58px;padding:10px 16px;border-radius:16px;font-size:28px;color:var(--primary-dark);background:#f8fafc;border:1px solid var(--border)}.unified-score.ok{background:#f0fdf4;border-color:#86efac}.unified-score.warning{background:#fffbeb;border-color:#fcd34d}.unified-score.danger{background:#fef2f2;border-color:#fecaca;color:#b91c1c}
.unified-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}.unified-kpi{padding:12px;border-radius:14px;border:1px solid var(--border);background:#fff;box-shadow:0 7px 18px rgba(15,23,42,.055)}.unified-kpi span{display:block;color:var(--muted);font-size:11px;font-weight:900;text-transform:uppercase}.unified-kpi strong{display:block;margin-top:4px;color:var(--primary-dark);font-size:22px}.unified-kpi small{display:block;margin-top:3px;color:var(--muted)}.unified-kpi.ok{background:#f0fdf4;border-color:#86efac}.unified-kpi.warning{background:#fffbeb;border-color:#fcd34d}.unified-kpi.danger{background:#fef2f2;border-color:#fecaca}.unified-kpi.info{background:#f0f9ff;border-color:#bae6fd}.manager-unified-grid{margin:12px 0 18px 0;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
@media (max-width:700px){.unified-synthesis-header{flex-direction:column}.unified-score{width:100%}}
/* === PATCH UI SYNTHESE UNIQUE + PVNPVNPH V4 - END === */

/* === PATCH V5 CONSOLIDATION MANAGER - START === */
.identity-card.manager-card { border-color:#bfdbfe; background:linear-gradient(135deg,#eff6ff,#ffffff); }
.identity-card.manager-card strong { font-size:15px; line-height:1.25; }
/* === PATCH V5 CONSOLIDATION MANAGER - END === */

/* === PATCH V6 PRO CONSOLIDATION - START === */
.pro-section-title { margin-top:16px; }
.pro-kpi-grid { grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); }
.employee-identity-grid .identity-card:first-child small { display:block; margin-top:4px; }
.employee-identity-grid .identity-card:first-child .manager-inline { display:block; margin-top:6px; color:var(--primary-dark); font-weight:800; }
/* Masque les cartes RH rapides V2 si elles sont encore présentes pour éviter les doublons avec la synthèse complète. */
.employee-dashboard-v0810c > .rh-kpi-grid { display:none; }
/* === PATCH V6 PRO CONSOLIDATION - END === */
/* === PATCH V7 PRO CLEANUP - START === */
.pro-kpi-grid { grid-template-columns: repeat(auto-fit,minmax(205px,1fr)); }
.employee-dashboard-v0810c > .monthly-command-card,
.employee-dashboard-v0810c > .rh-kpi-grid { display:none !important; }
.employee-identity-grid .manager-inline { display:block; margin-top:6px; color:var(--primary-dark); font-weight:900; }
.unified-synthesis-card { margin-top:16px; }
/* === PATCH V7 PRO CLEANUP - END === */

/* === PATCH V8 RH BOARD CLEAN - START === */
.employee-dashboard-v0810c > .monthly-command-card,
.employee-dashboard-v0810c > .rh-kpi-grid { display:none !important; }
.employee-identity-grid .manager-inline { display:block; margin-top:6px; color:var(--primary-dark); font-weight:900; }
.rh-pro-board { margin:18px 0; padding:18px; border-radius:22px; background:rgba(255,255,255,.97); border:1px solid var(--border); box-shadow:0 16px 38px rgba(15,23,42,.14); }
.rh-pro-header { display:flex; justify-content:space-between; gap:16px; margin-bottom:14px; }
.rh-pro-header h2 { margin:0; color:var(--primary-dark); }
.rh-pro-header p { margin:6px 0 0 0; color:var(--muted); font-weight:650; }
.rh-pro-group { border:1px solid rgba(215,222,232,.95); border-radius:18px; padding:14px; background:linear-gradient(135deg,rgba(248,250,252,.98),rgba(255,255,255,.94)); margin-top:12px; }
.rh-pro-group-main { border-color:#bfdbfe; background:linear-gradient(135deg,#eff6ff,#ffffff); }
.rh-pro-group-title { font-size:12px; font-weight:950; color:var(--primary-dark); text-transform:uppercase; letter-spacing:.06em; margin-bottom:10px; }
.rh-pro-formula { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:10px 12px; border-radius:14px; background:#fff; border:1px dashed #93c5fd; margin-bottom:12px; }
.rh-pro-formula span { color:var(--muted); font-weight:800; }
.rh-pro-formula strong { color:var(--primary-dark); font-size:18px; }
.rh-pro-formula em { color:var(--accent); font-style:normal; font-weight:950; }
.rh-pro-cards { display:grid; gap:12px; }
.rh-pro-cards.three { grid-template-columns:repeat(3,minmax(190px,1fr)); }
.rh-pro-cards.compact { grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); }
.rh-pro-cards.compact.wide { grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); }
.rh-pro-groups-secondary { display:grid; grid-template-columns:1fr 2fr; gap:12px; }
.rh-pro-card { border:1px solid var(--border); border-radius:16px; background:#fff; padding:14px; box-shadow:0 8px 20px rgba(15,23,42,.06); }
.rh-pro-card span { display:block; color:var(--muted); font-size:11px; font-weight:950; text-transform:uppercase; }
.rh-pro-card strong { display:block; color:var(--primary-dark); font-size:25px; margin-top:5px; }
.rh-pro-card small { display:block; color:var(--muted); margin-top:4px; font-weight:600; }
.rh-pro-card.permanent { background:#f0fdf4; border-color:#86efac; }
.rh-pro-card.temporary { background:#fffbeb; border-color:#fcd34d; }
.rh-pro-card.total { background:#eff6ff; border-color:#93c5fd; }
.rh-pro-card.warning { background:#fff7ed; border-color:#fdba74; }
.rh-pro-card.info { background:#f0f9ff; border-color:#bae6fd; }
@media (max-width:1000px){ .rh-pro-cards.three,.rh-pro-groups-secondary{grid-template-columns:1fr;} }
/* === PATCH V8 RH BOARD CLEAN - END === */

/* === PATCH V9 RH BOARD GAP - START === */
.rh-pro-board-v9 .rh-pro-formula { display:none !important; }
.rh-pro-board-v9 .rh-pro-groups-secondary { grid-template-columns:1.25fr 1fr .8fr; gap:12px; }
.rh-pro-board-v9 .rh-pro-group-main .rh-pro-card strong { font-size:30px; }
.rh-pro-card.warning { background:#fff7ed; border-color:#fdba74; }
.rh-pro-card.permanent { background:#f0fdf4; border-color:#86efac; }
.rh-pro-card.temporary { background:#fffbeb; border-color:#fcd34d; }
.rh-pro-card.total { background:#eff6ff; border-color:#93c5fd; }
.employee-dashboard-v0810c > .monthly-command-card,
.employee-dashboard-v0810c > .rh-kpi-grid { display:none !important; }
@media(max-width:1200px){ .rh-pro-board-v9 .rh-pro-groups-secondary { grid-template-columns:1fr; } }
/* === PATCH V9 RH BOARD GAP - END === */

/* === PATCH V10 RH CODES GAPS - START === */
.rh-pro-board-v10 .rh-pro-groups-secondary{grid-template-columns:1.25fr 1fr .9fr;gap:12px}.rh-pro-board-v10 .rh-pro-group-main .rh-pro-card strong{font-size:30px}.rh-pro-card.warning{background:#fff7ed;border-color:#fdba74}.rh-pro-card.permanent{background:#f0fdf4;border-color:#86efac}.rh-pro-card.temporary{background:#fffbeb;border-color:#fcd34d}.rh-pro-card.total{background:#eff6ff;border-color:#93c5fd}.rh-pro-card.info{background:#f0f9ff;border-color:#bae6fd}.employee-dashboard-v0810c>.monthly-command-card,.employee-dashboard-v0810c>.rh-kpi-grid{display:none!important}.hr-code-nature{display:block;margin-top:3px;color:var(--muted);font-weight:800}@media(max-width:1200px){.rh-pro-board-v10 .rh-pro-groups-secondary{grid-template-columns:1fr}}
/* === PATCH V10 RH CODES GAPS - END === */

/* === PATCH V11 EMPLOYEE WEEK TABLE CLEAN - START === */
.employee-dashboard-v0810c .week-card table thead tr:nth-child(2),
.employee-dashboard-v0810c .week-table table thead tr:nth-child(2),
.employee-dashboard-v0810c details table thead tr:nth-child(2),
.employee-dashboard-v0810c .table-responsive table thead tr:nth-child(2) { display:none !important; }
/* === PATCH V11 EMPLOYEE WEEK TABLE CLEAN - END === */

/* === PATCH V11.1 UI COLLAPSE CLEAN - START === */
.employee-dashboard-v0810c details .table-toolbar,.employee-dashboard-v0810c details .table-search,.employee-dashboard-v0810c details input[placeholder*="Recherche globale"],.employee-dashboard-v0810c .week-card input[placeholder*="Recherche globale"],.employee-dashboard-v0810c .week-table input[placeholder*="Recherche globale"]{display:none!important;}
.employee-dashboard-v0810c .week-card table thead tr:nth-child(2),.employee-dashboard-v0810c .week-table table thead tr:nth-child(2),.employee-dashboard-v0810c details table thead tr:nth-child(2),.employee-dashboard-v0810c .table-responsive table thead tr:nth-child(2){display:none!important;}
.ai-collapse-summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px;font-weight:950;color:var(--primary-dark);}.ai-collapse-summary::after{content:'Afficher / masquer';font-size:12px;padding:7px 10px;border-radius:999px;background:#eff6ff;border:1px solid #bfdbfe;}
/* === PATCH V11.1 UI COLLAPSE CLEAN - END === */

/* === PATCH V12 RH UI VISIBILITY - START === */
/* Bandeau visible pour les synthèses repliées */
details.ai-collapsed-synthesis,
.employee-dashboard-v0810c details.ai-collapsed-synthesis,
.team-compliance-page details.ai-collapsed-synthesis {
  display:block !important;
  margin:14px 0 !important;
  border:2px solid #174f8f !important;
  border-radius:18px !important;
  background:rgba(255,255,255,.96) !important;
  box-shadow:0 10px 24px rgba(15,23,42,.16) !important;
  overflow:hidden !important;
}
details.ai-collapsed-synthesis > summary,
.ai-collapse-summary {
  cursor:pointer !important;
  list-style:none !important;
  min-height:46px !important;
  padding:13px 18px !important;
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
  gap:12px !important;
  font-weight:950 !important;
  color:#073763 !important;
  background:linear-gradient(90deg,#eaf4ff,#ffffff) !important;
  border-bottom:1px solid #bfdbfe !important;
}
details.ai-collapsed-synthesis > summary::before,
.ai-collapse-summary::before { content:'▶ '; font-weight:950; }
details.ai-collapsed-synthesis[open] > summary::before { content:'▼ '; }
details.ai-collapsed-synthesis > summary::after,
.ai-collapse-summary::after {
  content:'Afficher / masquer' !important;
  font-size:12px !important;
  padding:7px 12px !important;
  border-radius:999px !important;
  background:#0f4f8f !important;
  color:white !important;
  border:1px solid #073763 !important;
}
/* Affichage lisible des absences dans le tableau semaine */
.employee-week-table td:nth-child(9) {
  font-weight:800;
  color:#0f172a;
}
.employee-week-table td:nth-child(9) small.hr-code-nature {
  display:block;
  margin-top:4px;
  font-weight:800;
  color:#64748b;
}
/* Retrait recherche globale des semaines employé */
.employee-dashboard-v0810c details .table-toolbar,
.employee-dashboard-v0810c details .table-search,
.employee-dashboard-v0810c details input[placeholder*="Recherche globale"],
.employee-dashboard-v0810c .week-card input[placeholder*="Recherche globale"],
.employee-dashboard-v0810c .week-table input[placeholder*="Recherche globale"] { display:none !important; }
/* === PATCH V12 RH UI VISIBILITY - END === */

/* === PATCH V13 RH DETAIL UI - START === */
.rh-detail-list{margin-top:7px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}.rh-detail-pill{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:#fff7ed;border:1px solid #fdba74;color:#7c2d12;font-weight:900;font-size:11px;line-height:1.15}.rh-detail-pill strong{font-size:12px}.site-hours-detail{display:block;margin-top:4px;color:#0f172a;font-weight:800}.employee-week-table td:nth-child(9){font-weight:850;color:#0f172a}.employee-week-table td:nth-child(9):empty::after{content:''}.employee-week-table td:nth-child(9) small.hr-code-nature{display:none!important}details.ai-collapsed-synthesis>summary,.ai-collapse-summary{background:linear-gradient(90deg,#dbeafe,#fff)!important;border:1px solid #93c5fd!important;border-radius:14px!important;margin-bottom:8px!important;color:#073763!important;font-weight:950!important;box-shadow:0 6px 16px rgba(15,23,42,.14)!important}
/* === PATCH V13 RH DETAIL UI - END === */

/* === PATCH V14 RH POLISH - START === */
.rh-detail-list{margin-top:10px;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;width:100%}.rh-detail-pill{display:flex!important;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;border-radius:12px;background:#fff7ed;border:1px solid #fb923c;color:#7c2d12;font-weight:900;font-size:11px;line-height:1.15;box-shadow:0 3px 8px rgba(124,45,18,.08)}.rh-detail-pill strong{font-size:13px;color:#431407;white-space:nowrap}.rh-detail-list.offpost .rh-detail-pill{background:#eff6ff;border-color:#93c5fd;color:#1e3a8a}.rh-detail-list.offpost .rh-detail-pill strong{color:#172554}.site-hours-detail{display:block;margin-top:4px;color:#0f172a;font-weight:800}.employee-week-table td:nth-child(9){font-weight:850;color:#0f172a}.employee-week-table td:nth-child(9) small.hr-code-nature{display:none!important}.unified-kpi,.rh-kpi-card,.rh-pro-card{border-radius:16px!important;box-shadow:0 6px 16px rgba(15,23,42,.08)!important}.unified-kpi span,.rh-kpi-card span,.rh-pro-card span{text-transform:uppercase;letter-spacing:.04em}.ai-collapse-summary,details.ai-collapsed-synthesis>summary{background:linear-gradient(90deg,#dbeafe,#fff)!important;border:1px solid #93c5fd!important;border-radius:14px!important;color:#073763!important;font-weight:950!important}
/* === PATCH V14 RH POLISH - END === */

