@media (max-width:640px) {
  .alert-item {
    flex-wrap: wrap;
  }
  .alert-body {
    min-width: 0;
    flex: 1 1 60%;
  }
}
.alert-item {
  display: flex;
}
.alert-dot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alert-dot svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.alert-body b {
  display: block;
}
.alert-time {
  margin-left: auto;
  flex: none;
}
.al-count {
  min-width: 16px;
  margin-left: 4px;
  font-size: 10.5px;
  color: var(--text-muted);
}
.al-count:empty {
  display: none;
}
.al-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: -4px 0 14px;
}
.al-toolbar:has(> [hidden]:first-child + [hidden]) {
  display: none;
}
.al-chips {
  flex-wrap: wrap;
  gap: 6px;
}
.al-chip {
  transition: background 140ms var(--ease-out), border-color 140ms var(--ease-out), color 140ms var(--ease-out);
}
.al-chip b {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
}
.al-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sev);
}
.al-chip.active b {
  color: var(--text-primary);
}
.al-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex: none;
}
.al-list {
  position: relative;
}
.al-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}
.al-row.sev-critical::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--sev);
}
.al-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.al-ico svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.al-main {
  flex: 1;
  min-width: 0;
}
.al-msg {
  text-wrap: pretty;
}
.al-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.al-empty {
  text-align: center;
  padding: 56px 40px;
}
.al-empty-ico {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.al-empty-ico svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}
.al-empty h3 {
  margin-bottom: 8px;
}
.al-empty .sub {
  max-width: 380px;
  margin: 0 auto;
  font-size: 12.5px;
}
.al-empty .btn {
  margin-top: 18px;
}
@media (max-width:640px) {
  .al-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .al-actions {
    width: 100%;
  }
}
.alert-body span {
  line-height: 1.45;
}
.alert-time {
  white-space: nowrap;
}
@media (max-width: 767px) {
  .al-actions {
    padding-left: 0 !important;
    justify-content: stretch;
  }
  .al-actions .al-btn {
    flex: 1 1 0;
    justify-content: center;
  }
}
.alert-item,
.wd-list > .alert-item,
#homeAlertsList .alert-item {
  align-items: center;
  gap: 12px;
  border: 0;
  margin-bottom: 8px;
}
.alert-item:last-child {
  margin-bottom: 0;
}
.alert-item .alert-body {
  min-width: 0;
}
.alert-item .alert-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  align-self: center;
}
.al-objet {
  margin-top: 4px;
}
.al-notes summary {
  cursor: pointer;
  width: max-content;
  list-style: none;
  color: var(--text-muted);
}
.al-notes summary::-webkit-details-marker {
  display: none;
}
.al-notes summary::after {
  content: "›";
  display: inline-block;
  margin-left: 5px;
  transition: transform .15s;
}
.al-notes[open] summary::after {
  transform: rotate(90deg);
}
.al-notes summary:hover {
  color: var(--text-secondary);
}
.al-notes ul {
  margin: 6px 0 0;
  padding-left: 16px;
  display: grid;
  gap: 2px;
}
.al-msg .al-age:not(.al-age-rouge):not(.al-age-orange) {
  color: var(--text-muted);
}
.al-objet .lien-tel {
  color: var(--text-secondary);
}
.al-notes {
  margin-top: 4px;
}
#demSub:empty {
  display: none;
}
.al-tel {
  flex: none;
  width: 148px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
}
.al-tel svg {
  width: 14px;
  height: 14px;
  flex: none;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.al-tel > span {
  color: var(--text-muted);
  font-weight: 400;
}
@media (max-width:640px) {
  .al-tel {
    width: calc(100% - 46px);
    margin: -4px 0 0 46px;
  }
}
.alert-item,
.al-row {
  padding: 10px 8px;
  transition: background 120ms ease;
}
.alert-dot,
.al-ico {
  width: 28px;
  height: 28px;
}
.alert-dot svg,
.al-ico svg {
  width: 14px;
  height: 14px;
}
.alert-body b,
.al-msg {
  font: 500 13px/1.35 var(--ds-font);
}
.alert-body span,
.al-objet,
.al-notes {
  font-size: 12.5px;
  color: var(--ds-text-2);
}
.alert-time,
.al-age {
  font: 400 12px var(--ds-font);
  color: var(--ds-text-3);
}
.al-empty,
.empty-inline,
.a21-vide {
  color: var(--ds-text-3);
}
.al-empty-ico {
  border-radius: var(--ds-r);
}
.al-msg .al-age {
  margin-left: 8px;
}
.alert-item {
  background: transparent;
}
.alert-item:hover {
  background: var(--ds-hover);
}
.alert-item,
.al-row,
.a21-ligne,
.a21-srv {
  border: 0;
  border-radius: var(--ds-r);
}
html:root body #page-root .al-objet .bd {
  width: fit-content;
  margin: 4px 0 0 !important;
}
#page-root .alert-item[data-aller] {
  position: relative;
  padding-right: 26px;
}
#page-root .alert-item[data-aller]::after {
  content: "›";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font: 400 18px/1 var(--ds-font);
  color: var(--ds-text-3);
  transition: transform 160ms ease, color 160ms ease;
}
#page-root .alert-item[data-aller]:hover::after {
  color: var(--ds-text);
  transform: translate(3px, -50%);
}
html:root:root body #page-root#page-root .al-objet .bd {
  margin-left: 8px !important;
}

/* Peaufinage 21/11 soir */
.al-rappeler {
  text-decoration: none;
  color: #3B82F6 !important;
}
.al-rappeler svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
@media (max-width: 640px) {
  #page-root .al-row .al-ico {
    display: none;
  }
  #page-root .al-row .al-tel {
    width: 100%;
    margin: 0;
  }
}

/* Peaufinage 22/11 : Rappeler en noir (action principale), lignes séparées */
html:root body #page-root .al-rappeler.btn-primary {
  color: var(--bg-surface, #fff) !important;
  background: var(--ds-text, #18181b) !important;
  border-color: var(--ds-text, #18181b) !important;
}
html:root body #page-root .al-rappeler.btn-primary:hover { opacity: .88; }
html:root body #page-root #demListe .al-row + .al-row { border-top: 1px solid var(--ds-border) !important; }
html:root body #page-root #demListe .al-row { align-items: center; }
