/* Les sélecteurs de thème sont limités à la racine ; les boutons de choix ne changent pas les variables. */
.material-visual {
  height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.material-visual img {
  display: block;
  flex: 0 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  padding: 12px;
  box-sizing: border-box;
}
.equipment-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 43px 16px 10px;
}
.equipment-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.notification-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.notification-rule p {
  font-size: 12px;
  line-height: 1.7;
}
.recipient-options {
  margin-top: 10px;
  display: grid;
  gap: 3px;
}
.recipient-options .checkbox-label {
  font-size: 12px;
}
.notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 9px;
  height: 9px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
}
.topbar .icon-btn.notification-button {
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 44px;
  min-height: 44px;
}
.topbar [data-action="notifications"] {
  position: relative;
}
.danger {
  color: var(--red);
}
.modal-footer {
  flex-wrap: wrap;
}
.notification-rule h3 {
  line-height: 1.5;
}
.notification-rule h4 {
  font-size: 12px;
}
@media (max-width: 1000px) {
  .notification-rules {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .material-visual {
    height: 145px;
  }
  .material-visual img {
    padding: 8px;
  }
  .equipment-photo {
    padding: 36px 12px 8px;
  }
  .notification-rules {
    grid-template-columns: 1fr;
  }
  .notification-rule .row.between {
    align-items: flex-start;
  }
  .notification-rule > .row > .checkbox-label {
    flex-shrink: 0;
  }
  .modal-footer .btn {
    font-size: 12px;
  }
}
html .btn.text-btn:where(:not(.secondary):not(.soft):not(.green)) {
  background: transparent;
  color: var(--muted);
  border: 0;
  box-shadow: none;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 550;
}
html .btn.text-btn.danger {
  min-height: 45px;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 650;
  gap: 8px;
}
.btn.danger .icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.unit-label {
  display: grid;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.unit-label .unit-input {
  color: var(--text);
  font-weight: 400;
}
@media (max-width: 700px) {
  .unit-label {
    font-size: 12px;
  }
}
