.page-shell {
  display: grid;
  gap: 16px;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.page-heading h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.page-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.page-actions {
  display: flex;
  gap: 8px;
}
.btn-ui {
  height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0 11px;
  color: #4f5e56;
  font-size: 10px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-ui.primary {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}
.notice-data {
  border: 1px solid #e5e9e5;
  background: #fafbf9;
  border-radius: 10px;
  padding: 10px 12px;
  color: #718078;
  font-size: 10px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.summary-card,
.data-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.summary-card {
  padding: 15px;
}
.summary-card .label {
  color: var(--muted);
  font-size: 10px;
}
.summary-card .value {
  font-size: 23px;
  font-weight: 850;
  margin-top: 3px;
}
.summary-card .hint {
  font-size: 9px;
  color: #909b94;
  margin-top: 3px;
}
.data-card {
  overflow: hidden;
}
.data-card-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.data-card-head h3 {
  margin: 0;
  font-size: 13px;
}
.data-card-head span {
  font-size: 9px;
  color: var(--muted);
}
.data-card-body {
  padding: 14px 16px;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.three-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.metric-list {
  display: grid;
  gap: 8px;
}
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 9px;
  background: var(--soft);
  border-radius: 8px;
  font-size: 10px;
}
.metric-row strong {
  font-size: 12px;
}
.section-filters {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) repeat(3, minmax(120px, 170px));
  gap: 8px;
}
.section-filters.five {
  grid-template-columns: minmax(180px, 1fr) repeat(4, minmax(110px, 150px));
}
.app-input {
  height: 35px;
  border: 1px solid #dfe5df;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  outline: 0;
  color: #4c5b53;
  font-size: 10px;
  width: 100%;
}
.table-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.app-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}
.app-table th {
  padding: 10px 11px;
  font-size: 9px;
  background: #fafbf9;
}
.app-table td {
  padding: 10px 11px;
  font-size: 10px;
}
.app-table tbody tr[data-client] {
  cursor: pointer;
}
.app-table tbody tr[data-client]:hover {
  background: #f7faf7;
}
.status {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 800;
}
.status.normal {
  background: var(--green-soft);
  color: var(--green);
}
.status.watch {
  background: var(--yellow-soft);
  color: var(--yellow);
}
.status.anomaly {
  background: var(--red-soft);
  color: var(--red);
}
.empty-data {
  padding: 26px;
  text-align: center;
  color: var(--muted);
  font-size: 10px;
}
.segment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}
.segment-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.segment-card:hover {
  border-color: #c9d8cf;
}
.segment-card .number {
  font-size: 22px;
  font-weight: 850;
}
.segment-card h3 {
  font-size: 11px;
  margin: 3px 0 10px;
  min-height: 32px;
}
.segment-card dl {
  margin: 0;
  display: grid;
  gap: 5px;
}
.segment-card dl div {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
}
.segment-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
}
.recall-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.recall-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px;
}
.recall-box h3 {
  margin: 0 0 8px;
  font-size: 11px;
}
.recall-box .count {
  font-size: 22px;
  font-weight: 850;
}
.recall-box.overdue {
  border-top: 3px solid var(--red);
}
.recall-box.today {
  border-top: 3px solid var(--orange);
}
.recall-box.tomorrow {
  border-top: 3px solid var(--blue);
}
.recall-box.week {
  border-top: 3px solid var(--green);
}
.chart-bars {
  display: grid;
  gap: 9px;
}
.chart-row {
  display: grid;
  grid-template-columns: 150px 1fr 45px;
  align-items: center;
  gap: 9px;
  font-size: 10px;
}
.bar-track {
  height: 8px;
  background: #edf1ee;
  border-radius: 99px;
  overflow: hidden;
}
.bar-value {
  height: 100%;
  background: var(--green);
  border-radius: 99px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.setting {
  display: grid;
  grid-template-columns: 1fr 145px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef1ee;
}
.setting strong {
  display: block;
  font-size: 10px;
}
.setting small {
  color: var(--muted);
  font-size: 9px;
}
.setting input {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 8px;
  background: #f7f9f7;
  color: #6c786f;
}
.page-breadcrumb {
  font-size: 9px;
  color: var(--muted);
}
.motif-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.nav a {
  cursor: pointer;
}
.nav a.active {
  background: var(--forest2);
  color: #fff;
  box-shadow: inset 3px 0 #f0cf70;
}
.nav a.disabled {
  opacity: 0.55;
}
.detail {
  z-index: 45;
}
@media (max-width: 1450px) {
  .segment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-filters.five {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .motif-groups {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .two-columns,
  .three-columns,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .recall-grid {
    grid-template-columns: 1fr 1fr;
  }
  .section-filters,
  .section-filters.five {
    grid-template-columns: 1fr 1fr;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* V1 applicative complète — extension du design system validé */
.data-na {
  color: #7d8982;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.25;
}
.summary-card .value.na {
  display: flex;
  align-items: center;
  min-height: 30px;
}
.summary-card .value.na .data-na {
  font-size: 10px;
}
.dashboard-grid-eight {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dashboard-grid-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.activity-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.performance-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.demo-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  padding: 5px 8px;
  background: var(--yellow-soft);
  color: #85620f !important;
  font-size: 8px !important;
  font-weight: 850;
  white-space: nowrap;
}
.demo-chart {
  height: 150px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 12px;
  padding: 6px 10px 0;
  border-bottom: 1px solid var(--line);
}
.demo-month {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 7px;
  text-align: center;
  font-size: 8px;
  color: var(--muted);
}
.demo-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
}
.demo-bars i,
.demo-bars b {
  display: block;
  width: 13px;
  border-radius: 4px 4px 0 0;
}
.demo-bars i {
  background: #cad5ce;
}
.demo-bars b {
  background: var(--green);
}
.chart-legend {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 9px 0;
  font-size: 8px;
  color: var(--muted);
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.chart-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.legend-old {
  background: #cad5ce;
}
.legend-new {
  background: var(--green);
}
.funnel-demo {
  min-height: 184px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
}
.funnel-demo div {
  width: var(--size);
  min-height: 25px;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  background: linear-gradient(90deg, #e5f1eb, #f4f7f4);
  border: 1px solid #dce8e1;
  border-radius: 7px;
  font-size: 9px;
}
.alert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.alert-item {
  padding: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 9px;
  background: var(--green-soft);
  color: #396f5c;
}
.alert-item.warning {
  background: var(--orange-soft);
  color: #9a5c23;
}
.alert-item.muted {
  background: var(--soft);
  color: var(--muted);
}
.alert-item strong {
  font-size: 18px;
}
.alert-item span {
  font-size: 9px;
}
.context-help {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid #cdd8d1;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
}
.j2-lines,
.drawer-j2 {
  display: grid;
  gap: 1px;
  margin-top: 4px;
  color: #68766e;
  font-size: 8px;
  line-height: 1.3;
}
.j2-lines strong,
.drawer-j2 strong {
  color: var(--orange);
}
.actions-card .table-wrap {
  overflow-x: auto;
}
.actions-card table {
  min-width: 1340px;
}
.actions-card th:nth-child(1) {
  width: 58px;
}
.actions-card th:nth-child(2) {
  width: 13%;
}
.actions-card th:nth-child(3) {
  width: 105px;
}
.actions-card th:nth-child(4) {
  width: 10%;
}
.actions-card th:nth-child(5) {
  width: 11%;
}
.actions-card th:nth-child(6) {
  width: 8%;
}
.actions-card th:nth-child(7) {
  width: 16%;
}
.actions-card th:nth-child(8) {
  width: 13%;
}
.actions-card th:nth-child(9) {
  width: 135px;
}
.actions-card th:nth-child(10) {
  width: 28px;
}
.action-kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.slot-kpi.morning .kpi-icon {
  background: var(--blue-soft);
  color: var(--blue);
}
.slot-kpi.evening .kpi-icon {
  background: var(--orange-soft);
  color: var(--orange);
}
.call-schedule-overview {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(210px, 1fr) auto;
  align-items: stretch;
  gap: 9px;
}
.morning-work,
.evening-window {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 13px;
  border: 1px solid #d9e5de;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}
.morning-work .icon,
.evening-window .icon {
  flex: 0 0 auto;
  color: var(--green);
}
.morning-work span,
.evening-window span,
.morning-work strong,
.evening-window strong {
  display: block;
}
.morning-work span,
.evening-window span {
  color: var(--muted);
  font-size: 9px;
}
.morning-work strong,
.evening-window strong {
  margin-top: 2px;
  font-size: 13px;
}
.morning-work.complete {
  border-color: #b9ddc9;
  background: #eff9f3;
}
.evening-window.active {
  border-color: #e5a15e;
  background: var(--orange-soft);
  box-shadow: 0 0 0 2px #e5a15e22;
}
.evening-window.active .icon,
.evening-window.active strong {
  color: #a95d1f;
}
.call-schedule-overview > p {
  display: flex;
  align-items: center;
  max-width: 290px;
  margin: 0;
  padding: 9px 12px;
  border-left: 3px solid #d7dfda;
  color: var(--muted);
  font-size: 9px;
}
.call-slot-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 10px;
}
.action-sort {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}
.action-sort select {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 28px 0 9px;
  color: #44534b;
  font-size: 9px;
}
.call-slot-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.call-slot-badge.morning {
  background: var(--blue-soft);
  color: #2f6f94;
}
.call-slot-badge.evening {
  background: var(--orange-soft);
  color: #a75e22;
}
.call-slot-badge.recommended-now {
  box-shadow: 0 0 0 2px #d77a2e33;
}
.call-slot-source {
  display: block;
  margin-top: 3px;
  color: #8a968e;
  font-size: 7px;
  line-height: 1.2;
}
.preferred-call-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  padding: 11px 12px;
  border: 1px solid #dce6e0;
  border-radius: 10px;
}
.preferred-call-card.morning {
  background: var(--blue-soft);
  color: #2f6f94;
}
.preferred-call-card.evening {
  background: var(--orange-soft);
  color: #9d581f;
}
.preferred-call-card .icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}
.preferred-call-card span,
.preferred-call-card strong,
.preferred-call-card small {
  display: block;
}
.preferred-call-card span {
  color: #5f6d65;
  font-size: 9px;
}
.preferred-call-card strong {
  margin-top: 1px;
  font-size: 14px;
}
.preferred-call-card small {
  margin-top: 2px;
  color: #77847c;
  font-size: 8px;
}
.work-status {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 99px;
  font-size: 8px;
  font-weight: 850;
  white-space: nowrap;
}
.work-status.todo {
  background: #eef2ef;
  color: #69776f;
}
.work-status.assigned {
  background: var(--blue-soft);
  color: var(--blue);
}
.work-status.complete {
  background: var(--green-soft);
  color: var(--green);
}
.work-status.recall {
  background: var(--orange-soft);
  color: var(--orange);
}
.take-action {
  display: block;
  margin-top: 5px;
  padding: 5px 7px;
  border: 1px solid #cddbd3;
  border-radius: 6px;
  background: #fff;
  color: var(--forest);
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}
.table-scroll {
  overflow-x: auto;
}
.app-table {
  min-width: 780px;
}
.recall-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.recall-column {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.recall-column.overdue {
  border-top-color: var(--red);
}
.recall-column.today {
  border-top-color: var(--orange);
}
.recall-column.tomorrow {
  border-top-color: var(--blue);
}
.recall-column-head {
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.recall-column-head h3 {
  margin: 0;
  font-size: 11px;
}
.recall-column-head span {
  min-width: 22px;
  padding: 3px 6px;
  text-align: center;
  border-radius: 99px;
  background: var(--soft);
  font-size: 9px;
  font-weight: 800;
}
.recall-list {
  padding: 8px;
  display: grid;
  gap: 8px;
}
.reminder-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}
.reminder-card:hover {
  background: #fafcf9;
}
.reminder-date {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: var(--muted);
}
.reminder-card h4 {
  margin: 6px 0 1px;
  font-size: 11px;
}
.reminder-card p {
  margin: 0 0 7px;
  font-size: 9px;
  color: var(--muted);
}
.reminder-card dl {
  margin: 0;
  display: grid;
  gap: 4px;
}
.reminder-card dl div {
  font-size: 8px;
}
.reminder-card dt {
  color: var(--muted);
}
.reminder-card dd {
  margin: 0;
  font-weight: 650;
}
.reminder-actions {
  display: flex;
  gap: 5px;
  margin-top: 9px;
}
.reminder-actions .btn-ui {
  flex: 1;
  justify-content: center;
  height: 29px;
  padding: 0 6px;
  text-decoration: none;
}
.reminder-actions .icon {
  width: 12px;
}
.reminder-form {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.recall-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.recall-toolbar > span {
  color: var(--muted);
  font-size: 9px;
}
.reminder-fields {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 1.4fr;
  gap: 10px;
  padding: 13px 16px;
}
.reminder-fields label {
  display: grid;
  gap: 5px;
  font-size: 9px;
  color: var(--muted);
}
.reminder-fields .wide {
  grid-column: 1 / -1;
}
.app-textarea {
  min-height: 65px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  resize: vertical;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding: 0 16px 14px;
}
.close-inline {
  border: 0;
  background: var(--soft);
  border-radius: 7px;
  width: 27px;
  height: 27px;
}
.crm-search,
.guide-search {
  min-height: 46px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #dfe5df;
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow);
}
.crm-search input,
.guide-search input {
  border: 0;
  outline: 0;
  width: 100%;
  color: var(--ink);
  font-size: 11px;
}
.crm-search .icon,
.guide-search .icon {
  width: 17px;
  color: var(--muted);
}
.crm-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.crm-filters .app-input:nth-last-child(-n + 3) {
  grid-column: span 1;
}
.lifecycle {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 9px;
  font-weight: 750;
}
.lifecycle i {
  color: var(--green);
  font-style: normal;
}
.segment-card-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 8px;
}
.segment-card-top strong {
  color: var(--green);
}
.segment-card dd {
  max-width: 58%;
  text-align: right;
  font-size: 8px;
}
.segment-objective {
  margin-top: 10px;
  padding: 8px;
  border-radius: 8px;
  background: var(--green-soft);
}
.segment-objective span {
  display: block;
  color: var(--green);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.segment-objective strong {
  display: block;
  margin-top: 2px;
  font-size: 9px;
}
.performance-funnel {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 9px;
  align-items: center;
}
.performance-funnel div {
  padding: 12px;
  border-radius: 9px;
  background: var(--soft);
  text-align: center;
}
.performance-funnel span {
  display: block;
  font-size: 9px;
  color: var(--muted);
}
.performance-funnel strong {
  display: block;
  margin-top: 2px;
  font-size: 19px;
}
.performance-funnel i {
  font-style: normal;
  color: var(--green);
}
.performance-funnel.five {
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
}
.trigger-list {
  display: grid;
  gap: 9px;
}
.trigger-row {
  display: grid;
  grid-template-columns: 155px 1fr 68px;
  align-items: center;
  gap: 9px;
  font-size: 9px;
}
.trigger-progress {
  height: 7px;
  border-radius: 99px;
  background: #edf1ee;
  overflow: hidden;
}
.trigger-progress i {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
}
.trigger-row strong {
  text-align: right;
}
.reason-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.reason-grid > div {
  min-height: 37px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  background: var(--soft);
  font-size: 9px;
}
.period-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.period-selector > button {
  height: 30px;
  border: 0;
  border-radius: 7px;
  padding: 0 11px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}
.period-selector > button.active {
  background: var(--forest);
  color: #fff;
}
.custom-period {
  display: flex;
  align-items: center;
  gap: 5px;
}
.custom-period .app-input {
  width: 125px;
}
#summaryContent {
  display: grid;
  gap: 14px;
}
.settings-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 13px;
  align-items: start;
}
.settings-side {
  display: grid;
  gap: 13px;
}
.settings-list .setting:last-child {
  border-bottom: 0;
}
.settings-list .setting input {
  width: 100%;
  font-size: 9px;
}
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  align-items: start;
}
.guide-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.guide-card summary {
  min-height: 46px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  font-weight: 800;
}
.guide-card summary::-webkit-details-marker {
  display: none;
}
.guide-card summary i {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--soft);
  color: var(--green);
  font-style: normal;
  font-size: 14px;
}
.guide-card[open] summary {
  border-bottom: 1px solid var(--line);
}
.guide-card[open] summary i {
  transform: rotate(45deg);
}
.guide-card p {
  margin: 0;
  padding: 13px 14px;
  color: #5e6c64;
  font-size: 10px;
  line-height: 1.6;
}
.logout-card {
  max-width: 500px;
  margin: 70px auto 0;
  padding: 30px;
  text-align: center;
}
.logout-card h3 {
  margin: 13px 0 5px;
}
.logout-card p {
  color: var(--muted);
  font-size: 10px;
}
.logout-card .btn-ui {
  margin-top: 18px;
}
.logout-icon {
  width: 48px;
  height: 48px;
  margin: auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green);
}
.help.active {
  border-color: #f0cf70;
  box-shadow: inset 3px 0 #f0cf70;
}
.logout {
  cursor: pointer;
  border-radius: 8px;
}
.logout:hover,
.logout.active {
  background: var(--forest2);
  color: #fff;
}
.drawer-segment {
  padding: 4px 7px;
  border-radius: 99px;
  background: #eef2ef;
  color: #65736b;
  font-size: 8px;
  font-weight: 750;
}
.mini-btn {
  text-decoration: none;
}
.app-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  max-width: min(440px, 90vw);
  padding: 11px 15px;
  border-radius: 10px;
  background: var(--forest);
  color: #fff;
  box-shadow: 0 12px 35px #102a2150;
  font-size: 10px;
  opacity: 0;
  transform: translate(-50%, 15px);
  pointer-events: none;
  transition: 0.2s;
}
.app-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.mobile-menu {
  display: none;
}
.status-legend {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 9px;
}
.status-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.status-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.status-legend i.normal {
  background: var(--green);
}
.status-legend i.watch {
  background: var(--orange);
}
.status-legend i.anomaly {
  background: var(--red);
}
.client-link {
  cursor: pointer;
}
.section-filters.six {
  grid-template-columns: minmax(170px, 1fr) repeat(5, minmax(105px, 145px));
}

/* Équipe — même structure applicative, panneau collaborateur partagé */
.app.team-page {
  grid-template-columns: 220px minmax(720px, 1fr) 520px;
  transition: grid-template-columns 0.2s ease;
}
.app.team-page.team-panel-closed {
  grid-template-columns: 220px minmax(0, 1fr) 0;
}
.app.team-page.team-panel-closed .detail {
  display: none;
}
.team-shell {
  gap: 14px;
}
.team-shell .page-heading {
  align-items: flex-start;
}
.team-shell .page-heading p {
  max-width: 870px;
  line-height: 1.55;
}
.team-kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}
.team-kpis .summary-card {
  min-height: 96px;
  padding: 12px 10px;
}
.team-kpis .summary-card .label {
  min-height: 28px;
  color: #415048;
  line-height: 1.25;
}
.team-kpis .summary-card .value {
  font-size: 21px;
}
.team-section-title,
.team-panel-title {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 11px;
}
.team-overview {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.team-member-card {
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition:
    border-color 0.16s,
    box-shadow 0.16s,
    transform 0.16s;
}
.team-member-card:hover {
  transform: translateY(-1px);
  border-color: #a9c7b8;
}
.team-member-card.selected {
  border-color: #3d8067;
  box-shadow:
    0 0 0 1px #3d80671c,
    0 8px 22px #153d3114;
}
.team-member-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.team-member-head > div {
  min-width: 0;
}
.team-member-head strong,
.team-member-head small {
  display: block;
}
.team-member-head strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-member-head small {
  min-height: 24px;
  margin-top: 1px;
  color: var(--muted);
  font-size: 7.5px;
  line-height: 1.35;
}
.team-avatar {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #dcece5;
  color: var(--forest);
  font-size: 15px;
  font-weight: 850;
}
.team-avatar.member-1 {
  background: #dce4ff;
  color: #334d91;
}
.team-avatar.member-2 {
  background: #e9ddfb;
  color: #6945a8;
}
.team-avatar.member-3 {
  background: #d5eee5;
  color: #296b57;
}
.team-avatar.member-4 {
  background: #f8e4a5;
  color: #705714;
}
.team-avatar.member-5 {
  background: #f7d9e4;
  color: #90445f;
}
.member-status {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 3px 6px;
  border-radius: 99px;
  font-size: 7px;
  font-weight: 800;
}
.member-status.unavailable {
  background: #f1f3f1;
  color: #748078;
}
.team-member-stats,
.team-member-results {
  display: grid;
  gap: 4px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.team-member-stats div,
.team-member-results div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
}
.team-member-stats span,
.team-member-results span {
  overflow: hidden;
  color: #58665e;
  font-size: 7.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-member-stats strong,
.team-member-results strong {
  font-size: 9px;
}
.team-member-results .data-na {
  max-width: 72px;
  overflow: hidden;
  font-size: 7px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-table th,
.team-table td {
  padding-top: 8px;
  padding-bottom: 8px;
}
.team-table tr[data-member] {
  cursor: pointer;
}
.team-table tr[data-member]:hover {
  background: #f7faf7;
}
.team-table .sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}
.team-total {
  background: #fffbea;
}
.team-member-detail .detail-head {
  padding: 16px 20px 13px;
}
.team-member-detail .detail-scroll {
  padding: 0 20px 18px;
}
.team-member-detail .result-dock {
  padding: 12px 20px 15px;
}
.team-member-detail .detail-badges {
  align-items: center;
  flex-wrap: wrap;
}
.team-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 -20px 15px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.team-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  padding: 14px 4px 12px;
  color: #536159;
  font-size: 9px;
  font-weight: 700;
}
.team-tabs button.active {
  color: var(--green);
}
.team-tabs button.active::after {
  position: absolute;
  right: 7px;
  bottom: -1px;
  left: 7px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--green);
  content: "";
}
.team-panel-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.team-panel-kpis > div {
  min-width: 0;
  padding: 10px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.team-panel-kpis > div.wide {
  grid-column: span 2;
}
.team-panel-kpis span,
.team-panel-kpis strong {
  display: block;
}
.team-panel-kpis span {
  overflow: hidden;
  color: var(--muted);
  font-size: 7.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-panel-kpis strong {
  margin-top: 3px;
  font-size: 15px;
}
.team-panel-kpis .data-na {
  margin-top: 3px;
  font-size: 8px;
  white-space: normal;
}
.team-panel-section {
  margin-top: 18px;
}
.team-panel-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.team-panel-section-head h3 {
  margin: 0;
  font-size: 10px;
}
.team-panel-section-head button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 8px;
  font-weight: 750;
}
.team-mini-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.team-mini-table table {
  width: 100%;
  min-width: 440px;
  border-collapse: collapse;
}
.team-mini-table th,
.team-mini-table td {
  padding: 7px 7px;
  border-bottom: 1px solid var(--line);
  font-size: 7.5px;
  text-align: left;
  white-space: nowrap;
}
.team-mini-table th {
  background: #fafbf9;
  color: #69766f;
  font-weight: 750;
}
.team-mini-table tr:last-child td {
  border-bottom: 0;
}
.team-mini-table tr[data-client] {
  cursor: pointer;
}
.team-mini-table tr[data-client]:hover {
  background: #f7faf7;
}
.team-history-period {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin-bottom: 8px;
}
.team-history-period button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 6px 8px;
  color: #637168;
  font-size: 8px;
}
.team-history-period button.active {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}
.team-history-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}
.team-history-filters select,
.team-history-filters input,
.team-custom-dates input {
  min-width: 0;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 0 8px;
  color: #526057;
  font-size: 8px;
}
.team-custom-dates {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.team-custom-dates[hidden] {
  display: none;
}
.team-history-table table {
  min-width: 980px;
}
.team-profile-button {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cfd7d1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 9px;
  font-weight: 750;
}

@media (max-width: 1450px) {
  .action-kpis {
    grid-template-columns: repeat(3, 1fr);
  }
  .call-schedule-overview {
    grid-template-columns: 1fr 1fr;
  }
  .call-schedule-overview > p {
    grid-column: 1 / -1;
    max-width: none;
  }
  .app.team-page {
    grid-template-columns: 190px minmax(650px, 1fr) 450px;
  }
  .app.team-page.team-panel-closed {
    grid-template-columns: 190px minmax(0, 1fr) 0;
  }
  .team-kpis .summary-card {
    padding: 10px 8px;
  }
  .team-overview {
    gap: 6px;
  }
  .team-member-card {
    padding: 10px 8px;
  }
  .dashboard-grid-five {
    grid-template-columns: repeat(3, 1fr);
  }
  .performance-kpis {
    grid-template-columns: repeat(3, 1fr);
  }
  .activity-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-filters.six {
    grid-template-columns: repeat(3, 1fr);
  }
  .recall-columns {
    grid-template-columns: 1fr 1fr;
  }
  .crm-filters {
    grid-template-columns: repeat(3, 1fr);
  }
  .alert-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 1180px) {
  .app.team-page,
  .app.team-page.team-panel-closed {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .app.team-page .team-member-detail {
    display: flex;
    width: min(520px, calc(100vw - 76px));
  }
  .app.team-page.team-panel-closed .team-member-detail {
    display: none;
  }
  .team-kpis,
  .team-overview {
    grid-template-columns: repeat(3, 1fr);
  }
  .help.active {
    box-shadow: none;
  }
  .dashboard-grid-eight {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid-five {
    grid-template-columns: repeat(2, 1fr);
  }
  .performance-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .action-kpis,
  .call-schedule-overview {
    grid-template-columns: 1fr 1fr;
  }
  .call-slot-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .app.team-page,
  .app.team-page.team-panel-closed {
    display: block;
  }
  .app.team-page .team-member-detail {
    width: min(520px, 100vw);
  }
  .team-kpis,
  .team-overview {
    grid-template-columns: repeat(2, 1fr);
  }
  .mobile-menu {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 7px 8px;
    color: var(--forest);
    font-size: 9px;
    font-weight: 800;
  }
  .mobile-menu .icon {
    width: 15px;
  }
  .sidebar.mobile-open {
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    width: 250px;
    box-shadow: 18px 0 45px #102a2140;
  }
  .sidebar.mobile-open .brand div:last-child,
  .sidebar.mobile-open .nav-label,
  .sidebar.mobile-open .nav a span,
  .sidebar.mobile-open .help,
  .sidebar.mobile-open .logout span {
    display: block;
  }
  .sidebar.mobile-open .nav a {
    justify-content: flex-start;
  }
  .dashboard-grid-eight,
  .dashboard-grid-five,
  .performance-kpis,
  .recall-columns,
  .crm-filters,
  .alert-grid,
  .guide-grid,
  .reason-grid {
    grid-template-columns: 1fr;
  }
  .reminder-fields {
    grid-template-columns: 1fr 1fr;
  }
  .lifecycle {
    justify-content: flex-start;
    overflow-x: auto;
  }
  .lifecycle span {
    white-space: nowrap;
  }
  .performance-funnel {
    grid-template-columns: 1fr;
  }
  .performance-funnel.five {
    grid-template-columns: 1fr;
  }
  .performance-funnel i {
    transform: rotate(90deg);
    text-align: center;
  }
  .period-selector {
    flex-wrap: wrap;
  }
  .trigger-row {
    grid-template-columns: 110px 1fr 58px;
  }
  .activity-kpis,
  .activity-columns {
    grid-template-columns: 1fr;
  }
  .section-filters.six {
    grid-template-columns: 1fr 1fr;
  }
  .recall-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .action-kpis,
  .call-schedule-overview {
    grid-template-columns: 1fr;
  }
  .call-schedule-overview > p {
    grid-column: auto;
  }
}
body.auth-pending .app {
  visibility: hidden;
}

.guide-discover {
  width: 100%; margin: 0 0 22px; padding: 20px 24px; display: flex; align-items: center;
  gap: 16px; text-align: left; color: #173d30; background: #f1f5e8;
  border: 1px solid #dbe5cf; border-left: 5px solid #e6cb69; border-radius: 14px; cursor: pointer;
}
.guide-discover > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: white; }
.guide-discover strong, .guide-discover small { display: block; }
.guide-discover strong { font-size: 18px; }
.guide-discover small { margin-top: 4px; color: #68766e; }
.guide-discover > i { margin-left: auto; font-size: 24px; font-style: normal; }
.cockpit-presentation { max-width: 1220px; }
.presentation-lead { padding: 30px; margin-bottom: 22px; border-radius: 16px; background: linear-gradient(135deg, #173d30, #315d45); color: white; }
.presentation-lead p { margin: 0 0 18px; font-size: 20px; line-height: 1.55; }
.presentation-lead strong { color: #edd77d; font-size: 22px; }
.presentation-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.presentation-blocks article { padding: 26px; border: 1px solid #e0e5df; border-radius: 16px; background: white; box-shadow: 0 8px 26px rgba(27, 55, 43, .05); }
.presentation-blocks article > span, .presentation-goal > span { color: #b2912d; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.presentation-blocks h3 { margin: 12px 0; color: #173d30; font-size: 22px; }
.presentation-blocks p { margin: 0; color: #506057; line-height: 1.65; }
.presentation-blocks strong { display: block; margin-top: 16px; padding: 14px; border-radius: 9px; background: #f1f5e8; color: #486226; line-height: 1.45; }
.presentation-goal { margin-top: 22px; padding: 30px; text-align: center; border: 1px solid #e2d488; border-radius: 16px; background: #fffbea; }
.presentation-goal p { max-width: 900px; margin: 12px auto 0; color: #173d30; font-size: 21px; font-weight: 750; line-height: 1.5; }
.user-admin-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 250px; }
.user-admin-actions .btn-ui { padding: 7px 9px; font-size: 11px; }

@media (max-width: 900px) {
  .presentation-blocks { grid-template-columns: 1fr; }
}

/* Charte officielle et comportement responsive final */
:root {
  --forest: #173f31;
  --forest2: #2c5d45;
  --cream: #f6f3e9;
  --paper: #fffefb;
  --ink: #183027;
  --muted: #6c7971;
  --line: #e5e4da;
  --soft: #f7f8f2;
  --green: #43845f;
  --green-soft: #e7f3e8;
  --red: #c45140;
  --red-soft: #fbe8e3;
  --orange: #da7b31;
  --orange-soft: #fff0df;
  --yellow: #b98b20;
  --yellow-soft: #fff4d1;
  --blue: #4b7fa2;
  --blue-soft: #e8f2f7;
  --purple: #7663a8;
  --purple-soft: #eeeaf8;
  --shadow: 0 1px 2px rgba(22, 54, 42, .04), 0 12px 32px rgba(22, 54, 42, .07);
}

html { background: var(--cream); }
body {
  background:
    radial-gradient(circle at 85% 2%, rgba(228, 203, 101, .12), transparent 24rem),
    linear-gradient(135deg, #fbfaf4 0%, var(--cream) 72%);
}
.app {
  grid-template-columns: 232px minmax(0, 1fr) !important;
  background: transparent;
}
.app:has(.detail.open):not(.team-panel-closed) {
  grid-template-columns: 232px minmax(640px, 1fr) 420px !important;
}
.sidebar {
  padding: 19px 13px 16px;
  background:
    radial-gradient(circle at 0 76%, rgba(76, 139, 93, .25), transparent 18rem),
    linear-gradient(160deg, #173f31 0%, #123629 100%);
  box-shadow: inset -1px 0 rgba(255,255,255,.06);
  z-index: 70;
}
.brand { padding: 0 8px 18px; }
.brand-mark {
  color: #173f31;
  background: linear-gradient(145deg, #f4db7b, #ddc464);
  box-shadow: 0 8px 20px rgba(8, 30, 22, .22);
}
.nav { padding: 12px 0; scrollbar-width: thin; }
.nav-label { padding-top: 11px; color: #8eafa1; }
.nav a {
  min-height: 40px;
  padding: 9px 11px;
  border-radius: 10px;
  transition: background .16s ease, transform .16s ease;
}
.nav a:hover { transform: translateX(2px); }
.nav a.active {
  color: #fff;
  background: linear-gradient(90deg, #315f47, #29543f);
  box-shadow: inset 4px 0 #ebd373, 0 7px 20px rgba(8,28,21,.18);
}
.mobile-only,
.mobile-menu,
.mobile-nav-close,
.mobile-menu-backdrop,
.mobile-row-actions { display: none; }
.workspace { min-width: 0; }
.topbar {
  height: 78px;
  padding: 0 26px;
  background: rgba(255, 254, 250, .94);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}
.title h1 { color: var(--ink); font-size: 21px; letter-spacing: -.025em; }
.synced { background: var(--green-soft); color: #2d7450; }
.content { padding: 22px 24px 34px; }
.page-shell { gap: 18px; }
.page-heading h2 { color: var(--ink); font-size: 24px; }
.page-heading p { max-width: 850px; font-size: 12px; line-height: 1.55; }
.summary-card,
.data-card,
.table-card,
.actions-card,
.recall-box,
.segment-card,
.team-member-card {
  background: rgba(255,255,253,.95);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.summary-card {
  position: relative;
  overflow: hidden;
  min-height: 98px;
  padding: 17px;
}
.summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--green);
}
.summary-card:nth-child(2)::before { background: var(--orange); }
.summary-card:nth-child(3)::before { background: var(--yellow); }
.summary-card:nth-child(4)::before { background: var(--blue); }
.summary-card:nth-child(5)::before { background: var(--purple); }
.summary-card:nth-child(6)::before { background: var(--red); }
.summary-card .label { font-size: 11px; font-weight: 720; }
.summary-card .value { color: var(--ink); font-size: 25px; }
.summary-card .hint { font-size: 10px; }
.data-card-head,
.actions-card .card-head { background: linear-gradient(180deg, #fff, #fffefb); }
.data-card-head h3,
.actions-card h2 { color: var(--ink); }
.notice-data {
  border-color: #e7dec0;
  background: #fffaf0;
  color: #716743;
}
.btn-ui,
.export,
.filter-btn,
.field,
.app-input,
.action-sort,
.period-selector {
  border-color: #dfdfd5;
  border-radius: 10px;
}
.btn-ui.primary,
.take-action {
  background: linear-gradient(145deg, #24533e, #173f31);
  border-color: #173f31;
  color: #fff;
}
.actions-card table,
.app-table { border-collapse: separate; border-spacing: 0; }
.actions-card th,
.app-table th {
  color: #5c695f;
  background: #f4f3eb;
  border-bottom-color: #dedfd7;
  font-weight: 800;
}
.actions-card td,
.app-table td { border-bottom-color: #ecece4; }
.actions-card tbody tr:hover,
.app-table tbody tr[data-client]:hover { background: #fbfaf1; }
.priority {
  min-width: 32px;
  justify-content: center;
  border: 1px solid transparent;
  box-shadow: inset 0 -1px rgba(0,0,0,.04);
}
.priority.p1 { color: #a83d30; background: #fde6e1; border-color: #f6cfc8; }
.priority.p2 { color: #b9651f; background: #ffeedc; border-color: #f5d8bb; }
.priority.p3 { color: #a77a18; background: #fff4d1; border-color: #f0e0aa; }
.priority.p4 { color: #548531; background: #edf5dd; border-color: #d9e9bd; }
.priority.p5 { color: #386f95; background: #e8f2f7; border-color: #d1e5ef; }
.priority.p6 { color: #69549b; background: #eeeaf8; border-color: #ddd4f0; }
.priority.p7 { color: #59605d; background: #eceeed; border-color: #dadeDC; }
.call-slot-badge {
  min-height: 28px;
  border: 1px solid transparent;
  font-weight: 850;
  letter-spacing: .025em;
}
.call-slot-badge.morning { color: #8a6414; background: #fff4d3; border-color: #eddda8; }
.call-slot-badge.evening { color: #4f5b95; background: #eeeffa; border-color: #d9dcf2; }
.call-slot-badge.recommended-now { box-shadow: 0 0 0 3px rgba(214, 123, 49, .13); }
.preferred-call-card { border-radius: 12px; }
.detail {
  display: none;
  min-width: 0;
  background: #fffefb;
  border-left-color: var(--line);
}
.detail.open { display: flex; }
.detail-head { background: #fffefb; }
.result-dock { background: rgba(255,254,251,.98); }
.result {
  min-height: 40px;
  border-radius: 10px;
}
.result:hover { border-color: #9eafa5; background: #f8faf6; }
.result.primary { background: linear-gradient(145deg, #2f6648, #1b4936); }

/* Actions du jour — charte colorée validée */
@media (min-width: 1025px) {
  .app { grid-template-columns: 258px minmax(0, 1fr) !important; }
  .app:has(.detail.open):not(.team-panel-closed) {
    grid-template-columns: 258px minmax(660px, 1fr) 440px !important;
  }
  .sidebar { padding-left: 17px; padding-right: 17px; }
  .brand { padding-left: 10px; }
  .nav a { min-height: 43px; font-size: 12px; }
  .help { margin: 12px 3px; }
}
.content {
  background:
    radial-gradient(circle at 8% 0, rgba(238, 215, 125, .13), transparent 22rem),
    linear-gradient(135deg, #f8f5ea 0%, #f3f5ee 100%);
}
.action-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 0;
}
.action-kpis .kpi {
  position: relative;
  min-height: 112px;
  padding: 17px 16px;
  overflow: hidden;
  border: 1px solid rgba(40, 76, 58, .09);
  box-shadow: 0 12px 30px rgba(33, 58, 45, .08);
}
.action-kpis .kpi::after {
  content: "";
  position: absolute;
  inset: auto -22px -31px auto;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: currentColor;
  opacity: .05;
}
.action-kpis .kpi-icon { width: 48px; height: 48px; }
.action-kpis .kpi strong { font-size: 27px; }
.action-kpis .kpi span { color: #405048; font-size: 11px; font-weight: 780; }
.action-kpis .kpi small { color: #748078; font-size: 9px; }
.action-kpis .action-main { color: #2e7954; background: linear-gradient(145deg, #f4fbf2, #e7f3e2); }
.action-kpis .action-main .kpi-icon { color: #397f55; background: #d6ebce; }
.action-kpis .action-morning { color: #ae8120; background: linear-gradient(145deg, #fffaf0, #fff0c7); }
.action-kpis .action-morning .kpi-icon { color: #a87810; background: #ffe8a5; }
.action-kpis .action-evening { color: #c76729; background: linear-gradient(145deg, #fff8ef, #ffe5cf); }
.action-kpis .action-evening .kpi-icon { color: #c56225; background: #ffd8bb; }
.action-kpis .action-orders { color: #397495; background: linear-gradient(145deg, #f4faff, #deeff7); }
.action-kpis .action-orders .kpi-icon { color: #397da3; background: #cfe7f3; }
.action-kpis .action-recalls { color: #7054a0; background: linear-gradient(145deg, #faf7ff, #e9e0f7); }
.action-kpis .action-recalls .kpi-icon { color: #7156a0; background: #ddd0f0; }
.action-progress {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 16px;
  margin: 0;
  padding: 11px 15px;
  border: 1px solid #e5dfca;
  border-radius: 12px;
  background: rgba(255, 252, 239, .88);
}
.progress-summary { display: flex; align-items: center; gap: 16px; color: #647169; font-size: 10px; }
.progress-summary strong { color: var(--forest); }
.call-schedule-overview { grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.15fr) minmax(220px, .72fr); gap: 13px; }
.morning-work,
.evening-window { min-height: 78px; padding: 14px 17px; border-radius: 14px; }
.morning-work { border-color: #eedb9d; background: linear-gradient(135deg, #fffaf0, #fff1c9); }
.evening-window { border-color: #efc4a1; background: linear-gradient(135deg, #fff8ef, #ffe4cc); }
.slot-symbol {
  display: grid;
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 50%;
  color: #9c7113;
  background: #ffe39a;
  font-size: 16px;
  font-weight: 900;
}
.evening-window .slot-symbol { color: #ad5720; background: #ffcfae; font-size: 12px; }
.morning-work span:not(.slot-symbol),
.evening-window span:not(.slot-symbol) { color: #7b6640; font-size: 10px; font-weight: 850; letter-spacing: .04em; }
.morning-work strong,
.evening-window strong { color: #263d32; font-size: 15px; }
.call-slot-toolbar { align-items: stretch; padding: 4px 18px 14px; }
.call-slot-filter { display: grid; grid-template-columns: .72fr 1fr 1.12fr; width: min(720px, 100%); padding: 6px; background: #f6f2e6; }
.call-slot-filter > button { display: grid; align-content: center; min-width: 0; height: 54px; padding: 6px 15px; text-align: left; }
.call-slot-filter > button strong,
.call-slot-filter > button small { display: block; }
.call-slot-filter > button strong { font-size: 11px; }
.call-slot-filter > button small { margin-top: 3px; font-size: 8px; opacity: .74; }
.call-slot-filter > button.active { color: #fff; background: var(--forest); box-shadow: 0 6px 14px rgba(23, 63, 49, .18); }
.call-slot-filter > .morning-slot.active { color: #75530b; background: #f6d66b; }
.call-slot-filter > .evening-slot.active { color: #fff; background: #d87332; }
.actions-card { border-color: #dddccf; }
.actions-card .card-head { padding: 20px 20px 15px; background: linear-gradient(180deg, #fffefb, #fbf8ee); }
.actions-card .filters { padding: 0 20px 17px; }
.actions-card table {
  width: 100%;
  min-width: 1060px;
  table-layout: fixed;
}
.actions-card th:nth-child(1) { width: 56px; }
.actions-card th:nth-child(2) { width: 94px; }
.actions-card th:nth-child(3) { width: 145px; }
.actions-card th:nth-child(4) { width: 102px; }
.actions-card th:nth-child(5) { width: 122px; }
.actions-card th:nth-child(6) { width: 90px; }
.actions-card th:nth-child(7) { width: 68px; }
.actions-card th:nth-child(8) { width: 150px; }
.actions-card th:nth-child(9) { width: 128px; }
.actions-card th:nth-child(10) { width: 142px; }
.actions-card th:nth-child(11) { width: 28px; }
.actions-card td { overflow-wrap: anywhere; }
.actions-card th { padding-top: 13px; padding-bottom: 13px; background: #eeeade; color: #45574d; }
.actions-card td { padding-top: 14px; padding-bottom: 14px; }
.actions-card tbody tr:nth-child(even) { background: #fffefa; }
.actions-card tbody tr:hover { background: #f7f6e9; }
.client-segments { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 5px; }
.segment-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 99px;
  font-size: 8px;
  font-weight: 820;
  line-height: 1.15;
}
.segment-badge.segment-1 { color: #397451; background: #e6f3df; border-color: #d0e7c6; }
.segment-badge.segment-2 { color: #477793; background: #e5f1f7; border-color: #cfe4ee; }
.segment-badge.segment-3 { color: #67539a; background: #eee8f7; border-color: #ddd2ee; }
.segment-badge.segment-4 { color: #836314; background: #fff1c8; border-color: #ecdda7; }
.segment-badge.segment-5 { color: #3d7651; background: #e2f1dd; border-color: #cbe3c2; }
.segment-badge.segment-6 { color: #a45133; background: #fbe7dd; border-color: #f0cfc0; }
.segment-badge.segment-7 { color: #66716b; background: #ecefed; border-color: #dfe4e1; }
.segment-badge.segment-8,
.segment-badge.top-client { color: #8e6820; background: #fff1c7; border-color: #ead697; }
.priority { min-width: 37px; min-height: 32px; border-radius: 9px; font-size: 11px; font-weight: 900; }
.priority.p4 { color: #356f9e; background: #e4f0f8; border-color: #c9e0ee; }
.priority.p5 { color: #427d54; background: #e6f2e2; border-color: #d0e5ca; }
.priority.p6 { color: #69549b; background: #eee6f8; border-color: #ddd0ef; }
.priority.p7 { color: #59605d; background: #eceeed; border-color: #dadddc; }
.call-slot-badge.morning { color: #8a6414; background: #fff1c2; border-color: #e8d28e; }
.call-slot-badge.evening { color: #a9541f; background: #ffe3cd; border-color: #efc4a4; }
.take-action { min-height: 31px; padding: 6px 10px; border-radius: 8px; box-shadow: 0 5px 12px rgba(23, 63, 49, .14); }
.detail { background: #fffdf7; }
.detail-head { background: linear-gradient(180deg, #fff9e9, #fffdf7); }
.detail-badges { gap: 5px; }
.reason { border-color: #efcbc0; background: linear-gradient(135deg, #fff5ee, #fbe7df); }
.reason-head { color: #a54e35; }
.preferred-call-card.evening { border-color: #edbd98; background: linear-gradient(135deg, #fff3e6, #ffe1ca); color: #9d4f1d; }
.preferred-call-card.morning { border-color: #ead593; background: linear-gradient(135deg, #fff9e7, #ffedb7); color: #88630f; }
.metric:nth-child(3n+1) { background: #f0f6e9; }
.metric:nth-child(3n+2) { background: #fff4dc; }
.metric:nth-child(3n) { background: #edf4f8; }
.result:nth-child(2) { color: #8e6719; background: #fff3ce; border-color: #ead99e; }
.result:nth-child(3) { color: #3f6f96; background: #e9f1f8; border-color: #cfdfeb; }
.result:nth-child(4) { color: #8b6414; background: #fff5d8; border-color: #ebdda9; }
.result:nth-child(5) { color: #a45332; background: #fbe9df; border-color: #efcfbf; }
.result:nth-child(6) { color: #68529a; background: #eee8f7; border-color: #dcd1ed; }

@media (max-width: 1320px) {
  .app,
  .app:has(.detail.open):not(.team-panel-closed) {
    grid-template-columns: 258px minmax(0, 1fr) !important;
  }
  .detail,
  .detail.open {
    display: flex;
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 90;
    width: min(440px, calc(100vw - 258px));
    transform: translateX(105%);
    transition: transform .22s ease;
    box-shadow: -20px 0 50px rgba(18, 47, 37, .18);
  }
  .detail.open { transform: none; }
}

@media (max-width: 1024px) and (min-width: 761px) {
  .app,
  .app:has(.detail.open):not(.team-panel-closed) { grid-template-columns: 76px minmax(0, 1fr) !important; }
  .sidebar { padding: 18px 10px; }
  .brand div:last-child,
  .nav-label,
  .nav a span,
  .help,
  .logout span { display: none; }
  .nav a { justify-content: center; padding: 11px; }
  .detail,
  .detail.open { width: min(430px, calc(100vw - 76px)); }
  .action-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .call-schedule-overview { grid-template-columns: 1fr 1fr; }
  .call-schedule-overview > p { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 760px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  body:has(.sidebar.mobile-open) { overflow: hidden; }
  .app,
  .app.team-page,
  .app.team-page.team-panel-closed,
  .app:has(.detail.open):not(.team-panel-closed) { display: block !important; min-height: 100dvh; }
  .sidebar {
    display: flex !important;
    position: fixed !important;
    inset: 0 auto 0 0;
    z-index: 120;
    width: min(306px, 86vw) !important;
    height: 100dvh;
    padding: 16px 13px;
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: 20px 0 50px rgba(8, 28, 21, .24);
  }
  .sidebar.mobile-open { z-index: 120; transform: translateX(0); }
  .sidebar .brand div:last-child,
  .sidebar .nav-label,
  .sidebar .nav a span,
  .sidebar .help,
  .sidebar .logout span { display: block; }
  .sidebar .nav a { justify-content: flex-start; }
  .mobile-only { display: flex !important; }
  .mobile-nav-close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 17px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    color: #fff;
    background: rgba(255,255,255,.08);
    font-size: 22px;
  }
  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 115;
    pointer-events: none;
    opacity: 0;
    background: rgba(10, 29, 22, .48);
    transition: opacity .2s ease;
  }
  body:has(.sidebar.mobile-open) .mobile-menu-backdrop { pointer-events: auto; opacity: 1; }
  .workspace { width: 100%; }
  .topbar {
    height: 66px;
    padding: 0 12px;
    gap: 9px;
  }
  .mobile-menu {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #dcded5;
    background: #fffefb;
    color: var(--forest);
    font-size: 12px;
  }
  .title { min-width: 0; margin-right: auto; }
  .title h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
  .title p { font-size: 10px; }
  .top-meta { gap: 7px; }
  .top-meta .snapshot { display: none; }
  .synced { width: 10px; height: 10px; min-width: 10px; padding: 0; overflow: hidden; font-size: 0; }
  .user { padding-left: 7px; }
  .user > div:last-child { display: none; }
  .avatar { width: 34px; height: 34px; }
  .content { width: 100%; padding: 14px 12px 28px; }
  .page-shell { gap: 14px; }
  .page-heading { gap: 10px; }
  .page-heading h2 { font-size: 22px; }
  .page-heading p { font-size: 11px; }
  .page-actions { width: 100%; flex-wrap: wrap; }
  .btn-ui { min-height: 42px; height: auto; }
  .dashboard-grid,
  .dashboard-grid-eight,
  .dashboard-grid-five,
  .performance-kpis,
  .action-kpis,
  .call-schedule-overview { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .summary-card { min-height: 91px; padding: 14px 12px; }
  .summary-card .label { font-size: 10px; }
  .summary-card .value { font-size: 22px; }
  .action-progress { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
  .action-progress .progress-summary { grid-column: 1 / -1; flex-wrap: wrap; gap: 6px 12px; }
  .call-schedule-overview { grid-template-columns: 1fr; }
  .call-schedule-overview > p { grid-column: auto; }
  .two-columns,
  .three-columns,
  .settings-grid,
  .motif-groups,
  .activity-columns,
  .recall-columns,
  .crm-filters,
  .alert-grid,
  .guide-grid,
  .reason-grid { grid-template-columns: 1fr !important; }
  .segment-grid,
  .team-kpis,
  .team-overview { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .recall-grid { grid-template-columns: 1fr 1fr; }
  .section-filters,
  .section-filters.five,
  .section-filters.six,
  .filters { grid-template-columns: 1fr !important; }
  .filters .field:first-child { grid-column: auto; }
  .app-input,
  .field,
  .filter-btn,
  .action-sort { min-height: 44px; }
  .call-slot-toolbar { gap: 10px; }
  .call-slot-filter { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; padding: 4px; }
  .call-slot-filter button { min-height: 42px; padding: 7px 5px; font-size: 10px; line-height: 1.2; }
  .action-sort { width: 100%; padding: 0 10px; }
  .action-sort select { flex: 1; }
  .actions-card { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .actions-card .card-head { padding: 14px; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
  .actions-card .card-head .export { display: none; }
  .actions-card .filters { margin: 10px 0; padding: 0; background: transparent; border: 0; }
  .actions-card .table-wrap,
  .table-card,
  .table-scroll { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .actions-card table,
  .app-table { display: block; min-width: 0 !important; width: 100%; }
  .actions-card thead,
  .app-table thead { display: none; }
  .actions-card tbody,
  .app-table tbody { display: grid; gap: 10px; width: 100%; }
  .actions-card tbody tr,
  .app-table tbody tr {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 7px 10px;
    width: 100%;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fffefb;
    box-shadow: var(--shadow);
  }
  .actions-card tbody tr.selected,
  .app-table tbody tr.selected { border-color: #78a288; box-shadow: 0 0 0 2px rgba(67,132,95,.13), var(--shadow); }
  .actions-card tbody td,
  .app-table tbody td {
    display: grid !important;
    grid-template-columns: 116px minmax(0,1fr);
    align-items: start;
    gap: 8px;
    width: 100% !important;
    max-width: none !important;
    padding: 3px 0 !important;
    border: 0 !important;
    white-space: normal !important;
    text-align: left !important;
    font-size: 11px;
  }
  .actions-card tbody td::before,
  .app-table tbody td::before {
    content: attr(data-label);
    color: #78847c;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  .actions-card tbody td:nth-child(1),
  .actions-card tbody td:nth-child(2) {
    display: inline-flex !important;
    grid-template-columns: none;
    align-items: center;
    width: auto !important;
    grid-row: 1;
  }
  .actions-card tbody td:nth-child(1) { grid-column: 1; }
  .actions-card tbody td:nth-child(2) { grid-column: 2; justify-self: end; }
  .actions-card tbody td:nth-child(1)::before,
  .actions-card tbody td:nth-child(2)::before,
  .actions-card tbody td:nth-child(11)::before { display: none; }
  .actions-card tbody td:nth-child(n+3) { grid-column: 1 / -1; }
  .actions-card tbody td:nth-child(3) {
    display: block !important;
    padding: 5px 0 8px !important;
    border-bottom: 1px solid #ecece4 !important;
  }
  .actions-card tbody td:nth-child(3)::before { display: none; }
  .actions-card .client-name { font-size: 17px; color: var(--ink); }
  .actions-card .sub { margin-top: 2px; }
  .actions-card tbody td:nth-child(10) .take-action { display: none; }
  .actions-card tbody td:nth-child(11) { display: block !important; padding-top: 8px !important; }
  .actions-card tbody td:nth-child(11) > span { display: none; }
  .mobile-row-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .mobile-row-actions a,
  .mobile-row-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 46px;
    padding: 7px;
    border: 1px solid #d7ddd8;
    border-radius: 10px;
    color: var(--forest);
    background: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 10px;
    font-weight: 800;
  }
  .mobile-row-actions a:first-child { color: #fff; background: var(--forest); border-color: var(--forest); }
  .mobile-row-actions .icon { width: 15px; height: 15px; }
  .app-table tbody td:first-child { font-size: 14px; font-weight: 750; }
  .app-table tbody .empty-data { display: block !important; grid-column: 1/-1; padding: 20px !important; }
  .app-table tbody .empty-data::before { display: none; }
  .recall-box { min-height: 108px; }
  .reminder-fields { grid-template-columns: 1fr; }
  .chart-row { grid-template-columns: 96px minmax(0,1fr) 38px; }
  .trigger-row { grid-template-columns: 92px minmax(0,1fr) 48px; }
  .detail,
  .detail.open,
  .app.team-page .team-member-detail {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 140;
    width: 100vw !important;
    max-width: none;
    height: 100dvh;
    transform: translateX(105%);
    transition: transform .22s ease;
    border: 0;
    background: #fffefb;
  }
  .detail.open,
  .app.team-page:not(.team-panel-closed) .team-member-detail { transform: translateX(0); }
  .app.team-page.team-panel-closed .team-member-detail { transform: translateX(105%); }
  .detail-head { min-height: 68px; padding: 16px; }
  .detail-scroll { padding: 16px 15px 190px; }
  .detail-name { font-size: 23px; }
  .contact-row { min-height: 52px; }
  .contact-row {
    width: 100%;
    grid-template-columns: 22px minmax(0, 1fr) auto;
  }
  .contact-row span { min-width: 0; }
  .contact-row:first-child .mini-btn { min-height: 42px; padding: 0 16px; color: #fff; background: var(--forest); border-color: var(--forest); }
  .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .metric { min-height: 72px; padding: 11px; }
  .reason { padding: 14px; }
  .result-dock {
    position: absolute;
    inset: auto 0 0;
    max-height: 45dvh;
    overflow-y: auto;
    padding: 12px 14px max(14px, env(safe-area-inset-bottom));
    box-shadow: 0 -12px 34px rgba(18, 47, 37, .15);
  }
  .note { min-height: 46px; }
  .result-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .result { min-height: 52px; padding: 10px 7px; font-size: 11px; }
  .guide-discover { padding: 16px; }
  .presentation-lead { padding: 22px; }
  .presentation-lead p { font-size: 17px; }
  .presentation-goal { padding: 22px 16px; }
  .presentation-goal p { font-size: 18px; }
}

@media (max-width: 390px) {
  .content { padding-left: 9px; padding-right: 9px; }
  .topbar { padding-left: 9px; padding-right: 9px; }
  .mobile-menu { padding: 0 9px; }
  .mobile-row-actions { grid-template-columns: 1fr 1fr; }
  .mobile-row-actions a:first-child { grid-column: 1 / -1; }
  .result-grid { gap: 7px; }
}
