* {
    box-sizing: border-box;
}
@media (max-width: 767px) {
  #pageContent .objectifs-table > tbody > .objectif-card { display:block; position:relative; margin:0; padding:0; border:1px solid #dbe4f0; border-radius:10px; background:#fff; box-shadow:0 3px 10px rgba(15,23,42,.04); }
  #pageContent .objectifs-table > tbody > .objectif-card > td { display:block; width:100%; padding:0; border:0; }
  #pageContent .objectifs-table .objectif-card-title { min-height:0; padding:14px 112px 10px 14px; background:none; color:#172033; font-size:14px; font-weight:700; line-height:1.35; }
  #pageContent .objectifs-table .objectif-card-title::before { content:none; }
  #pageContent .objectifs-table .objectif-card-user, #pageContent .objectifs-table .objectif-card-project, #pageContent .objectifs-table .objectif-card-objective-state { display:none; }
  #pageContent .objectifs-table .objectif-card-task-state { position:absolute; top:14px; right:10px; width:auto; padding:0; margin:0; }
  #pageContent .objectifs-table .objectif-task-state { padding:4px 7px; font-size:10px; }
  #pageContent .objectifs-table .objectif-card-date, #pageContent .objectifs-table .objectif-card-tasks { display:inline-block; width:auto; padding:6px 0 10px; color:#64748b; font-size:12px; }
  #pageContent .objectifs-table .objectif-card-date { padding-left:14px; }
  #pageContent .objectifs-table .objectif-card-date::before { content:"📅  Échéance : "; margin:0; font-size:12px; }
  #pageContent .objectifs-table .objectif-card-tasks::before { content:" •  Tâches : "; margin:0; }
  #pageContent .objectifs-table .objectif-card-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:0 10px 10px; padding:10px 0 0; border-top:1px solid #e5ebf2; }
  #pageContent .objectifs-table .objectif-card-actions .table-action { display:flex; align-items:center; justify-content:center; min-height:32px; width:100%; margin:0; border:1px solid #dbe4f0; border-radius:7px; background:#fbfdff; color:#0757e8; font-size:0; }
  #pageContent .objectifs-table .objectif-card-actions .btn-edit { order:1; } #pageContent .objectifs-table .objectif-card-actions .btn-view { order:2; } #pageContent .objectifs-table .objectif-card-actions .btn-delete { display:none; }
  #pageContent .objectifs-table .objectif-card-actions .btn-edit::after { content:"✎  Modifier"; font-size:12px; font-weight:700; } #pageContent .objectifs-table .objectif-card-actions .btn-view::after { content:"◉  Voir"; font-size:12px; font-weight:700; }
}

body {
    margin: 0;
    background: linear-gradient(135deg, #f4f7fb 0%, #eef2f7 100%);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    color: #213042;
}

.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: min(100%, 400px);
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.auth-text-link {
    border: 0;
    background: transparent;
    color: #1f5bd8;
    padding: 0.45rem;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.nav-item.beta-nav-item {
    background: #b42318;
    color: #ffffff;
    font-weight: 700;
}

.nav-item.beta-nav-item:hover,
.nav-item.beta-nav-item.active {
    background: #8f1d14;
}

.beta-page {
    display: grid;
    gap: 18px;
}

.beta-panel {
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
}

.beta-panel h4 {
    margin-top: 0;
}

.beta-intro {
    white-space: pre-wrap;
    line-height: 1.55;
}

.beta-counter {
    margin-top: 4px;
    text-align: right;
    color: #64748b;
}

.form-help {
    color: #475569;
    line-height: 1.45;
}

.beta-admin-comment {
    min-width: 220px;
}

#forgotPasswordBtn {
    display: block;
    margin-top: 6px;
    text-align: center;
}

#loginMfaStep .auth-error-message {
    color: #b42318;
}

#loginMfaStep .secondary-button {
    margin-top: 8px;
    background: #ffffff;
    color: #1f5bd8;
    border: 1px solid #cbd5e1;
    box-shadow: none;
}

.login-card .password-field {
    width: 100%;
}

.login-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.login-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    opacity: 0.95;
}

h1 {
    margin: 0 0 24px;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    color: #172033;
}

h2 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
    color: #172033;
}

input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid #d6deeb;
    border-radius: 10px;
    font-size: 14px;
    background: #f9fbfd;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.db2-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.db2-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 20px;
}

.db2-top h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.db2-top p {
    margin: 0;
    color: #64748b;
}

.db2-wave {
    font-size: 24px;
}

.db2-last {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 8px;
}

.db2-row {
    display: grid;
    gap: 16px;
}

.db2-row-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.db2-row-progress {
    grid-template-columns: 2fr 1fr;
}

.db2-row-bottom {
    grid-template-columns: 1.2fr 1fr;
}

.db2-card {
    padding: 16px;
    background: #fff;
    border: 1px solid #e5ebf2;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.db2-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.db2-card h3 {
    margin: 0;
    font-size: 20px;
    color: #172033;
}

.db2-link {
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.db2-link-add {
    display: inline-block;
    margin-top: 8px;
}

.db2-objectifs,
.db2-checks,
.db2-messages,
.db2-reminders ul,
.db2-metrics {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.db2-objectifs li,
.db2-checks li,
.db2-messages li,
.db2-reminders li,
.db2-metrics li {
    border: 1px solid #edf2f7;
    border-radius: 10px;
    padding: 10px 12px;
}

.db2-item-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
    color: #0f172a;
}

.dashboard-objective-title {
    min-width: 0;
    font-weight: 400;
    line-height: 1.35;
    text-align: justify;
    text-align-last: left;
}

.dashboard-objective-option {
    padding: 0 !important;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dbe4f0 !important;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.dashboard-objective-option.is-selected {
    background: #eff6ff;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.16);
}

.dashboard-objective-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #172033;
    font: inherit;
    text-align: left;
    box-shadow: none;
    cursor: pointer;
}

.dashboard-objective-button:hover {
    background: rgba(37, 99, 235, 0.06);
}

.dashboard-objective-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: -3px;
}

.dashboard-objective-button > .dashboard-objective-title {
    flex: 1 1 auto;
}

.dashboard-objective-meta {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.dashboard-objective-task-count {
    color: #475569;
    font-size: 12px;
    white-space: nowrap;
}

.dashboard-objective-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #2563eb;
    font-size: 24px;
    line-height: 1;
    transition: transform 160ms ease;
}

.dashboard-objective-option.is-selected .dashboard-objective-chevron {
    transform: rotate(90deg);
}

.dashboard-objective-inline-tasks,
.dashboard-mobile-task-links {
    display: none;
}

.db2-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.db2-tag-ok {
    background: #dcfce7;
    color: #166534;
}

.db2-tag-mid {
    background: #fef3c7;
    color: #92400e;
}

.db2-progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e5ebf2;
    overflow: hidden;
}

.db2-progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1e40af 0%, #2563eb 100%);
}

.db2-checks li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1f2937;
}

.db2-checks li span {
    margin-left: auto;
    font-size: 12px;
    color: #64748b;
}

.db2-task-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.db2-task-main input {
  margin: 0;
  flex: 0 0 auto;
}

.db2-task-main strong {
  min-width: 0;
  overflow: hidden;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.db2-checks li > span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.dashboard-task-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 135px 105px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
}

.dashboard-task-title {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f2937;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  text-align: justify;
  text-align-last: left;
  cursor: pointer;
}

.dashboard-task-title-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-task-state-select {
  min-width: 135px;
  max-width: 180px;
  margin: 0;
  padding: 5px 8px;
  font-size: 14px;
    font-weight: 600;
  font-weight: 700;
}

.dashboard-task-state-select.pending {
  color: #374151;
  background: #e5e7eb;
  border-color: #9ca3af;
}

.dashboard-task-state-select.partial {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fb923c;
}

.dashboard-task-state-select.done {
  color: #166534;
  background: #dcfce7;
  border-color: #4ade80;
}

.dashboard-task-state-select.overdue {
  color: #991b1b;
  background: #fee2e2;
  border-color: #f87171;
}

.dashboard-task-due {
  margin-left: 0 !important;
  width: 105px;
  color: #1f2937 !important;
  font: inherit !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  text-align: right;
  align-self: center;
  justify-self: end;
}

.taches-table {
  min-width: 1180px;
}

.taches-table.without-accompagne {
  min-width: 980px;
}

.taches-table th:nth-child(2),
.taches-table td:nth-child(2) {
  width: 24%;
  min-width: 230px;
}

.taches-table th:nth-child(6),
.taches-table td:nth-child(6),
.taches-table th:nth-child(7),
.taches-table td:nth-child(7),
.taches-table th:nth-child(8),
.taches-table td:nth-child(8) {
  min-width: 135px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .dashboard-task-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .dashboard-task-state-select {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .db2-row-main.dashboard-master-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-master-detail > .db2-card:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .dashboard-master-detail .dashboard-tasks-card {
    display: none;
  }

  .dashboard-objective-option.is-selected .dashboard-objective-inline-tasks {
    display: block;
    padding: 0 10px 10px;
    border-top: 1px solid rgba(37, 99, 235, 0.2);
  }

  .dashboard-inline-task-list {
    padding-top: 10px;
  }

  .dashboard-mobile-task-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
  }

  .dashboard-mobile-task-links .db2-link-add {
    margin-top: 0;
  }

  .dashboard-objective-button {
    min-height: 52px;
  }
}

.db2-referent-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.db2-referent-filter label {
    font-weight: 700;
    white-space: nowrap;
}

.db2-referent-filter select {
    max-width: 360px;
    margin: 0;
}

.db2-checks li small {
    color: #475569;
    font-weight: 600;
}

.db2-objective-group > ul {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.db2-objective-group > ul > li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 0;
    border: 0;
    border-radius: 0;
}

.db2-messages li {
    position: relative;
    padding-right: 56px;
}

.db2-messages li strong {
    display: block;
    margin-bottom: 4px;
    color: #172033;
}

.db2-messages li p {
    margin: 0;
    color: #475569;
    font-size: 13px;
}

.db2-messages li span {
    position: absolute;
    right: 12px;
    top: 12px;
    font-size: 12px;
    color: #94a3b8;
}

.db2-chart-lines {
    height: 170px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: end;
    gap: 10px;
    padding: 10px 6px;
    border: 1px solid #edf2f7;
    border-radius: 10px;
}

.db2-chart-lines>div {
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, #93c5fd 0%, #2563eb 100%);
}

.db2-chart-labels {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    font-size: 12px;
    color: #64748b;
    text-align: center;
}

.db2-select {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 12px;
    border-radius: 999px;
    padding: 4px 10px;
}

.db2-global {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.db2-ring-wrap {
    display: flex;
    justify-content: center;
}

.db2-ring {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(#2563eb 0 72%, #e2e8f0 72% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.db2-ring::before {
    content: "";
    position: absolute;
    width: 112px;
    height: 112px;
    background: #fff;
    border-radius: 50%;
}

.db2-ring span,
.db2-ring small {
    position: relative;
    z-index: 1;
    display: block;
    text-align: center;
}

.db2-ring span {
    font-size: 30px;
    font-weight: 800;
    color: #1e293b;
}

.db2-ring small {
    margin-top: 3px;
    font-size: 11px;
    color: #64748b;
}

.db2-metrics li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.db2-metrics strong {
    font-size: 20px;
    color: #172033;
}

.db2-next-grid {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 14px;
    align-items: center;
}

.db2-date-box {
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    text-align: center;
    padding: 8px;
}

.db2-date-box strong {
    display: block;
    font-size: 34px;
    line-height: 1;
    color: #172033;
}

.db2-date-box span {
    font-size: 12px;
    letter-spacing: 0.1em;
    color: #64748b;
    font-weight: 700;
}

.db2-next p {
    margin: 0 0 4px;
    color: #475569;
}

.db2-next h3 {
    margin-bottom: 12px;
}

.db2-next-upcoming {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #edf2f7;
}

.db2-next-upcoming h4 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.db2-next-upcoming ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.db2-next-upcoming li {
    margin: 0;
    padding: 6px 0;
    font-size: 13px;
    color: #334155;
    border-top: 1px solid #f1f5f9;
}

.db2-next-upcoming li:first-child {
    border-top: none;
    padding-top: 0;
}

@media (max-width: 768px) {
    .db2-next-upcoming li {
        font-size: 14px;
    font-weight: 600;
        line-height: 1.35;
    }
}

.db2-reminders li strong {
    display: block;
    margin-bottom: 4px;
    color: #172033;
}

.db2-reminders li span {
    font-size: 13px;
    color: #64748b;
}

.db2-phrase {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.db2-phrase h3 {
    margin-bottom: 14px;
}

.db2-phrase blockquote {
    margin: 0;
    color: #172033;
    font-size: 18px;
    font-style: italic;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.db2-phrase-category {
    align-self: flex-start;
    margin: 0 0 10px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #1749b8;
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.db2-phrase-author {
    margin: 12px 0 0;
    color: #475569;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.db2-phrase-empty {
    margin: 0;
    color: #64748b;
}

button {
    width: 100%;
    padding: 11px 14px;
    background: linear-gradient(135deg, #2563eb 0%, #1749b8 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-areas:
        "header header"
        "sidebar main"
        "footer footer";
    grid-template-columns: 250px 1fr;
    grid-template-rows: 78px 1fr auto;
}

.app-header {
    grid-area: header;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    background: #ffffff;
    border-bottom: 1px solid #e5ebf2;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.mobile-menu-button {
    display: none;
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
    color: #172033;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.header-actions span {
    font-weight: 600;
    color: #4b5563;
}

#userInfo {
    position: relative;
    display: inline-flex;
    align-items: center;
    max-width: 320px;
    text-align: right;
    cursor: default;
    outline: none;
}

.user-info-name {
    display: block;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info-details {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    display: none;
    min-width: 230px;
    padding: 10px 12px;
    border: 1px solid #d6deeb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
    text-align: left;
}

.user-info-details::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    width: 100%;
    height: 10px;
}

.user-info-email,
.user-info-duration {
    display: block;
    white-space: nowrap;
}

.user-info-duration {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.user-info-profile-link {
    display: inline-block;
    margin-top: 8px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.user-info-profile-link:hover,
.user-info-profile-link:focus-visible {
    text-decoration: underline;
}

#userInfo:hover .user-info-details,
#userInfo:focus .user-info-details,
#userInfo:focus-within .user-info-details {
    display: block;
}

#userInfo:focus-visible {
    border-radius: 4px;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.header-actions button {
    width: auto;
    padding: 8px 14px;
    box-shadow: none;
}

.app-sidebar {
    grid-area: sidebar;
    background: #f8fafc;
    border-right: 1px solid #e5ebf2;
    padding: 24px 16px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 4px 8px 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e5ebf2;
}

.sidebar-context-card {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #e5ebf2;
  border-radius: 10px;
  background: #fff;
}

.sidebar-context-card::before {
  content: "";
  display: block;
  margin: -18px 0 12px;
  border-top: 1px solid #e5ebf2;
}

.sidebar-context-card p,
.sidebar-context-card label {
  display: block;
  margin: 0 0 8px;
  color: #475569;
  font-size: 14px;
    font-weight: 600;
  line-height: 1.35;
}

.sidebar-context-role strong {
  display: block;
  margin-top: 2px;
  color: #1f2937;
}

.sidebar-context-status {
  color: #1f2937 !important;
  font-weight: 600;
}

.sidebar-context-contact {
  overflow-wrap: anywhere;
}

.sidebar-context-contact:last-child {
  margin-bottom: 0;
}

.sidebar-context-card select {
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  font-size: 14px;
    font-weight: 600;
}

.sidebar-logo {
    width: 108px;
    height: 108px;
    object-fit: contain;
}

@media (min-width: 769px) {
    .sidebar-logo {
        width: 140px;
        height: 140px;
    }
}

.app-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-sidebar li {
    padding: 11px 12px;
    border-radius: 10px;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e5ebf2;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.app-sidebar li:hover {
    background: #eef4ff;
    color: #2563eb;
}

.app-sidebar li.active {
    background: linear-gradient(135deg, #2563eb 0%, #1749b8 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.app-sidebar li.active:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #1749b8 100%);
}

.app-main {
    grid-area: main;
    min-width: 0;
    padding: 24px;
    background: #f5f7fa;
}

#pageContent,
#pageContent > .dashboard-section {
    min-width: 0;
}

.app-footer {
    grid-area: footer;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 18px;
    padding: 14px 24px;
    color: #475569;
    background: #ffffff;
    border-top: 1px solid #e5ebf2;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.app-footer strong {
    color: #1f2937;
}

.app-footer-link {
    color: #64748b;
    font-size: 11px;
}

.legal-notice-page {
    display: grid;
    gap: 18px;
}

.legal-notice-section {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5ebf2;
    border-radius: 14px;
}

.legal-notice-section h2 {
    margin: 0 0 14px;
    color: #172033;
    font-size: 18px;
}

.legal-notice-section h3 {
    margin: 18px 0 8px;
    color: #1f2937;
    font-size: 15px;
}

.legal-notice-section p,
.legal-notice-section li,
.legal-notice-list dd,
.legal-notice-list dt {
    color: #475569;
    line-height: 1.55;
}

.about-philosophy {
    margin: 0;
    white-space: pre-wrap;
}

.about-philosophy-editor .ql-editor {
    min-height: 220px;
}

.about-philosophy-editor,
.about-philosophy-editor .ql-container,
.about-philosophy-editor .ql-toolbar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.about-philosophy-editor .ql-toolbar {
    overflow-x: auto;
    white-space: normal;
}

.about-philosophy-viewer.ql-container {
    border: 0;
    font-family: inherit;
}

.about-philosophy-viewer .ql-editor {
    min-height: 0;
    padding: 0;
    color: #475569;
    font-size: inherit;
    line-height: 1.55;
}

.about-philosophy-viewer .ql-editor h2,
.about-philosophy-viewer .ql-editor h3 {
    margin: 18px 0 14px;
    color: #172033;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.about-philosophy-viewer .ql-editor h2:first-child,
.about-philosophy-viewer .ql-editor h3:first-child {
    margin-top: 0;
}

.about-philosophy-viewer .ql-editor p,
.about-philosophy-viewer .ql-editor li {
    color: #475569;
    font-size: 15px;
    line-height: 1.55;
}

.legal-notice-list {
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 8px 18px;
    margin: 0;
}

.legal-notice-list dt {
    font-weight: 700;
}

.legal-notice-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.legal-notice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.legal-notice-actions button,
.legal-notice-actions a {
    width: auto;
}

.dashboard-hero {
    margin-bottom: 20px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
    border: 1px solid #e5ebf2;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.dashboard-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #2563eb;
}

.dashboard-subtitle {
    margin: 8px 0 0;
    color: #64748b;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.dashboard-overview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.dashboard-panel {
    background: #ffffff;
    border: 1px solid #e5ebf2;
    border-radius: 14px;
    padding: 16px;
}

.dashboard-panel h4 {
    margin: 0 0 12px;
    color: #172033;
    font-size: 15px;
}

.dashboard-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    padding: 10px 12px;
    color: #334155;
}

.dashboard-list strong {
    color: #172033;
}

.kpi-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #1d4ed8;
    background: #eaf2ff;
}

.widget-card {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.widget-label {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.widget-value {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
    color: #172033;
}

.widget-note {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
}

.dashboard-section {
    padding: 18px 20px;
}

.profil-page {
    max-width: 920px;
}

.profil-display {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profil-role {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #64748b;
    font-size: 14px;
}

.profil-role strong {
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2457a7;
}

.profil-section {
    padding: 16px;
    border: 1px solid #e5ebf2;
    border-radius: 12px;
    background: #fff;
}

.profil-section h4 {
    margin: 0 0 14px;
    color: #172033;
    font-size: 16px;
}

.profil-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.profil-field {
    padding: 0;
}

.profil-field + .profil-field {
    margin-top: 14px;
}

.profil-section-grid .profil-field + .profil-field {
    margin-top: 0;
}

.profil-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.profil-field p {
    margin: 0;
    color: #172033;
    font-size: 15px;
    line-height: 1.5;
}

.profil-form {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profil-form .profil-section-grid .form-group,
.profil-form .profil-section .form-group:last-child {
    margin-bottom: 0;
}

.profil-form .form-textarea {
    min-height: 130px;
}

.profil-actions-inline {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.section-actions input {
    margin-bottom: 0;
    min-width: 220px;
}

.section-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #172033;
}

.section-subtitle {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #213042;
}

.section-description {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #64748b;
}

.primary-btn {
    width: auto;
    padding: 8px 12px;
    background: linear-gradient(135deg, #2563eb 0%, #1749b8 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.2);
}

.secondary-btn {
    width: auto;
    padding: 8px 12px;
    background: #eaf2ff;
    color: #2563eb;
    box-shadow: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
}

.secondary-btn:hover {
    background: #dce9ff;
}

.table-wrapper {
    overflow-x: auto;
}

#pageContent .taches-responsive-table-wrapper,
#pageContent .entretiens-responsive-table-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table th,
.data-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #e5ebf2;
}

.data-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.table-action {
    padding: 6px 10px;
    width: auto;
    background: #eef4ff;
    color: #2563eb;
    box-shadow: none;
}

.table-action:hover {
    background: #dce9ff;
}

/* Tableau du module Tâches uniquement. */
.table-wrapper:has(.data-table #sortTitre) {
    overflow-x: auto;
}

.data-table:has(#sortTitre) {
    width: 100%;
    min-width: 1420px;
    table-layout: fixed;
}

.data-table:has(#sortTitre) th,
.data-table:has(#sortTitre) td {
    vertical-align: top;
}

.data-table:has(#sortTitre) th:nth-child(1),
.data-table:has(#sortTitre) td:nth-child(1) {
    width: 210px;
}

.data-table:has(#sortTitre) th:nth-child(2),
.data-table:has(#sortTitre) td:nth-child(2),
.data-table:has(#sortTitre) th:nth-child(3),
.data-table:has(#sortTitre) td:nth-child(3) {
    width: 230px;
}

.data-table:has(#sortTitre) th:nth-child(4),
.data-table:has(#sortTitre) td:nth-child(4) {
    width: 185px;
}

.data-table:has(#sortTitre) th:nth-child(5),
.data-table:has(#sortTitre) td:nth-child(5) {
    width: 155px;
}

.data-table:has(#sortTitre) th:nth-child(6),
.data-table:has(#sortTitre) td:nth-child(6),
.data-table:has(#sortTitre) th:nth-child(7),
.data-table:has(#sortTitre) td:nth-child(7) {
    width: 130px;
}

.data-table:has(#sortTitre) th:nth-child(8),
.data-table:has(#sortTitre) td:nth-child(8) {
    width: 220px;
}

.data-table:has(#sortTitre) td:nth-child(1),
.data-table:has(#sortTitre) td:nth-child(2),
.data-table:has(#sortTitre) td:nth-child(3) {
    white-space: normal;
    overflow-wrap: anywhere;
}

.data-table:has(#sortTitre) th:nth-child(n+5),
.data-table:has(#sortTitre) td:nth-child(n+5) {
    white-space: nowrap;
}

.data-table:has(#sortTitre) td:nth-child(8) .table-action {
    display: inline-block;
    margin-right: 4px;
}

.data-table:has(#sortTitre) td:nth-child(8) .table-action:last-child {
    margin-right: 0;
}

.task-entretien-origin {
    margin: 8px 0 0;
}

.documents-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.documents-selector-wrap {
    max-width: 420px;
}

.documents-accompagne-select {
    margin-top: 6px;
}

.documents-table-wrapper {
    overflow-x: auto;
}

.documents-table {
    min-width: 760px;
}

.documents-state {
    padding: 16px 10px;
    text-align: center;
    color: #475569;
    font-size: 14px;
}

.documents-state-error {
    color: #b91c1c;
}

.documents-file-link {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.documents-file-link:hover {
    text-decoration: underline;
}

.documents-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.documents-type-pdf {
    background: #fee2e2;
    color: #991b1b;
}

.documents-type-word {
    background: #dbeafe;
    color: #1e3a8a;
}

.documents-type-excel {
    background: #dcfce7;
    color: #166534;
}

.documents-type-image {
    background: #ede9fe;
    color: #5b21b6;
}

.documents-type-archive {
    background: #ffedd5;
    color: #9a3412;
}

.documents-type-file {
    background: #e2e8f0;
    color: #334155;
}

.documents-no-action {
    color: #94a3b8;
}

.documents-delete-btn {
    padding: 6px 10px;
    font-size: 14px;
    background: #fee2e2;
    color: #b91c1c;
}

.documents-delete-btn:hover {
    background: #fecaca;
}

.documents-upload-zone {
    border: 1px solid #dce4f2;
    border-radius: 12px;
    padding: 14px;
    background: #f8fbff;
}

.documents-upload-zone h4 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #1e293b;
}

.documents-upload-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: end;
}

.documents-upload-meta {
    margin: 6px 0 0;
    font-size: 13px;
    color: #64748b;
}

.documents-upload-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.documents-upload-warning {
    margin: 0;
    color: #92400e;
    font-size: 13px;
}

.messages-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 16px;
    height: calc(100vh - 280px);
}

.messages-list {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #e5ebf2;
    border-radius: 12px;
    overflow: hidden;
}

.messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #e5ebf2;
}

.messages-search {
    margin: 10px 10px 0 10px !important;
    padding: 10px 12px !important;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f4f8;
    cursor: pointer;
    transition: background 0.2s ease;
}

.conversation-item:hover {
    background: #f8fafc;
}

.conversation-item.active {
    background: #eef4ff;
    border-left: 3px solid #2563eb;
}

.conversation-item.unread {
    font-weight: 600;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.participant-name {
    font-weight: 600;
    color: #172033;
}

.unread-badge {
    width: 8px;
    height: 8px;
    width: 132px;
    height: 132px;
}

.last-message {
    margin: 0 0 4px;
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-date {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
    color: #4b5563;
    margin-top: 8px;
}

.messages-preview {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #e5ebf2;
    border-radius: 12px;
    overflow: hidden;
}

.preview-header {
    padding: 12px 14px;
    border-bottom: 1px solid #e5ebf2;
}

.preview-header h4 {
    margin: 0 0 4px;
}

.preview-date {
    margin: 0;
    color: #94a3b8;
    font-size: 12px;
}

.messages-thread {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message-item {
    display: flex;
    flex-direction: column;
    max-width: 70%;
}

.message-item.sent {
    align-self: flex-end;
    align-items: flex-end;
}

.message-item.received {
    align-self: flex-start;
    align-items: flex-start;
}

.message-sender {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.message-text {
    margin: 0 0 4px;
    padding: 8px 12px;
    background: #eef4ff;
    border-radius: 8px;
    color: #172033;
}

.message-item.sent .message-text {
    background: #2563eb;
    color: white;
}

.message-time {
    margin: 0;
    font-size: 11px;
    color: #94a3b8;
}

.entretiens-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.timeline-group {
    display: flex;
    gap: 12px;
}

.timeline-date {
    flex: 0 0 120px;
}

.timeline-date h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #172033;
    text-transform: capitalize;
}

.timeline-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 60px 140px 1fr 100px 80px;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    background: white;
    border: 1px solid #e5ebf2;
    border-radius: 10px;
}

.item-time {
    font-weight: 600;
    color: #2563eb;
    font-size: 14px;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-accompagne {
    margin: 0;
    font-weight: 600;
    color: #172033;
    font-size: 14px;
}

.item-type {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.item-status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.status-planned {
    background: #dbeafe;
    color: #1e40af;
}

.status-done {
    background: #dcfce7;
    color: #166534;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

@media (max-width: 1024px) {

    .db2-row-main,
    .db2-row-progress,
    .db2-row-bottom {
        grid-template-columns: 1fr;
    }

    .dashboard-overview {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 50px 120px 1fr 80px;
    }
}

@media (max-width: 768px) {
    .db2-top h2 {
        font-size: 20px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .item-time::before {
        content: 'Heure : ';
        font-weight: normal;
        color: #64748b;
    }

    .item-status {
        width: fit-content;
    }
}

.filter-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px 0;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.filter-group select {
    padding: 8px 10px;
    border: 1px solid #d6deeb;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #213042;
    cursor: pointer;
    min-width: 140px;
}

.filter-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.progress-bar {
    height: 8px;
    background: #e5ebf2;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #1749b8 100%);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.status-planned {
    background: #dbeafe;
    color: #1e40af;
}

.status-progress {
    background: #ccfbf1;
    color: #134e4a;
}

.status-done {
    background: #dcfce7;
    color: #166534;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.status-suspended {
    background: #e0e7ff;
    color: #3730a3;
}

.status-todo {
    background: #e5e7eb;
    color: #374151;
}

.priority-low {
    background: #d1fae5;
    color: #065f46;
}

.priority-normal {
    background: #dbeafe;
    color: #1e40af;
}

.priority-high {
    background: #fcd34d;
    color: #78350f;
}

.priority-urgent {
    background: #fecaca;
    color: #7f1d1d;
}

.doc-type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.doc-type-pdf {
    background: #fed7aa;
    color: #92400e;
}

.doc-type-word {
    background: #bfdbfe;
    color: #1e40af;
}

.doc-type-excel {
    background: #bbf7d0;
    color: #065f46;
}

.doc-type-image {
    background: #fce7f3;
    color: #831843;
}

.doc-type-archive {
    background: #e9d5ff;
    color: #581c87;
}

.doc-type-other {
    background: #e5e7eb;
    color: #374151;
}

.profil-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.profil-subsection {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profil-subsection h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #172033;
}

.profil-card {
    background: #f8fafc;
    border: 1px solid #e5ebf2;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profil-avatar {
    font-size: 48px;
    text-align: center;
    padding: 20px 0;
}

.profil-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profil-info p {
    margin: 0;
    font-size: 14px;
    color: #213042;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e5ebf2;
    font-size: 14px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #64748b;
}

.info-value {
    color: #213042;
}

.profil-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-card {
    background: #f8fafc;
    border: 1px solid #e5ebf2;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.profil-member {
    margin-top: 12px;
    padding: 12px;
    background: #eef4ff;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.profil-member p {
    margin: 0;
    font-size: 14px;
    color: #213042;
}

.role-accompagne {
    background: #dbeafe;
    color: #1e40af;
}

.role-referent {
    background: #ccfbf1;
    color: #134e4a;
}

.role-admin {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 768px) {
    .profil-container {
        grid-template-columns: 1fr;
    }

    .profil-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.admin-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.admin-subsection {
    margin-bottom: 24px;
}

.admin-subsection h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 700;
    color: #172033;
}

.admin-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.admin-card {
    background: #f8fafc;
    border: 1px solid #e5ebf2;
    border-radius: 12px;
    padding: 16px;
}

.admin-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #ffffff;
}

.admin-summary .stat-card {
    min-width: 0;
    border: 0;
    border-right: 1px solid #e5ebf2;
    border-radius: 0;
    padding: 12px 10px;
    background: transparent;
}

.admin-summary .stat-card:last-child {
    border-right: 0;
}

.admin-summary .stat-value {
    font-size: 22px;
}

.admin-summary .stat-label {
    white-space: nowrap;
}

.admin-connected-section {
    padding: 16px;
    border: 1px solid #e5ebf2;
    border-radius: 10px;
    background: #ffffff;
}

.admin-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-section-heading h4,
.admin-section h4 {
    margin: 0;
    color: #172033;
    font-size: 15px;
    font-weight: 700;
}

.admin-section-heading p {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 12px;
}

.admin-live-label {
    color: #166534;
    font-size: 12px;
    font-weight: 700;
}

.admin-connected-table {
    max-width: 560px;
}

.admin-empty-row {
    color: #64748b;
    font-style: italic;
}

.admin-section {
    padding: 16px;
    border: 1px solid #e5ebf2;
    border-radius: 10px;
    background: #ffffff;
}

.admin-section h4 {
    margin-bottom: 12px;
}

.admin-user-heading {
    display: block;
}

.admin-user-heading .primary-btn {
    flex: 0 0 auto;
}

.admin-user-controls {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 10px;
}

.admin-user-controls .form-input {
    width: 220px;
}

.admin-user-controls button {
    width: auto;
    white-space: nowrap;
}

.password-field {
    position: relative;
}

.password-field .form-input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #475569;
    box-shadow: none;
    font-size: 16px;
    line-height: 1;
    transform: translateY(-50%);
}

.password-toggle:hover {
    background: #eaf2ff;
    color: #2563eb;
    box-shadow: none;
    transform: translateY(-50%);
}

.admin-section {
    overflow-x: auto;
}

.admin-section .modern-table {
    width: max-content;
    max-width: none;
    table-layout: auto;
}

.admin-section .modern-table th,
.admin-section .modern-table td {
    width: auto;
    padding: 8px 12px;
    white-space: nowrap;
}

.phrase-day-table {
    width: 100%;
    table-layout: fixed;
}

.phrase-day-table th:first-child,
.phrase-day-table td:first-child {
    width: 18%;
}

.phrase-day-table th:nth-child(2),
.phrase-day-table td:nth-child(2) {
    width: 52%;
}

.phrase-day-table th:nth-child(3),
.phrase-day-table td:nth-child(3) {
    width: 20%;
}

.phrase-day-table th:nth-child(4),
.phrase-day-table td:nth-child(4) {
    width: 10%;
    text-align: center;
}

.phrase-day-table td {
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
}

.phrase-day-exclusion {
    width: auto;
    margin: 0;
}

.phrase-day-form {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(0, 2fr) minmax(180px, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-top: 18px;
}

.phrase-day-form .form-group {
    margin: 0;
}

.phrase-day-form .primary-btn {
    width: auto;
    white-space: nowrap;
}

.phrase-day-admin-message {
    grid-column: 1 / -1;
    min-height: 20px;
    margin: 0;
    color: #475569;
}

.phrase-day-admin-message.is-error {
    color: #b91c1c;
}

.phrase-day-admin-message.is-success {
    color: #166534;
}

@media (max-width: 768px) {
    .phrase-day-form {
        grid-template-columns: 1fr;
    }

    .phrase-day-form .primary-btn {
        width: 100%;
    }
}

.admin-backups-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-backups-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-backups-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.backup-status-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

.backup-status-chip.is-up {
    background: #dcfce7;
    color: #166534;
}

.backup-status-chip.is-down {
    background: #fee2e2;
    color: #991b1b;
}

.backup-meta-item {
    color: #475569;
    font-size: 12px;
}

.admin-backups-error {
    margin: 0;
    color: #b91c1c;
    font-size: 13px;
}

.admin-backups-table {
    width: 100%;
}

.admin-backup-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
}

.admin-backup-selector label {
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-backup-selector .form-select {
    width: auto;
    min-width: 240px;
}

.admin-backup-actions-cell {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-backup-checksum-value {
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #dbe4f0;
    background: #f8fbff;
    color: #1e293b;
    font-family: "Courier New", monospace;
    font-size: 13px;
    word-break: break-all;
}

.admin-users-table .admin-test-account-row,
.admin-users-table .admin-test-account-row td {
    background: #fff1f2;
    color: #b42318;
}

.admin-test-account-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #dc2626;
}

.admin-test-account-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b42318;
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
}

.admin-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-create-email-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 42px;
  cursor: pointer;
}

.admin-create-email-option input,
.admin-verified-checkbox {
  width: 18px;
  height: 18px;
}

.admin-verification-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  font-weight: 600;
}

.admin-verification-indicator.is-verified {
  color: #18794e;
}

.admin-verification-indicator.is-unverified {
  color: #667085;
}

.admin-users-table th:nth-child(6),
.admin-users-table th:nth-child(7),
.admin-users-table th:nth-child(8),
.admin-users-table th:nth-child(10) {
    width: 84px;
    min-width: 72px;
    white-space: normal;
    line-height: 1.25;
}

.admin-users-table th {
    vertical-align: top;
}

.admin-users-table th:nth-child(6) {
    width: 68px;
}

.admin-users-table th:nth-child(10) {
    width: 76px;
}

.admin-users-table th:nth-child(7) .table-sort-button,
.admin-users-table th:nth-child(8) .table-sort-button {
    white-space: normal;
    line-height: 1.25;
}

#forgotPasswordMessage,
#resetPasswordMessage,
#forgotPasswordIntro,
#passwordResetOtpMessage,
#recoveryPasswordMessage {
    color: #b42318;
}

.auth-success-message,
#recoveryPasswordMessage.is-success,
#activationMessage.is-success {
    color: #15803d;
    font-weight: 600;
    white-space: pre-line;
}

.auth-redirect-countdown {
    width: 44px;
    height: 44px;
    margin: 14px auto 0;
    border: 4px solid #dbe7ff;
    border-top-color: #2563eb;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #1f5bd8;
    font-weight: 700;
    animation: auth-countdown-spin 1s linear infinite;
}

.auth-redirect-countdown span {
    animation: auth-countdown-counter-spin 1s linear infinite;
}

.general-information-message {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.55;
}

@keyframes auth-countdown-spin {
    to { transform: rotate(360deg); }
}

@keyframes auth-countdown-counter-spin {
    to { transform: rotate(-360deg); }
}

.legal-page {
    width: 100%;
    max-width: 1180px;
    min-width: 0;
}

.legal-main-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #e5ebf2;
    border-radius: 12px;
    background: #fff;
}

.legal-main-section > h4 {
    margin: 0 0 16px;
    color: #172033;
}

.legal-form-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid #e5ebf2;
    border-radius: 10px;
}

.legal-form-section.is-confidential {
    border-color: #f0c36a;
    background: #fffaf0;
}

.legal-form-section legend {
    padding: 0 8px;
    color: #172033;
    font-size: 15px;
    font-weight: 700;
}

.legal-form-grid {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.legal-form-grid .form-group {
    min-width: 0;
    margin: 0;
}

.legal-field-wide {
    grid-column: 1 / -1;
}

.legal-checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    color: #334155;
    font-weight: 600;
}

.legal-checkbox input {
    width: 17px;
    height: 17px;
}

.legal-file-status {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
}

.legal-form-actions,
.legal-treatment-heading {
    display: flex;
    max-width: 100%;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.legal-organisme-actions-outside {
    padding: 12px 0 4px;
}

.legal-treatment-heading {
    justify-content: space-between;
    margin-bottom: 16px;
}

.legal-treatment-heading h4 {
    margin: 0;
}

.legal-treatment-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5ebf2;
}

.legal-template-selector {
    display: grid;
    gap: 7px;
    max-width: 520px;
    margin: 14px 0;
}

.legal-email-template-form {
    padding: 20px;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    background: #f8fafc;
}

.legal-email-template-form #email-template-text {
    min-height: 260px;
}

.legal-email-template-form #email-template-html {
    min-height: 180px;
}

.legal-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.accompagnes-table th:nth-child(1),
.accompagnes-table td:nth-child(1),
.accompagnes-table th:nth-child(2),
.accompagnes-table td:nth-child(2) {
    width: 140px;
}

.accompagnes-table th:nth-child(4),
.accompagnes-table td:nth-child(4) {
    width: 250px;
    white-space: nowrap;
}

.accompagnes-table th:nth-child(3),
.accompagnes-table td:nth-child(3) {
    width: 105px;
    max-width: 105px;
}

.accompagnes-table th:nth-child(5),
.accompagnes-table td:nth-child(5) {
    width: 125px;
    max-width: 125px;
    white-space: nowrap;
}

.accompagnes-table th:nth-child(7),
.accompagnes-table td:nth-child(7) {
    width: 155px;
    white-space: nowrap;
}

.entretiens-table {
    width: 100%;
    table-layout: fixed;
}

.entretiens-table th:nth-child(1) {
    width: 95px;
}

.entretiens-table th:nth-child(2) {
    width: 175px;
}

.entretiens-table th:nth-child(3) {
    width: 130px;
}

.entretiens-table th:nth-child(4) {
    width: auto;
}

.entretiens-table th:nth-child(5) {
    width: 170px;
}

.entretiens-table td:nth-child(4) {
    white-space: normal;
    overflow-wrap: anywhere;
}

.entretiens-table.without-accompagne th:nth-child(2) {
    width: 130px;
}

.entretiens-table.without-accompagne th:nth-child(3) {
    width: auto;
}

.entretiens-table.without-accompagne th:nth-child(4) {
    width: 170px;
}

.entretiens-table.without-accompagne td:nth-child(3) {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Style commun validé à partir de la présentation "Données légales". */
#pageContent > .dashboard-section,
#pageContent > .card.dashboard-section {
    border: 1px solid #e5ebf2;
    border-radius: 12px;
    background: #ffffff;
}

#pageContent .dashboard-section > .section-header {
    padding-bottom: 14px;
    border-bottom: 1px solid #e5ebf2;
}

#pageContent .dashboard-section > .section-header h3 {
    margin: 0;
    color: #172033;
    font-size: 18px;
    font-weight: 700;
}

#pageContent .dashboard-section .table-wrapper {
    overflow: auto;
    border: 1px solid #e5ebf2;
    border-radius: 10px;
    background: #ffffff;
}

#pageContent .dashboard-section .table-wrapper table {
    margin: 0;
}

#pageContent .dashboard-section .table-wrapper thead th {
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

#pageContent .dashboard-section .filter-bar,
#pageContent .dashboard-section .section-actions,
#pageContent .dashboard-section .form-row {
    gap: 12px;
}

#pageContent .dashboard-section .form-input,
#pageContent .dashboard-section .form-select,
#pageContent .dashboard-section .form-textarea {
    border-color: #dbe4f0;
    border-radius: 8px;
    background: #ffffff;
}

#pageContent .dashboard-section .form-input:focus,
#pageContent .dashboard-section .form-select:focus,
#pageContent .dashboard-section .form-textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

#pageContent .dashboard-section .form-label,
#pageContent .dashboard-section fieldset legend,
#pageContent .dashboard-section h4 {
    color: #172033;
    font-weight: 700;
}

#pageContent .dashboard-section fieldset {
    border-color: #e5ebf2;
    border-radius: 10px;
    background: #ffffff;
}

.table-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
    font: inherit;
    text-transform: inherit;
}

.table-sort-button:hover,
.table-sort-button:focus-visible {
    color: #2563eb;
    box-shadow: none;
    transform: none;
}

.table-sort-button span {
    color: #2563eb;
    font-size: 13px;
}

.cell-connection {
    text-align: center;
}

.connection-indicator {
    display: inline-block;
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    vertical-align: middle;
}

.connection-indicator.is-connected {
    background: #16a34a;
    box-shadow: 0 0 0 3px #dcfce7;
}

.connection-indicator.is-disconnected {
    border: 2px solid #94a3b8;
}

.connection-indicator.is-disconnected::after {
    content: "";
    position: absolute;
    top: 3px;
    left: -3px;
    width: 14px;
    height: 2px;
    background: #94a3b8;
    transform: rotate(-45deg);
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.admin-card h5 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 700;
    color: #172033;
}

.permission-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.permission-list li {
    font-size: 13px;
    color: #213042;
    padding: 4px 0;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.setting-label {
    font-weight: 600;
    color: #64748b;
    font-size: 14px;
}

.setting-value {
    font-size: 13px;
    color: #213042;
}

.backup-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.backup-item p {
    margin: 0;
    font-size: 13px;
    color: #213042;
}

.admin-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.small-btn {
    padding: 6px 10px;
    font-size: 12px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    flex: 1;
}

.small-btn:hover {
    background: #1949c6;
}

.system-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.system-info h5 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 700;
    color: #172033;
}

.system-info p {
    margin: 0;
    font-size: 13px;
    color: #213042;
    display: flex;
    justify-content: space-between;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.status-error {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 1024px) {
    .admin-grid-2 {
        grid-template-columns: 1fr;
    }

    .admin-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-cards {
        grid-template-columns: 1fr;
    }

    .admin-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-summary .stat-card:nth-child(3) {
        border-right: 0;
    }

    .admin-summary .stat-card:nth-child(-n + 3) {
        border-bottom: 1px solid #e5ebf2;
    }
}

@media (max-width: 768px) {
    .admin-grid-3 {
        grid-template-columns: 1fr;
    }

    .admin-backups-actions {
        width: 100%;
    }

    .admin-backups-actions .secondary-btn,
    .admin-backups-actions .primary-btn {
        width: 100%;
    }

    .admin-backup-selector {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-backup-selector .form-select {
        width: 100%;
        min-width: 0;
    }

    .admin-backup-actions-cell {
        flex-direction: column;
    }

    .admin-backup-actions-cell .table-action {
        width: 100%;
    }

    .admin-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-summary .stat-card {
        border-bottom: 1px solid #e5ebf2;
    }

    .admin-summary .stat-card:nth-child(2n) {
        border-right: 0;
    }

    .admin-summary .stat-card:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .admin-user-heading,
    .admin-user-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-user-controls .form-input,
    .admin-user-controls button {
        width: 100%;
    }

    .legal-form-grid {
        grid-template-columns: 1fr;
    }

    .legal-field-wide {
        grid-column: auto;
    }
}

.section-tag {
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
    background: #eef4ff;
    padding: 6px 10px;
    border-radius: 999px;
}

.empty-state {
    margin: 0;
    color: #64748b;
    font-style: italic;
}

.card {
    background: white;
    border: 1px solid #e5ebf2;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.hidden {
    display: none;
}

.auth-screen.hidden {
    display: none;
}

body.authenticated #loginView {
    display: none !important;
}

body.authenticated #dashboardView {
    display: grid !important;
}

body:not(.authenticated) #dashboardView {
    display: none !important;
}

/* ===== MODALES ET FORMULAIRES ===== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    width: min(100%, 600px);
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    border-bottom: 1px solid #e5ebf2;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #172033;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.modal-close-btn:hover {
    background: #f1f5f9;
    color: #172033;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #e5ebf2;
    justify-content: flex-end;
}

.modal-footer button {
    min-width: 100px;
}

/* Formulaires */

.form-group {
    margin-bottom: 18px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #172033;
    margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d6deeb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #172033;
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.task-objective-picker {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.task-objective-picker-trigger {
    display: block;
    min-height: 42px;
    border: 1px solid #d6deeb;
    background: #fff;
    color: #172033;
    box-shadow: none;
    font-weight: 400;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.task-objective-picker-trigger:hover {
    background: #fff;
    box-shadow: none;
    transform: none;
}

.task-objective-picker-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    max-width: 100%;
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #d6deeb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.task-objective-picker-option {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #172033;
    font: inherit;
    font-weight: 400;
    box-shadow: none;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.task-objective-picker-option:hover,
.task-objective-picker-option:focus {
    box-shadow: none;
    transform: none;
}

.task-objective-picker-option:hover,
.task-objective-picker-option:focus,
.task-objective-picker-option[aria-selected="true"] {
    background: #eef4ff;
    outline: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-error {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
}

.form-hint {
    margin: -8px 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.task-context-value {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.4;
}

.task-due-date-group {
    max-width: 220px;
}

.entretien-subsection {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e5ebf2;
}

.entretien-subsection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.entretien-subsection-header .form-label {
    margin-bottom: 0;
}

.entretien-subsection-header .secondary-btn {
    padding: 6px 10px;
    font-size: 12px;
}

.objectifs-reminder-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.objectifs-reminder-list li {
    color: #1f2937;
}

.objectifs-reminder-list li strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

.objectifs-reminder-list li span {
    font-size: 12px;
    color: #64748b;
}

.objectifs-empty {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.appreciation-section {
    background: #f8fbff;
    border: 1px solid #dbe7ff;
    border-radius: 12px;
    padding: 14px;
}

.appreciation-note {
    font-size: 12px;
    color: #64748b;
}

.appreciation-card {
    background: #ffffff;
    border: 1px solid #e5ebf2;
    border-radius: 10px;
    padding: 8px 12px;
    margin-top: 8px;
}

.appreciation-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.appreciation-value {
    min-width: 28px;
    text-align: center;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
}

.appreciation-slider {
    width: 100%;
    accent-color: #2563eb;
}

.appreciation-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
    font-size: 11px;
    color: #94a3b8;
}

.form-group.readonly .form-input,
.form-group.readonly .form-select,
.form-group.readonly .form-textarea {
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

/* Notifications Toast */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    font-size: 14px;
    color: #172033;
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
}

.toast.success {
    border-left-color: #16a34a;
    background: #f0fdf4;
    color: #166534;
}

.toast.error {
    border-left-color: #dc2626;
    background: #fef2f2;
    color: #991b1b;
}

.toast.info {
    border-left-color: #2563eb;
    background: #eff6ff;
    color: #1e40af;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(400px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

.toast.fadeout {
    animation: slideOutRight 0.3s ease forwards;
}

/* Confirmation Dialog */

.confirmation-dialog {
    text-align: center;
}

.confirmation-dialog h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #172033;
}

.confirmation-dialog p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #64748b;
}

.confirmation-dialog .modal-footer {
    border-top: none;
    padding: 0;
    justify-content: center;
    gap: 12px;
}

/* Range Slider */

.form-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e5ebf2;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    transition: background 0.2s ease;
}

.form-range::-webkit-slider-thumb:hover {
    background: #1949c6;
}

.form-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
}

.form-range::-moz-range-thumb:hover {
    background: #1949c6;
}

.range-value {
    margin-left: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #172033;
}

/* Rendez-vous */

.rdv-module {
    display: grid;
    gap: 14px;
}

.rdv-filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    gap: 10px;
    align-items: end;
}

.rdv-filter-item {
    margin-bottom: 0;
}

.rdv-filter-item .form-input,
.rdv-filter-item .form-select {
    margin-bottom: 0;
}

.rdv-filter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 0;
}

.rdv-table td {
    vertical-align: top;
}

.rdv-actions-cell {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.rdv-cancel-btn,
.rdv-cancelled-label {
    background: #ffe8e8;
    color: #c62828;
}

.rdv-cancel-btn:hover {
    background: #ffd8d8;
}

.rdv-cancelled-label {
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
}

.rdv-cancelled-at {
    align-self: center;
    color: #64748b;
    font-size: 12px;
    white-space: nowrap;
}

.rdv-empty-row {
    text-align: center;
    color: #64748b;
    font-style: italic;
}

.rdv-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
}

.rdv-status-planifie {
    background: #e8f1ff;
    color: #1e40af;
}

.rdv-status-realise {
    background: #e7f8ef;
    color: #166534;
}

.rdv-status-annule {
    background: #ffecec;
    color: #b91c1c;
}

.rdv-status-reporte {
    background: #fff5dd;
    color: #92400e;
}

.rdv-status-unknown {
    background: #eef2f7;
    color: #475569;
}

@media (max-width: 1100px) {
    .rdv-filters {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .rdv-filters {
        grid-template-columns: 1fr;
    }

    .rdv-filter-actions {
        width: 100%;
    }

    .rdv-filter-actions .secondary-btn {
        width: 100%;
    }

    .rdv-actions-cell {
        flex-direction: column;
    }

    .rdv-actions-cell .table-action {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .modal-container {
        width: 90vw;
        max-height: 95vh;
    }

    .profil-page {
        max-width: none;
    }

    .profil-section-grid {
        grid-template-columns: 1fr;
    }

    .profil-actions-inline {
        flex-direction: column-reverse;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .toast-container {
        right: 12px;
        left: 12px;
        bottom: 12px;
    }

    .toast {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        gap: 10px;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-group select {
        width: 100%;
    }

    .documents-selector-wrap {
        max-width: none;
    }

    .documents-upload-grid {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .documents-upload-actions {
        align-items: stretch;
    }

    .documents-upload-actions .primary-btn {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .app-shell {
        grid-template-columns: 220px 1fr;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .app-shell {
        grid-template-areas:
            "header"
            "main"
            "footer";
        width: 100%;
        min-width: 0;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }

    .app-header {
        padding: 16px 24px;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .mobile-menu-button {
        display: inline-flex;
        width: auto;
        padding: 8px 14px;
        align-items: center;
        justify-content: center;
        box-shadow: none;
    }

    .header-actions {
        width: auto;
        min-width: 0;
        flex: 1 1 auto;
        justify-content: flex-end;
    }

    .app-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 100;
        width: min(320px, calc(100vw - 48px));
        overflow-y: auto;
        border-right: none;
        border-bottom: 1px solid #e5ebf2;
        box-shadow: 10px 0 30px rgba(15, 23, 42, 0.2);
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform 0.2s ease, visibility 0s linear 0.2s;
    }

    .app-shell.mobile-menu-open .app-sidebar {
        transform: translateX(0);
        visibility: visible;
        transition-delay: 0s;
    }

    .app-main {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .app-shell {
        grid-template-areas:
            "header"
            "main"
            "footer";
        width: 100%;
        min-width: 0;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }

    .app-header {
        padding: 16px 20px;
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .mobile-menu-button {
        display: inline-flex;
        width: auto;
        padding: 8px 14px;
        align-items: center;
        justify-content: center;
        box-shadow: none;
    }

    .header-actions {
        width: auto;
        min-width: 0;
        flex: 1 1 auto;
        justify-content: space-between;
    }

    #userInfo,
    .user-info-name {
        max-width: 100%;
    }

    .app-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 100;
        width: min(320px, calc(100vw - 48px));
        overflow-y: auto;
        border-right: none;
        border-bottom: 1px solid #e5ebf2;
        box-shadow: 10px 0 30px rgba(15, 23, 42, 0.2);
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform 0.2s ease, visibility 0s linear 0.2s;
    }

    .app-shell.mobile-menu-open .app-sidebar {
        transform: translateX(0);
        visibility: visible;
        transition-delay: 0s;
    }

    .app-main {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 20px;
    }

    #pageContent,
    #pageContent > *,
    .card,
    .db2-card,
    .beta-panel,
    .dashboard-hero,
    .dashboard-section,
    .profil-section {
        min-width: 0;
        max-width: 100%;
    }

    .card,
    .db2-card,
    .beta-panel,
    .dashboard-hero,
    .dashboard-section,
    .profil-section {
        width: 100%;
    }

    .form-group,
    .form-row,
    .form-input,
    .form-select,
    .form-textarea {
        min-width: 0;
        max-width: 100%;
    }

    .section-header,
    .section-actions,
    .legal-notice-actions,
    .profil-actions-inline {
        max-width: 100%;
        flex-wrap: wrap;
    }

    .section-header {
        align-items: flex-start;
    }

    .section-actions input,
    .section-actions button,
    .section-actions a,
    .legal-notice-actions button,
    .legal-notice-actions a,
    .profil-actions-inline button,
    .profil-actions-inline a {
        min-width: 0;
        max-width: 100%;
    }

    .legal-notice-list {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .legal-notice-list dd {
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .auth-screen {
        padding: 16px;
    }

    .login-card {
        padding: 24px;
    }

    .app-main {
        padding: 16px;
    }

    .section-actions,
    .legal-notice-actions,
    .profil-actions-inline {
        width: 100%;
    }

    .section-actions > button,
    .section-actions > a,
    .legal-notice-actions > button,
    .legal-notice-actions > a,
    .profil-actions-inline > button,
    .profil-actions-inline > a {
        width: 100%;
    }

    .header-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Présentation mobile ciblée : uniquement Tâches et Comptes rendus. */
@media (max-width: 1024px) {
    #pageContent .taches-responsive-table-wrapper,
    #pageContent .entretiens-responsive-table-wrapper {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: visible;
        border: 0;
        background: transparent;
    }

    #pageContent .taches-responsive-table-wrapper .taches-table,
    #pageContent .entretiens-responsive-table-wrapper .entretiens-table {
        display: block;
        width: 100% !important;
        max-width: 100%;
        min-width: 0 !important;
        table-layout: auto;
        background: transparent;
    }

    #pageContent .taches-table > thead,
    #pageContent .entretiens-table > thead {
        display: block;
        margin-bottom: 10px;
    }

    #pageContent .taches-table > thead > tr,
    #pageContent .entretiens-table > thead > tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    #pageContent .taches-table .mobile-card-static-heading,
    #pageContent .entretiens-table .mobile-card-static-heading {
        position: absolute;
        width: 1px !important;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    #pageContent .taches-table .mobile-sort-heading,
    #pageContent .entretiens-table .mobile-sort-heading {
        display: block;
        width: auto !important;
        padding: 0;
        border: 0;
        background: transparent;
    }

    #pageContent .taches-table .mobile-sort-heading {
        width: 100% !important;
    }

    #pageContent .taches-table .mobile-sort-heading .table-sort-button,
    #pageContent .entretiens-table .mobile-sort-heading .table-sort-button {
        width: auto;
        min-height: 40px;
        padding: 8px 10px;
    }

    #pageContent .taches-table > tbody,
    #pageContent .entretiens-table > tbody {
        display: grid;
        width: 100%;
        gap: 12px;
    }

    #pageContent .taches-table > tbody > tr,
    #pageContent .entretiens-table > tbody > tr {
        display: block;
        width: 100%;
        min-width: 0;
        overflow: hidden;
        border: 1px solid #dbe4f0;
        border-radius: 10px;
        background: #ffffff;
        box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
    }

    #pageContent .taches-table > tbody > tr > td,
    #pageContent .entretiens-table > tbody > tr > td {
        display: grid;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        grid-template-columns: minmax(105px, 35%) minmax(0, 1fr);
        gap: 10px;
        padding: 10px 12px;
        white-space: normal !important;
        overflow-wrap: anywhere;
        border-bottom: 1px solid #edf1f6;
    }

    #pageContent .taches-table > tbody > tr > td:last-child,
    #pageContent .entretiens-table > tbody > tr > td:last-child {
        border-bottom: 0;
    }

    #pageContent .taches-table > tbody > tr > td::before,
    #pageContent .entretiens-table > tbody > tr > td::before {
        content: attr(data-label);
        color: #475569;
        font-size: 14px;
    font-weight: 600;
        font-weight: 700;
        line-height: 1.4;
    }

    #pageContent .taches-table .mobile-card-actions,
    #pageContent .entretiens-table .mobile-card-actions {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
    }

    #pageContent .taches-table .mobile-card-actions::before,
    #pageContent .entretiens-table .mobile-card-actions::before {
        flex: 0 0 min(105px, 35%);
    }

    #pageContent .taches-table .mobile-card-actions .table-action,
    #pageContent .entretiens-table .mobile-card-actions .table-action {
        flex: 0 0 auto;
        margin: 0;
    }

    #pageContent .entretiens-table .mobile-card-long-text {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible;
        white-space: normal !important;
        line-height: 1.5;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    #pageContent .entretiens-table .mobile-card-long-text::before {
        display: block;
        margin-bottom: 8px;
    }

    #pageContent .taches-table > tbody > .mobile-card-empty-row,
    #pageContent .entretiens-table > tbody > .mobile-card-empty-row {
        box-shadow: none;
    }

    #pageContent .taches-table > tbody > .mobile-card-empty-row > .mobile-card-empty,
    #pageContent .entretiens-table > tbody > .mobile-card-empty-row > .mobile-card-empty {
        display: block;
        padding: 18px 12px;
        text-align: center;
    }

    #pageContent .taches-table > tbody > .mobile-card-empty-row > .mobile-card-empty::before,
    #pageContent .entretiens-table > tbody > .mobile-card-empty-row > .mobile-card-empty::before {
        content: none;
    }
}
.admin-verification-indicator.is-locked {
  color: #b42318;
  font-weight: 600;
}

/* Objectifs : cartes mobiles. */
@media (max-width: 767px) {
  #pageContent .objectifs-table > tbody > .objectif-card { display:block; position:relative; margin:0; padding:0; border:1px solid #dbe4f0; border-radius:10px; background:#fff; box-shadow:0 3px 10px rgba(15,23,42,.04); }
  #pageContent .objectifs-table > tbody > .objectif-card > td { display:block; width:100%; padding:0; border:0; }
  #pageContent .objectifs-table .objectif-card-title { min-height:0; padding:14px 112px 10px 14px; background:none; color:#172033; font-size:14px; font-weight:700; line-height:1.35; }
  #pageContent .objectifs-table .objectif-card-title::before { content:none; }
  #pageContent .objectifs-table .objectif-card-user, #pageContent .objectifs-table .objectif-card-project, #pageContent .objectifs-table .objectif-card-objective-state { display:none; }
  #pageContent .objectifs-table .objectif-card-task-state { position:absolute; top:14px; right:10px; width:auto; padding:0; margin:0; }
  #pageContent .objectifs-table .objectif-task-state { padding:4px 7px; font-size:10px; }
  #pageContent .objectifs-table .objectif-card-date, #pageContent .objectifs-table .objectif-card-tasks { display:inline-block; width:auto; padding:6px 0 10px; color:#64748b; font-size:12px; }
  #pageContent .objectifs-table .objectif-card-date { padding-left:14px; }
  #pageContent .objectifs-table .objectif-card-date::before { content:"📅  Échéance : "; margin:0; font-size:12px; }
  #pageContent .objectifs-table .objectif-card-tasks::before { content:" •  Tâches : "; margin:0; }
  #pageContent .objectifs-table .objectif-card-tasks .objectif-task-count { color:#2563eb; }
  #pageContent .objectifs-table .objectif-card-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:0 10px 10px; padding:10px 0 0; border-top:1px solid #e5ebf2; }
  #pageContent .objectifs-table .objectif-card-actions .table-action { display:flex; align-items:center; justify-content:center; min-height:32px; width:100%; margin:0; border:1px solid #dbe4f0; border-radius:7px; background:#fbfdff; color:#0757e8; font-size:0; }
  #pageContent .objectifs-table .objectif-card-actions .btn-edit { order:1; }
  #pageContent .objectifs-table .objectif-card-actions .btn-view { order:2; }
  #pageContent .objectifs-table .objectif-card-actions .btn-delete { display:none; }
  #pageContent .objectifs-table .objectif-card-actions .btn-edit::after { content:"✎  Modifier"; font-size:12px; font-weight:700; }
  #pageContent .objectifs-table .objectif-card-actions .btn-view::after { content:"◉  Voir"; font-size:12px; font-weight:700; }
  #pageContent .objectifs-mobile-project-picker { display:block; }
  #pageContent .objectif-project-select { width:100%; padding:12px; border:1px solid #bfd2fb; border-radius:10px; background:#fff; font:inherit; }
}

/* Indicateurs et cartes du module Objectifs. */
.objectif-task-count {
    color: #2563eb;
    font-weight: 600;
}

.objectif-task-state {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.objectif-task-state-completed {
    background: #dcfce7;
    color: #166534;
}

.objectif-task-state-in-progress {
    background: #fef3c7;
    color: #b45309;
}

.objectif-task-state-non-started {
    background: #eef2f7;
    color: #475569;
}

.objectifs-mobile-project-picker {
    display: none;
}

@media (max-width: 767px) {
    #pageContent .dashboard-section .section-actions #searchObjectifs {
        display: none;
    }

    #pageContent .dashboard-section .section-actions #btnNewObjectif {
        width: 100%;
        min-height: 48px;
    }

    #pageContent .objectifs-mobile-project-picker {
        display: block;
        margin: 0 0 24px;
    }

    #pageContent .objectifs-mobile-project-picker h4 {
        margin: 0 0 10px;
        font-size: 17px;
        color: #172033;
    }

    #pageContent .objectifs-mobile-project-options {
        overflow: hidden;
        border: 1px solid #bfd2fb;
        border-radius: 12px;
        background: #ffffff;
    }

    #pageContent .objectif-project-option {
        display: flex;
        width: 100%;
        align-items: center;
        gap: 16px;
        padding: 15px 18px;
        color: #172033;
        font: inherit;
        font-size: 16px;
        text-align: left;
        background: #ffffff;
        border: 0;
        border-bottom: 1px solid #dbe4f0;
        box-shadow: none;
    }

    #pageContent .objectif-project-option:last-child {
        border-bottom: 0;
    }

    #pageContent .objectif-project-option.is-selected {
        background: linear-gradient(90deg, #f7faff, #eef4ff);
    }

    #pageContent .objectif-project-option span {
        flex: 0 0 22px;
        width: 22px;
        height: 22px;
        border: 2px solid #b5c2d8;
        border-radius: 50%;
    }

    #pageContent .objectif-project-option.is-selected span {
        border-color: #1463ed;
        box-shadow: inset 0 0 0 4px #ffffff;
        background: #1463ed;
    }

    #pageContent .objectifs-responsive-table-wrapper,
    #pageContent .objectifs-table {
        display: block;
        width: 100%;
        min-width: 0;
        overflow: visible;
        background: transparent;
    }

    #pageContent .objectifs-table > thead {
        display: none;
    }

    #pageContent .objectifs-table > tbody {
        display: grid;
        gap: 18px;
    }

    #pageContent .objectifs-table > tbody > .objectif-card {
        display: flex;
        min-width: 0;
        position: relative;
        flex-flow: row wrap;
        overflow: hidden;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
    }

    #pageContent .objectifs-table > tbody > .objectif-card-not-selected {
        display: none;
    }

    #pageContent .objectifs-table > tbody > .objectif-card > td {
        display: block;
        width: 100%;
        padding: 13px 18px;
        border-bottom: 0;
    }

    #pageContent .objectifs-table .objectif-card-title {
        order: 1;
        flex: 0 0 100%;
        position: relative;
        padding-top: 22px;
        padding-left: 86px;
        padding-right: 24px;
        min-height: 84px;
        color: #172033;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.35;
    }

    #pageContent .objectifs-table .objectif-card-title::before {
        content: "◎";
        position: absolute;
        top: 18px;
        left: 24px;
        color: #1463ed;
        font-size: 44px;
        font-weight: 400;
        line-height: 1;
    }

    #pageContent .objectifs-table .objectif-card-user,
    #pageContent .objectifs-table .objectif-card-project,
    #pageContent .objectifs-table .objectif-card-objective-state {
        display: none;
    }

    #pageContent .objectifs-table .objectif-card-date,
    #pageContent .objectifs-table .objectif-card-tasks {
        display: inline-flex;
        order: 2;
        flex: 0 0 auto;
        width: auto;
        padding-top: 3px;
        padding-bottom: 18px;
        color: #64748b;
        font-size: 16px;
    }

    #pageContent .objectifs-table .objectif-card-date {
        padding-left: 52px;
    }

    #pageContent .objectifs-table .objectif-card-date::before {
        content: "🗓";
        margin-right: 10px;
        font-size: 20px;
    }

    #pageContent .objectifs-table .objectif-card-tasks::before {
        content: "•  Tâches :";
        margin-right: 8px;
    }

    #pageContent .objectifs-table .objectif-task-count {
        color: #1463ed;
    }

    #pageContent .objectifs-table .objectif-card-task-state {
        position: absolute;
        top: 22px;
        right: 24px;
        width: auto;
        margin: 0;
        padding: 0;
        border: 0;
    }

    #pageContent .objectifs-table .objectif-card-actions {
        display: grid;
        order: 3;
        flex: 0 0 calc(100% - 36px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin: 0 18px 18px;
        padding: 18px 0 0;
        border-top: 1px solid #e5ebf2;
    }

    #pageContent .objectifs-table .objectif-card-actions .table-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        min-height: 48px;
        margin: 0;
        border: 1px solid #dbe4f0;
        border-radius: 10px;
        background: #fbfdff;
        color: #0757e8;
        font-size: 0;
        font-weight: 700;
    }

    #pageContent .objectifs-table .objectif-card-actions .btn-edit { order: 1; }
    #pageContent .objectifs-table .objectif-card-actions .btn-view { order: 2; }
    #pageContent .objectifs-table .objectif-card-actions .btn-delete { display: none; }
    #pageContent .objectifs-table .objectif-card-actions .btn-edit::before { content: "✎"; font-size: 20px; }
    #pageContent .objectifs-table .objectif-card-actions .btn-view::before { content: "◉"; font-size: 18px; }
    #pageContent .objectifs-table .objectif-card-actions .btn-edit::after { content: "Modifier"; font-size: 15px; }
    #pageContent .objectifs-table .objectif-card-actions .btn-view::after { content: "Voir"; font-size: 15px; }
}

/* Cartes mobiles du module Projets uniquement. */
@media (max-width: 767px) {
    #pageContent .dashboard-section .section-actions #searchProjets {
        display: none;
    }

    #pageContent .dashboard-section .section-actions #btnNewProjet {
        width: 100%;
        min-height: 40px;
    }

    #pageContent .projets-responsive-table-wrapper {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: visible;
        border: 0;
        background: transparent;
    }

    #pageContent .projets-table {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        background: transparent;
    }

    #pageContent .projets-table > thead {
        display: none;
    }

    #pageContent .projets-table > tbody {
        display: grid;
        width: 100%;
        gap: 12px;
    }

    #pageContent .projets-table > tbody > tr {
        display: flex;
        width: 100%;
        min-width: 0;
        flex-direction: column;
        overflow: hidden;
        border: 1px solid #dbe4f0;
        border-radius: 10px;
        background: #ffffff;
        box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
    }

    #pageContent .projets-table > tbody > tr > td {
        display: block;
        width: 100%;
        min-width: 0;
        padding: 11px 12px;
        color: #213042;
        font-size: 14px;
        line-height: 1.45;
        white-space: normal;
        overflow-wrap: anywhere;
        border-bottom: 1px solid #e5ebf2;
    }

    #pageContent .projets-table > tbody > tr > td::before {
        content: none;
    }

    #pageContent .projets-table .projet-card-user,
    #pageContent .projets-table .projet-card-end-date {
        display: none;
    }

    #pageContent .projets-table .projet-card-definition {
        order: 2;
        font-weight: 500;
        color: #172033;
    }

    #pageContent .projets-table .projet-card-date {
        display: flex;
        order: 1;
        align-items: center;
        gap: 10px;
        color: #0757e8;
        font-weight: 700;
    }

    #pageContent .projets-table .projet-card-date::before {
        content: "🗓";
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        border-radius: 6px;
        background: #eef4ff;
        font-size: 16px;
        line-height: 1;
    }

    #pageContent .projets-table .projet-card-actions {
        display: grid;
        order: 3;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: auto;
        border-bottom: 0;
    }

    #pageContent .projets-table .projet-card-actions .table-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        min-height: 44px;
        margin: 0;
        padding: 8px 10px;
        border: 1px solid #dbe4f0;
        border-radius: 8px;
        background: #fbfdff;
        color: #0757e8;
        font-size: 0;
        font-weight: 700;
    }

    #pageContent .projets-table .projet-card-actions .btn-edit { order: 1; }
    #pageContent .projets-table .projet-card-actions .btn-view { order: 2; }
    #pageContent .projets-table .projet-card-actions .btn-delete { display: none; }

    #pageContent .projets-table .projet-card-actions .btn-edit::before,
    #pageContent .projets-table .projet-card-actions .btn-view::before {
        font-size: 18px;
        line-height: 1;
    }

    #pageContent .projets-table .projet-card-actions .btn-edit::before { content: "✎"; }
    #pageContent .projets-table .projet-card-actions .btn-view::before { content: "◉"; }
    #pageContent .projets-table .projet-card-actions .btn-edit::after,
    #pageContent .projets-table .projet-card-actions .btn-view::after { font-size: 14px; }
    #pageContent .projets-table .projet-card-actions .btn-edit::after { content: "Modifier"; }
    #pageContent .projets-table .projet-card-actions .btn-view::after { content: "Voir"; }

    #pageContent .projets-table > tbody > .projet-card-empty-row { box-shadow: none; }

    #pageContent .projets-table > tbody > .projet-card-empty-row > .projet-card-empty {
        display: block;
        padding: 18px 12px;
        text-align: center;
        border-bottom: 0;
    }
}

@media (max-width: 767px) {
  #pageContent .objectifs-table > tbody > .objectif-card { display:block; position:relative; border:1px solid #dbe4f0; border-radius:10px; background:#fff; overflow:hidden; }
  #pageContent .objectifs-table > tbody > .objectif-card > td { display:block; width:100%; padding:0; border:0; }
  #pageContent .objectifs-table .objectif-card-title { padding:14px 105px 10px 14px; min-height:0; background:none; font-size:14px; font-weight:700; }
  #pageContent .objectifs-table .objectif-card-title::before { content:none; }
  #pageContent .objectifs-table .objectif-card-user, #pageContent .objectifs-table .objectif-card-project, #pageContent .objectifs-table .objectif-card-objective-state { display:none; }
  #pageContent .objectifs-table .objectif-card-task-state { position:absolute; top:14px; right:10px; width:auto; padding:0; margin:0; }
  #pageContent .objectifs-table .objectif-card-date, #pageContent .objectifs-table .objectif-card-tasks { display:inline-block; width:auto; padding:6px 0 10px; font-size:12px; }
  #pageContent .objectifs-table .objectif-card-date { padding-left:14px; } #pageContent .objectifs-table .objectif-card-date::before { content:"📅 Échéance : "; font-size:12px; }
  #pageContent .objectifs-table .objectif-card-tasks::before { content:" • Tâches : "; }
  #pageContent .objectifs-table .objectif-card-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:0 10px 10px; padding:10px 0 0; border-top:1px solid #e5ebf2; }
  #pageContent .objectifs-table .objectif-card-actions .table-action { display:flex; justify-content:center; align-items:center; min-height:32px; width:100%; margin:0; font-size:0; }
  #pageContent .objectifs-table .objectif-card-actions .btn-edit { order:1; } #pageContent .objectifs-table .objectif-card-actions .btn-view { order:2; } #pageContent .objectifs-table .objectif-card-actions .btn-delete { display:none; }
  #pageContent .objectifs-table .objectif-card-actions .btn-edit::after { content:"✎ Modifier"; font-size:12px; } #pageContent .objectifs-table .objectif-card-actions .btn-view::after { content:"◉ Voir"; font-size:12px; }
}

.accompagne-progression { margin-top: 16px; }
.accompagne-progress-layout { display:grid; grid-template-columns:minmax(0, 1fr) 280px; gap:16px; }
.accompagne-timeline-card,.accompagne-effort-card { padding:18px; background:#fff; border:1px solid #e5ebf2; border-radius:14px; box-shadow:0 10px 26px rgba(15,23,42,.04); }
.accompagne-timeline-card h3,.accompagne-effort-card h3 { margin:0; font-size:20px; color:#172033; }
.accompagne-timeline-legend { color:#64748b; font-size:13px; }
.accompagne-timeline-scroll { min-width:720px; }
.accompagne-timeline-axis { display:flex; justify-content:space-between; color:#64748b; font-size:12px; border-bottom:1px solid #e5ebf2; padding-bottom:8px; }
.accompagne-timeline-row { display:grid; grid-template-columns:150px minmax(360px,1fr); gap:12px; align-items:center; padding:12px 0; border-bottom:1px solid #f1f5f9; }
.accompagne-timeline-row small { grid-column:2; color:#64748b; font-size:11px; }
.accompagne-timeline-track { position:relative; height:12px; border-radius:999px; background:#e5ebf2; overflow:visible; }
.accompagne-timeline-future,.accompagne-timeline-current,.accompagne-timeline-done { position:absolute; top:0; height:100%; border-radius:999px; }
.accompagne-timeline-future { background:#dbe4f0; }.accompagne-timeline-current { background:#2563eb; }.accompagne-timeline-done { background:#22a35a; }
.accompagne-timeline-milestone { position:absolute; top:-3px; width:18px; height:18px; transform:translateX(-50%) rotate(45deg); background:#1f5bd8; border:2px solid #fff; }
.accompagne-timeline-missing { color:#64748b; font-size:13px; }.accompagne-effort-wheel { display:grid; place-items:center; width:150px; aspect-ratio:1; margin:18px auto; border:10px solid #dbeafe; border-top-color:#2563eb; border-radius:50%; text-align:center; color:#475569; }.accompagne-effort-wheel strong { font-size:16px; }.accompagne-effort-card ul { padding:0; margin:0; list-style:none; }.accompagne-effort-card li { display:flex; justify-content:space-between; gap:8px; padding:11px 0; border-top:1px solid #edf2f7; font-size:13px; }
@media (max-width:768px) { .accompagne-progress-layout { grid-template-columns:1fr; }.accompagne-effort-card { order:-1; }.accompagne-timeline-card { overflow:hidden; }.accompagne-timeline-scroll { overflow-x:auto; padding-bottom:6px; } }
.accompagne-progress-person { margin:8px 0 0; color:#475569; font-size:14px; }
.accompagne-info { padding:0; border:0; background:transparent; color:inherit; font:inherit; text-align:left; cursor:help; text-decoration:underline dotted; }.accompagne-coverage,.accompagne-progress-note { color:#64748b; font-size:12px; line-height:1.4; }
.accompagne-timeline-track { border:0; padding:0; cursor:pointer; }.accompagne-timeline-track:focus-visible,.accompagne-effort-wheel:focus-visible,.accompagne-focus-info:focus-visible { outline:3px solid rgba(37,99,235,.35); outline-offset:3px; }.accompagne-focus-panel { margin:14px 0 0; padding:10px; border-radius:8px; background:#f8fafc; color:#475569; font-size:13px; line-height:1.45; }
@media (max-width:768px) {
  .accompagne-timeline-row { grid-template-columns:128px minmax(360px,1fr); gap:10px; }
  .accompagne-timeline-track { min-height:18px; width:100%; }
  .accompagne-timeline-milestone { width:20px; height:20px; }
  .accompagne-focus-panel { margin-top:12px; font-size:13px; }
  .accompagne-effort-wheel { min-width:150px; padding:0; background:#fff; cursor:pointer; }
  .accompagne-effort-card li { align-items:flex-start; }
  .accompagne-effort-card li strong { white-space:nowrap; }
}
.accompagne-timeline-axis { font-size:11px; font-weight:400; }
.accompagne-timeline-axis { position:relative; height:28px; display:block; padding:0; border:0; }
.accompagne-timeline-axis::before { content:""; position:absolute; top:14px; right:0; left:0; height:1px; background:#dbe4f0; }
.accompagne-timeline-axis span { position:absolute; z-index:1; top:5px; padding:0 5px; background:#fff; color:#64748b; font-size:11px; font-weight:400; line-height:18px; }
.accompagne-timeline-axis span:first-child { left:0; padding-left:0; }
.accompagne-timeline-axis span:last-child { right:0; padding-right:0; text-align:right; }


/* Liste des tâches : colonnes supplémentaires lisibles sur ordinateur. */
@media (min-width: 1025px) {
    #pageContent .taches-responsive-table-wrapper .taches-table {
        min-width: 1700px;
        table-layout: auto;
    }

    #pageContent .taches-responsive-table-wrapper .taches-table.without-accompagne {
        min-width: 1510px;
    }

    #pageContent .taches-responsive-table-wrapper .taches-table th,
    #pageContent .taches-responsive-table-wrapper .taches-table td {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #pageContent .taches-responsive-table-wrapper .taches-table th:nth-child(3),
    #pageContent .taches-responsive-table-wrapper .taches-table td:nth-child(3),
    #pageContent .taches-responsive-table-wrapper .taches-table th:nth-child(6),
    #pageContent .taches-responsive-table-wrapper .taches-table td:nth-child(6),
    #pageContent .taches-responsive-table-wrapper .taches-table th:nth-child(7),
    #pageContent .taches-responsive-table-wrapper .taches-table td:nth-child(7),
    #pageContent .taches-responsive-table-wrapper .taches-table th:nth-child(8),
    #pageContent .taches-responsive-table-wrapper .taches-table td:nth-child(8),
    #pageContent .taches-responsive-table-wrapper .taches-table th:nth-child(9),
    #pageContent .taches-responsive-table-wrapper .taches-table td:nth-child(9) {
        white-space: nowrap;
    }

    #pageContent .taches-responsive-table-wrapper .taches-table .mobile-card-actions {
        white-space: nowrap;
    }
}


/* Validation d’une tâche par l’accompagné. */
.task-validation-form input[type="range"] {
    width: 100%;
    accent-color: #2563eb;
}

.task-difficulty-scale {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
}

.task-difficulty-scale strong {
    color: #172033;
    white-space: nowrap;
}

.task-validation-form textarea::placeholder {
    color: #94a3b8;
    font-style: italic;
    opacity: 1;
}

.task-validation-counter {
    text-align: right;
}

@media (max-width: 768px) {
    .task-difficulty-scale {
        flex-wrap: wrap;
    }
}

.task-type-badge {
    --task-type-tint: #2563eb;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 4px 7px;
    border: 1px solid color-mix(in srgb, var(--task-type-tint) 30%, #ffffff);
    border-radius: 999px;
    color: #334155;
    background: color-mix(in srgb, var(--task-type-tint) 10%, #ffffff);
    font-size: 12px;
    line-height: 1.25;
}

.task-type-badge img {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    filter: invert(33%) sepia(89%) saturate(1096%) hue-rotate(203deg) brightness(89%) contrast(95%);
}

.icon-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 12px;
    margin: 12px 0 24px;
}

.icon-library-item,
.icon-type-row {
    border: 1px solid #e5ebf2;
    border-radius: 10px;
    padding: 12px;
    background: #fff;
}

.icon-library-item {
    display: grid;
    gap: 6px;
}

.icon-library-item img {
    width: 28px;
    height: 28px;
}

.icon-library-item small { color: #64748b; }
.icon-library-item.is-disabled { opacity: .55; }
.icon-type-associations { display: grid; gap: 10px; }
.icon-type-row { display: grid; grid-template-columns: minmax(180px, 260px) minmax(220px, 360px) 48px auto; gap: 10px; align-items: center; justify-content: start; }
.icon-type-tint { width: 48px; height: 40px; padding: 3px; border: 1px solid #d6deeb; border-radius: 8px; }
@media (max-width: 768px) { .icon-type-row { grid-template-columns: 1fr; } .icon-type-tint { width: 100%; } }

.dashboard-task-title > .dashboard-task-title-text {
  min-width: 0;
  margin-left: 0;
  color: inherit;
  font-size: inherit !important;
}

.dashboard-task-type-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.dashboard-task-type-icon.is-state-non-realisee {
  color: var(--lpf-color-text-secondary);
  filter: grayscale(1) opacity(.68);
}

.dashboard-task-type-icon.is-state-partiellement-realisee {
  color: var(--lpf-color-warning);
  filter: invert(52%) sepia(93%) saturate(940%) hue-rotate(359deg) brightness(99%) contrast(102%);
}

.dashboard-task-type-icon.is-state-realisee {
  color: var(--lpf-color-success);
  filter: invert(36%) sepia(82%) saturate(640%) hue-rotate(94deg) brightness(91%) contrast(88%);
}

.dashboard-task-type-icon.is-state-annulee {
  color: var(--lpf-color-danger);
  filter: invert(19%) sepia(91%) saturate(2859%) hue-rotate(349deg) brightness(77%) contrast(90%);
}

.icon-library-filters { grid-template-columns: minmax(220px, 1fr) minmax(170px, .55fr) minmax(190px, .65fr); }
.icon-library-heading { display: flex; align-items: center; gap: 8px; }
.icon-library-item p { display: grid; gap: 3px; margin: 0; }
.icon-library-multiselect { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; padding: 8px; border: 1px solid #dbe4f0; border-radius: 8px; }
.icon-library-multiselect legend { padding: 0 4px; font-size: .82rem; color: #475569; }
.icon-library-multiselect label { font-size: .8rem; white-space: nowrap; }
.icon-library-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
@media (max-width: 768px) { .icon-library-filters { grid-template-columns: 1fr; } .icon-library-actions { align-items: stretch; flex-direction: column; } }

.icon-picker { position: relative; min-width: 0; }
.icon-picker-toggle { width: 100%; display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; }
.icon-picker-toggle img, .icon-picker-option img { width: 19px; height: 19px; flex: 0 0 19px; }
.icon-picker-panel { position: absolute; z-index: 10; top: calc(100% + 5px); left: 0; right: 0; padding: 10px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; box-shadow: 0 10px 24px rgba(15, 23, 42, .16); }
.icon-picker-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 5px; max-height: 240px; margin-top: 8px; overflow-y: auto; }
.icon-picker-option { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 7px; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 7px; background: #fff; color: inherit; text-align: left; }
.icon-picker-option:hover, .icon-picker-option:focus-visible { border-color: var(--primary-color, #2563eb); background: #eff6ff; }
.icon-picker-option span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 768px) { .icon-library-grid { grid-template-columns: 1fr; } .icon-picker-options { grid-template-columns: 1fr; } }

.icon-catalogue-details { margin-top: 20px; }
.icon-catalogue-details summary { cursor: pointer; font-weight: 600; color: #1e3a5f; }

.task-objectives-picker { display: grid; gap: 7px; max-height: 260px; padding: 8px; overflow-y: auto; border: 1px solid #d6deeb; border-radius: 8px; }
.task-objectives-picker label { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; align-items: start; padding: 7px; border-radius: 6px; cursor: pointer; }
.task-objectives-picker label:hover { background: #f1f5f9; }
.task-objectives-picker small { grid-column: 2; color: #64748b; }
.task-objectives-details { cursor: pointer; }
.task-objectives-details ul { margin: 6px 0 0; padding-left: 18px; }
.task-shared-objectives-hint, .dashboard-shared-task-hint { display: block; margin-top: 4px; color: #64748b; font-size: .78rem; font-style: italic; }


/* Cartes mobiles dédiées au module Tâches. */
@media (max-width: 768px) {
  #pageContent .taches-mobile-cards { display: grid; gap: 12px; width: 100%; }
  #pageContent .tache-mobile-card { min-width: 0; overflow: hidden; border: 1px solid #dbe4f0; border-radius: 12px; background: #fff; box-shadow: 0 3px 10px rgba(15, 23, 42, .04); }
  #pageContent .tache-mobile-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 14px 10px; }
  #pageContent .tache-mobile-card-header h4 { min-width: 0; margin: 0; color: #172033; font-size: 16px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
  #pageContent .tache-mobile-state { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
  #pageContent .tache-mobile-state.is-realisee { color: #166534; background: #dcfce7; }
  #pageContent .tache-mobile-state.is-partiellement_realisee { color: #9a3412; background: #ffedd5; }
  #pageContent .tache-mobile-state.is-non_realisee { color: #374151; background: #e5e7eb; }
  #pageContent .tache-mobile-card-summary { display: grid; gap: 6px; padding: 0 14px 12px; color: #64748b; font-size: 13px; }
  #pageContent .tache-mobile-card-summary p { display: grid; grid-template-columns: minmax(105px, 38%) minmax(0, 1fr); gap: 8px; margin: 0; }
  #pageContent .tache-mobile-card-summary strong { min-width: 0; color: #334155; font-weight: 500; overflow-wrap: anywhere; }
  #pageContent .tache-mobile-card-due.is-overdue strong { color: #b91c1c; font-weight: 700; }
  #pageContent .tache-mobile-card-details { border-top: 1px solid #e5ebf2; }
  #pageContent .tache-mobile-card-details summary { padding: 11px 14px; color: #0757e8; font-size: 13px; font-weight: 700; cursor: pointer; }
  #pageContent .tache-mobile-card-details-content { display: grid; gap: 10px; padding: 0 14px 13px; color: #475569; font-size: 13px; }
  #pageContent .tache-mobile-card-details-content > p, #pageContent .tache-mobile-card-details-content > div { margin: 0; }
  #pageContent .tache-mobile-card-details-content > p > span, #pageContent .tache-mobile-card-details-content > div > span { display: block; margin-bottom: 3px; color: #64748b; font-size: 12px; font-weight: 600; }
  #pageContent .tache-mobile-card-details-content ul { margin: 3px 0 0; padding-left: 18px; }
  #pageContent .tache-mobile-card-details-content .task-type-badge { width: max-content; max-width: 100%; }
  #pageContent .tache-mobile-card-shared { color: #64748b; font-style: italic; }
  #pageContent .tache-mobile-card-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin: 0 12px 12px; padding-top: 12px; border-top: 1px solid #e5ebf2; }
  #pageContent .tache-mobile-card-actions .table-action { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; margin: 0; border: 1px solid #dbe4f0; border-radius: 8px; background: #fbfdff; color: #0757e8; font-size: 13px; font-weight: 700; }
}
.sidebar-situation-report { width: 100%; margin: 10px 0 0; padding: 9px 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: #f8fafc; color: #334155; font-size: 13px; font-weight: 700; box-shadow: none; }
.sidebar-situation-report.has-pending-evolutions { border-color: #86c9ad; background: #edf9f3; color: #176b50; }
.sidebar-situation-report-hint { display: block; margin-top: 7px; color: #527064; font-size: 12px; line-height: 1.35; }
.situation-journal-header { margin-bottom: 18px; }
.situation-journal-subtitle { color: #64748b; }
.situation-journal-list { display: grid; gap: 12px; }
.situation-journal-card { padding: 16px; border: 1px solid #dce5ed; border-radius: 12px; background: #fff; }
.situation-journal-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.situation-journal-card h3 { margin: 0; font-size: 17px; color: #1f2937; }
.situation-journal-date { color: #64748b; font-size: 13px; white-space: nowrap; }
.situation-journal-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.situation-journal-tag { padding: 4px 8px; border-radius: 999px; background: #eef4f7; color: #475569; font-size: 12px; font-weight: 700; }
.situation-journal-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.situation-journal-value { padding: 10px; border-radius: 8px; background: #f8fafc; overflow-wrap: anywhere; }
.situation-journal-value span { display: block; margin-bottom: 4px; color: #64748b; font-size: 12px; font-weight: 700; }
.situation-journal-author { margin: 12px 0 0; color: #52606d; font-size: 13px; }
.situation-journal-empty { padding: 24px; border: 1px dashed #cbd5e1; border-radius: 12px; color: #64748b; text-align: center; background: #fff; }
@media (max-width: 768px) { .situation-journal-card-head { display: block; } .situation-journal-date { display: block; margin-top: 5px; white-space: normal; } .situation-journal-values { grid-template-columns: 1fr; } }
.situation-draft-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); gap: 20px; align-items: start; }
.situation-draft-editor { min-width: 0; }
.situation-draft-fields { display: grid; gap: 14px; margin-bottom: 22px; padding: 16px; border: 1px solid #dce5ed; border-radius: 12px; background: #fff; }
.situation-draft-fields label, .situation-reformulation label { color: #334155; font-weight: 700; }
.situation-draft-fields label > span { color: #64748b; font-size: 12px; font-weight: 500; }
.situation-draft-fields textarea, .situation-reformulation textarea { display: block; width: 100%; margin-top: 7px; box-sizing: border-box; resize: vertical; }
.situation-draft-choice { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #edf1f5; }
.situation-draft-choice label { display: inline-flex; align-items: center; gap: 8px; color: #1f2937; font-weight: 700; }
.situation-draft-choice input { width: 18px; height: 18px; margin: 0; accent-color: #16835f; }
.situation-draft-choice .situation-discard-button { width: auto; margin: 0; padding: 7px 10px; color: #6b4f20; border-color: #e2d2ad; background: #fffdf7; box-shadow: none; }
.situation-reformulation { margin-top: 14px; padding-top: 13px; border-top: 1px solid #edf1f5; }
.situation-draft-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.situation-draft-actions button { width: auto; }
.situation-draft-status { color: #64748b; font-size: 13px; }
.situation-draft-preview { position: sticky; top: 18px; padding: 18px; border: 1px solid #bcdcca; border-radius: 12px; background: #f6fcf8; color: #263b33; overflow-wrap: anywhere; }
.situation-draft-preview h3 { margin: 0 0 14px; color: #176b50; }
.situation-draft-preview h4 { margin: 15px 0 6px; color: #334155; }
.situation-draft-preview p { margin: 6px 0; line-height: 1.55; }
.situation-draft-preview ul { margin: 7px 0 0; padding-left: 20px; }
.situation-draft-preview li { margin-bottom: 8px; line-height: 1.45; }
.situation-preview-placeholder { color: #718079; font-style: italic; }
.situation-preview-note { margin-top: 18px !important; padding-top: 10px; border-top: 1px solid #d5e8dc; color: #64748b; font-size: 12px; }
@media (max-width: 900px) { .situation-draft-layout { grid-template-columns: 1fr; } .situation-draft-preview { position: static; order: 2; } }
@media (max-width: 520px) { .situation-draft-choice { align-items: stretch; flex-direction: column; } .situation-draft-choice .situation-discard-button { width: 100%; } .situation-draft-actions { align-items: stretch; flex-direction: column; } .situation-draft-actions button { width: 100%; } }
.situation-transmit-button { background: #176b50; }
.situation-report-readonly { max-width: 860px; margin: 0 auto; padding: 24px; border: 1px solid #d5e8dc; border-radius: 14px; background: #fff; color: #263b33; }
.situation-report-readonly header { margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid #dce5ed; }
.situation-report-readonly header h2 { margin-bottom: 6px; }
.situation-report-readonly header p, .situation-report-final { color: #64748b; }
.situation-report-readonly section { margin: 22px 0; }
.situation-report-readonly section p { line-height: 1.6; overflow-wrap: anywhere; }
.situation-report-readonly ul { padding-left: 22px; }
.situation-report-readonly li { margin: 0 0 14px; line-height: 1.5; }
.situation-report-readonly li small { display: block; margin-top: 4px; color: #64748b; }
.situation-report-final { margin-top: 24px; padding-top: 12px; border-top: 1px solid #dce5ed; font-size: 13px; }
.situation-reports-list { max-width: 820px; margin: 0 auto; }
.situation-report-list-item { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 14px; margin: 0 0 10px; padding: 16px; border: 1px solid #dce5ed; border-radius: 10px; background: #fff; color: #263b33; text-align: left; box-shadow: none; }
.situation-report-list-item:hover { border-color: #86c9ad; background: #f6fcf8; }
.situation-report-list-item span { color: #176b50; font-size: 13px; font-weight: 700; }
@media (max-width: 600px) { .situation-report-readonly { padding: 17px; } .situation-report-list-item { align-items: flex-start; flex-direction: column; } }
