/* Logistique DUO 3.4 — écrans UL (vue d'ensemble, matériel, armoire, véhicules, réglages, notifications). */

/* =============================================================== Utilitaires communs UL */
.ok-text {
  color: var(--green);
}
.warn-text {
  color: var(--amber);
}
.danger-text {
  color: var(--red);
}
html .back-link:is([href^="#lots"], [href^="#equipment"], [href="#terrain-material"]) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}
html .back-link:is([href^="#lots"], [href^="#equipment"], [href="#terrain-material"]):hover {
  color: var(--text);
}
html .back-link:is([href^="#lots"], [href^="#equipment"], [href="#terrain-material"]) .icon {
  width: 15px;
  height: 15px;
}
/* Panneaux à en-tête : le contenu va jusqu'au bord. */
html .ul-dashboard .panel,
html .equipment-contents,
html .lot-bag-panel {
  padding: 0;
  overflow: hidden;
}
html .ul-dashboard .ds-panel-h h2,
html .equipment-contents .ds-panel-h h2,
html .lot-bag-panel .ds-panel-h h2 {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.3;
}
.ds-thumb.sm {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.ds-thumb.sm img {
  padding: 2px;
}
.ds-thumb.is-icon,
.lot-bag-img.is-icon {
  color: var(--hue);
  background: color-mix(in srgb, var(--hue) 12%, var(--surface));
}
.ds-thumb.is-icon .icon {
  width: 20px;
  height: 20px;
}
.ds-thumb.sm.is-icon .icon {
  width: 16px;
  height: 16px;
}
html .ul-dashboard .ds-empty,
html .equipment-contents .ds-empty,
html .lot-bag-panel .ds-empty {
  margin: 0;
  font-size: 13px;
}
.ul-dashboard .ds-ring.sm b {
  font-size: 0;
}

/* =============================================================== Vue d'ensemble */
.ul-dashboard-hero {
  --hero: linear-gradient(115deg, #1f2b38 0%, #2d3e52 50%, #8e1b2b 135%);
  --hero-ink: #1f2b38;
  margin-bottom: 18px;
}
html .ul-dashboard-hero .btn.ds-hero-btn:hover {
  background: #f1f3f6;
}
.ul-dashboard-tiles {
  margin-bottom: 18px;
}
.ul-dashboard .ds-tile {
  align-items: center;
}
.ul-dashboard .ds-tile .ds-pill,
.stock-tiles .ds-tile .ds-pill {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.ul-dashboard .ds-tile .ds-pill .icon,
.stock-tiles .ds-tile .ds-pill .icon {
  width: 20px;
  height: 20px;
}
.ul-dashboard .ds-panel-h > div {
  min-width: 0;
}
.ul-dashboard .ds-panel-h .ds-right {
  flex: none;
}
.ul-dashboard .ds-row-main > small {
  margin-top: 1px;
}
.ul-dashboard .ds-row-end > span:not(.ds-chip):not(.ds-ring) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ul-dashboard .ds-row {
  min-height: 60px;
}
.ul-vehicle-thumb img {
  object-fit: cover;
  padding: 0;
}
.ul-check-history {
  margin: 0;
}
.ul-check-history .ds-row {
  padding-left: 4px;
  padding-right: 4px;
}
.ul-check-history .ds-row:last-child {
  border-bottom: 1px solid var(--line);
}

/* =============================================================== Matériel : lots */
.lot-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.lot-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}
.lot-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.lot-card > .lot-collage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 128px;
  margin: 0;
  padding: 12px 18px 0;
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--c-materiel) 16%, var(--surface)),
    var(--surface2) 80%
  );
  border-bottom: 1px solid var(--line);
}
.lot-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 16px;
  flex: 1;
}
.lot-card-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
html .lot-card h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.lot-card h2 a {
  color: var(--text);
  text-decoration: none;
}
.lot-card h2 a:hover {
  text-decoration: underline;
}
.lot-meta {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.lot-card-units {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lot-card-units > span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
}
.lot-card-units > span > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lot-card-more,
.lot-card-none {
  color: var(--muted);
  font-size: 12.5px;
  padding-left: 42px;
}
.lot-card-none {
  padding-left: 0;
}
.lot-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.lot-card-status {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
html .lot-card > .lot-collage > span {
  position: static;
  width: auto;
  height: 104px;
  flex: 0 1 34%;
  min-width: 0;
}
html .lot-card > .lot-collage > span:nth-child(1) {
  height: 112px;
  flex-basis: 38%;
}
html .lot-card > .lot-collage > span:nth-child(2) {
  height: 92px;
}
html .lot-card > .lot-collage > span:nth-child(3) {
  height: 84px;
}
html .lot-card > .lot-collage > .lot-collage-empty {
  align-self: center;
  flex-basis: 100%;
  height: auto;
}
.lot-new-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 240px;
  border: 2px dashed var(--line);
  border-radius: var(--r);
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.lot-new-card:hover {
  border-color: var(--c-materiel);
  background: color-mix(in srgb, var(--c-materiel) 5%, transparent);
}
.lot-new-card .ds-pill {
  margin-bottom: 4px;
}
.lot-new-card small {
  color: var(--muted);
}

/* Collage d'illustrations des sacs (cartes et bandeau du lot). */
.lot-collage {
  position: relative;
  height: 150px;
}
.lot-collage > span {
  position: absolute;
  display: block;
}
.lot-collage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.16));
}
.lot-collage > span:nth-child(1) {
  left: 6%;
  top: 6%;
  width: 46%;
  height: 88%;
  z-index: 2;
}
.lot-collage > span:nth-child(2) {
  right: 12%;
  top: 6%;
  width: 34%;
  height: 58%;
}
.lot-collage > span:nth-child(3) {
  right: 4%;
  bottom: 6%;
  width: 32%;
  height: 52%;
  z-index: 3;
}
.lot-collage[data-count="1"] > span:nth-child(1) {
  left: 20%;
  width: 60%;
}
.lot-collage[data-count="2"] > span:nth-child(2) {
  top: auto;
  bottom: 6%;
  height: 70%;
}
.lot-collage > .lot-collage-empty {
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--c-materiel);
}
.lot-collage-empty .icon {
  width: 44px;
  height: 44px;
  opacity: 0.55;
}

/* Bandeau du lot */
html .lot-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--c-materiel) 14%, var(--surface)),
    var(--surface) 65%
  );
  box-shadow: var(--shadow);
}
html .lot-hero-info h1 {
  margin: 10px 0 4px;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.lot-hero-info p {
  margin: 0;
  color: var(--muted);
}
.lot-hero-info p b {
  color: var(--text);
}
.lot-stats,
.equipment-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  max-width: 640px;
}
.equipment-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 480px;
}
.lot-stats > div,
.equipment-stats > div {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
}
.lot-stats small,
.equipment-stats small {
  overflow-wrap: anywhere;
}
.lot-stats b,
.equipment-stats b {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 18px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.lot-stats b .icon,
.equipment-stats b .icon {
  width: 16px;
  height: 16px;
}
.lot-stats small,
.equipment-stats small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 2px;
}
.lot-hero-actions,
.equipment-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
}
.lot-layout {
  margin-top: 20px;
  align-items: start;
}
html .lot-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 16px;
}
.lot-section-count {
  color: var(--faint);
  font-weight: 600;
  font-size: 13px;
}
.lot-bags {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lot-bag {
  display: flex;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.lot-bag:hover {
  box-shadow: var(--shadow);
}
.lot-bag.sel {
  border-color: var(--c-materiel);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-materiel) 14%, transparent);
}
.lot-bag-img {
  --hue: var(--c-materiel);
  width: 84px;
  height: 84px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--c-materiel) 12%, var(--surface)),
    var(--surface2)
  );
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
}
.lot-bag-img img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12));
}
.lot-bag-img .icon {
  width: 30px;
  height: 30px;
}
.lot-bag-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lot-bag-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lot-bag-title b {
  font-size: 15px;
}
.lot-bag-ref {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--side);
  color: #fff;
}
html[data-theme="dark"] .lot-bag-ref {
  background: var(--surface2);
  color: var(--text);
}
.lot-bag-main > small {
  color: var(--muted);
  font-size: 12px;
}
.lot-bag-meter {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lot-bag-meter .ds-bar {
  flex: 1;
  max-width: 220px;
  height: 6px;
}
.lot-bag-meter small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.lot-bag-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.lot-bag-chips:empty {
  display: none;
}
.lot-bag .ds-chev {
  flex: none;
}
.lot-panel-sub {
  padding-bottom: 6px;
}
html .lot-panel-sub h3 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.lot-panel-foot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.lot-bag-panel .ds-panel-h .ds-thumb {
  width: 44px;
  height: 44px;
}
.lot-bag-panel .ds-panel-h .icon-btn {
  text-decoration: none;
}

/* Lignes de contenu d'un sac */
.content-rows .content-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
}
.content-row .ds-row-main > b {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13.5px;
  line-height: 1.35;
}
.content-row .ds-row-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.content-row .ds-row-end .ds-chip {
  white-space: nowrap;
}
.content-row .content-date-link {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
}
.content-summary {
  padding-bottom: 4px;
}
.content-more {
  border-top: 1px solid var(--line);
}
.content-more > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  cursor: pointer;
  list-style: none;
  color: var(--active-text);
  font-size: 13.5px;
  font-weight: 600;
}
.content-more > summary::-webkit-details-marker {
  display: none;
}
.content-more > summary::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s;
}
.content-more[open] > summary::before {
  transform: rotate(45deg);
}
.content-more > .content-rows {
  max-height: 420px;
  overflow: auto;
  border-top: 1px solid var(--line);
}
.content-row .ds-row-main > small {
  white-space: normal;
}
.content-row .ds-row-end {
  align-self: center;
}
.content-row .material-origins {
  margin: 2px 0 0;
  font-size: 12px;
}
.content-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
  background: var(--surface2);
  color: var(--muted);
}
.content-dot .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.6;
}
.content-dot.ok {
  background: var(--green-soft);
  color: var(--green);
}
.content-dot.warn {
  background: var(--amber-soft);
  color: var(--amber);
}
html .content-date-link {
  width: 32px;
  height: 32px;
}
html .content-date-link .icon {
  width: 16px;
  height: 16px;
}

/* Fiche d'un sac ou équipement */
html .equipment-hero {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px;
  border-radius: 20px;
  margin-bottom: 18px;
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--c-materiel) 12%, var(--surface)),
    var(--surface) 65%
  );
  box-shadow: var(--shadow);
}
.equipment-hero-visual {
  height: 170px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  overflow: hidden;
}
html .equipment-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.14));
}
.equipment-hero-visual .material-placeholder-v7 {
  color: var(--c-materiel);
}
html .equipment-hero-info h1 {
  margin: 10px 0 6px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.equipment-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13.5px;
}
.equipment-facts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.equipment-facts .icon {
  width: 15px;
  height: 15px;
  color: var(--faint);
}
.equipment-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  white-space: pre-line;
}

/* =============================================================== Armoire */
.stock-heading-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
html .page-heading:has(.stock-heading-actions) > .page-heading-copy {
  flex: 1 1 320px;
  min-width: 0;
}
.stock-tiles {
  margin-bottom: 16px;
}
.stock-tile {
  align-items: center;
}
html .stock-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
#stock-filter-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
html .stock-select {
  position: relative;
  display: block;
  margin: 0;
}
html .stock-select select.input {
  min-height: 40px;
  height: 40px;
  padding: 0 34px 0 13px;
  font-size: 13.5px;
  font-weight: 600;
  max-width: 260px;
  cursor: pointer;
}
html .stock-select.is-set select.input {
  border-color: color-mix(in srgb, var(--c-armoire) 45%, var(--line));
  background-color: color-mix(in srgb, var(--c-armoire) 8%, var(--surface));
  color: var(--c-armoire);
}
html .stock-reset {
  font-size: 13px;
  white-space: nowrap;
}
.stock-filter-line {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  min-width: 0;
}
html .stock-search {
  flex: 1 1 240px;
  max-width: 380px;
}
#stock-nature {
  min-width: 0;
  max-width: 100%;
}
html .stock-search .input {
  margin: 0;
  min-height: 42px;
}
html .stock-count {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 12.5px;
}
.stock-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
html .stock-group {
  padding: 0;
}
html .stock-group-title {
  position: sticky;
  top: var(--ul-sticky-top, 64px);
  z-index: 3;
  margin: 0;
  font-size: inherit;
}
.stock-group-h {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 8px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r) var(--r) 0 0;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.stock-group.is-collapsed .stock-group-h {
  border-bottom-color: transparent;
  border-radius: var(--r);
}
.stock-group-h:hover {
  background: var(--surface2);
}
.stock-group-name {
  font-size: 14.5px;
  font-weight: 700;
  min-width: 0;
}
.stock-group-count {
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.stock-group-alert {
  margin-left: 4px;
}
.stock-group-chev {
  margin-left: auto;
  width: 18px;
  height: 18px;
  color: var(--faint);
  transition: transform 0.15s;
}
.stock-group.is-collapsed .stock-group-chev {
  transform: rotate(-90deg);
}
/* Ligne d'armoire : visuel, désignation, rangement, quantité, état, actions.
   Toute la ligne ouvre la fiche ; un seul signal d'état (pastille, seulement s'il y a un problème). */
.stock-line {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 104px 200px 184px;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.stock-group-rows .stock-line:first-child {
  border-top: 0;
}
.stock-line:hover {
  background: color-mix(in srgb, var(--surface2) 60%, var(--surface));
}
.stock-group-rows > .stock-line:last-child {
  border-radius: 0 0 var(--r) var(--r);
}
.stock-line-visual.ds-pill,
.stock-line-visual.ds-thumb {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.stock-line-visual.ds-thumb img {
  padding: 2px;
}
.stock-line-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}
html .stock-line-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
.stock-line-name:hover {
  color: var(--active-text);
}
.stock-line-meta,
html .stock-line .dt-stock-meta {
  display: block;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html .stock-line .dt-stock-meta {
  color: var(--blue);
}
.stock-line-due {
  display: none;
}
.stock-line-qty {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}
.stock-line-qty b {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.stock-line-qty small {
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}
.stock-line-qty.device-row-date {
  display: block;
  text-align: right;
}
.device-row-date small,
.device-row-date b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.device-row-date b {
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.stock-line-status {
  display: flex;
  min-width: 0;
}
.stock-line-status .ds-chip {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Pastille et actions : deux colonnes sur grand écran, une rangée commune sur mobile. */
.stock-line-foot {
  display: contents;
}
.stock-line-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
html .stock-line-actions .btn {
  min-width: 0;
  min-height: 36px;
  margin: 0;
  padding: 0 14px;
  font-size: 13.5px;
  border-radius: 10px;
}
html .stock-line-actions .btn .icon {
  width: 16px;
  height: 16px;
}
html .stock-line-actions .icon-btn {
  width: 36px;
  height: 36px;
}
html .stock-line-actions .icon-btn .icon {
  width: 17px;
  height: 17px;
}
.stock-line-chev {
  display: inline-flex;
  color: var(--faint);
}
.stock-line-chev .icon {
  width: 18px;
  height: 18px;
}
.stock-empty p {
  margin: 4px 0 12px;
}

/* Prélèvement */
.take-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--c-armoire) 7%, var(--surface));
}
html .take-head h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}
.take-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}
.take-qty {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
html .take-stepper {
  height: 44px;
  align-self: flex-start;
}
html .take-stepper button {
  width: 44px;
}
html .take-stepper input {
  width: 72px;
  min-height: 0;
  margin: 0;
  padding: 0;
  font-size: 16px;
  border-radius: 0;
  -moz-appearance: textfield;
}
.take-stepper input::-webkit-outer-spin-button,
.take-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.take-stepper button:hover {
  color: var(--text);
}
html .take-lots {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.take-lots legend {
  padding: 0;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13px;
}
.take-lots legend span {
  color: var(--muted);
  font-weight: 500;
}
.take-lot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}
.take-lot input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.take-lot-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex: none;
  box-sizing: border-box;
}
.take-lot-text {
  flex: 1;
  min-width: 0;
}
.take-lot-text b {
  display: block;
  font-size: 13.5px;
}
.take-lot-text small {
  color: var(--muted);
  font-size: 12px;
}
.take-lot:has(input:checked) {
  border-color: var(--c-armoire);
  background: color-mix(in srgb, var(--c-armoire) 6%, var(--surface));
}
.take-lot:has(input:checked) .take-lot-radio {
  border: 5px solid var(--c-armoire);
}
.take-lot:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.take-lots .notice {
  margin-top: 4px;
}
html .take-check {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--amber-soft);
  color: var(--text);
  font-weight: 600;
}
html .take-check:has(input:checked) {
  background: var(--green-soft);
}

/* =============================================================== Responsive */
@media (max-width: 1100px) {
  /* Sous 1100 px, un sac s'ouvre dans sa fiche : le panneau de détail est masqué. */
  html .lot-bag-panel {
    display: none;
  }
  html .lot-hero,
  html .equipment-hero {
    grid-template-columns: 160px minmax(0, 1fr);
  }
  .lot-hero > .lot-collage {
    height: 120px;
  }
  .lot-hero-actions,
  .equipment-hero-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .equipment-hero-visual {
    height: 140px;
  }
}
@media (max-width: 860px) {
  html {
    --ul-sticky-top: 56px;
  }
  .ul-dashboard .ds-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ul-dashboard .ds-panel-h .ds-link span {
    display: none;
  }
  .ul-dashboard .ds-row-end > span:not(.ds-chip):not(.ds-ring) {
    display: none;
  }
  .ul-dashboard .ds-tile .ds-pill,
  .stock-tiles .ds-tile .ds-pill {
    width: 34px;
    height: 34px;
  }
  /* Tuiles et chiffres du bandeau en colonne : pastille au-dessus du chiffre. */
  .ul-dashboard .ds-tile,
  .stock-tiles .ds-tile {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .ul-dashboard .ds-hero-stats {
    gap: 8px;
  }
  .ul-dashboard .ds-hero-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px;
  }
  .ul-dashboard .ds-hero-stat > .ds-hs-ic {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }
  .ul-dashboard .ds-hero-stat .icon {
    width: 16px;
    height: 16px;
  }
  .lot-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  html .lot-hero,
  html .equipment-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
    gap: 14px;
  }
  .lot-hero > .lot-collage {
    height: 110px;
    max-width: 240px;
  }
  html .lot-hero-info h1,
  html .equipment-hero-info h1 {
    font-size: 23px;
  }
  .lot-stats,
  .equipment-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lot-hero-actions .btn,
  .equipment-hero-actions .btn {
    flex: 1;
  }
  .equipment-hero-visual {
    height: 150px;
  }
  .lot-bag {
    padding: 12px;
    gap: 12px;
  }
  .lot-bag-img {
    width: 64px;
    height: 64px;
  }
  .lot-bag-img img {
    width: 54px;
    height: 54px;
  }
  .content-rows .content-row {
    padding: 10px 14px;
  }
  html .page-heading:has(.stock-heading-actions) {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  html .page-heading:has(.stock-heading-actions) > .page-heading-copy {
    flex: 1 1 100%;
  }
  .stock-heading-actions {
    width: 100%;
  }
  html .stock-heading-actions .btn {
    flex: 1 1 auto;
    padding: 0 14px;
    white-space: nowrap;
  }
  html .stock-heading-actions .btn.pdf-export {
    flex: none;
    width: 42px;
    padding: 0;
  }
  html .stock-filters {
    padding: 12px;
  }
  html .stock-search {
    max-width: none;
    flex-basis: 100%;
  }
  html .stock-count {
    margin: 0;
  }
  .stock-filter-label {
    width: 100%;
  }
  /* Les puces défilent dans leur bandeau, jamais la page. */
  .stock-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    flex-basis: 100%;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .stock-chips::-webkit-scrollbar {
    display: none;
  }
  #stock-nature,
  #stock-nature .ds-segs {
    width: 100%;
  }
  #stock-nature .ds-seg {
    flex: 1 0 auto;
    justify-content: center;
  }
  /* En-tête de groupe : icône, nom sur une ou deux lignes, nombre dessous, chevron à droite. */
  .stock-group-h {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    grid-template-areas:
      "pill name chev"
      "pill count chev";
    column-gap: 12px;
    row-gap: 1px;
    padding: 10px 14px;
  }
  .stock-group-h > .ds-pill {
    grid-area: pill;
  }
  .stock-group-name {
    grid-area: name;
  }
  .stock-group-count {
    grid-area: count;
  }
  .stock-group-chev {
    grid-area: chev;
    margin: 0;
  }
  .stock-group-alert {
    display: none;
  }
}

/* ===== Véhicules / Réglages / Notifications (agent B) ===== */
/* ----- Véhicules : cartes ----- */
.vf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 18px;
}
.vf-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.vf-photo {
  position: relative;
  height: 156px;
  background: var(--side);
  flex: none;
}
.vf-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 62%;
}
.vf-photo.noimg {
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--c-vehicules) 22%, var(--surface)),
    color-mix(in srgb, var(--c-vehicules) 6%, var(--surface))
  );
}
.vf-big {
  color: var(--c-vehicules);
}
.vf-big .icon {
  width: 64px;
  height: 64px;
  stroke-width: 1.3;
}
.vf-badges {
  position: absolute;
  left: 12px;
  top: 12px;
  right: 130px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vf-badges .ds-chip {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
html .vf-badges .vehicle-incident-badge {
  min-height: 0;
  min-width: 0;
  height: 24px;
  padding: 0 9px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
}
.vf-tools {
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  gap: 6px;
}
html .vf-tool {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #1b2a38;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
html .vf-tool:hover {
  background: #fff;
}
.vf-tool .icon {
  width: 17px;
  height: 17px;
}
.vf-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  flex: 1;
}
.vf-title h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.vf-title small {
  color: var(--muted);
  font-size: 12.5px;
}
.vf-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface2);
}
.vf-fact {
  min-width: 0;
}
.vf-fact small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
}
.vf-fact b {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 13.5px;
  white-space: nowrap;
}
.vf-fact b .icon {
  width: 14px;
  height: 14px;
}
/* Colonne de droite alignée sur le bord droit du bloc. */
.vf-fact:nth-child(even) {
  text-align: right;
}
.vf-fact:nth-child(even) b {
  justify-content: flex-end;
}
.vf-fact b.vf-warn {
  color: var(--amber);
}
.vf-fact b.vf-danger {
  color: var(--red);
}
.vf-fuel {
  display: inline-flex;
  gap: 2px;
  flex: none;
}
.vf-fuel i {
  width: 7px;
  height: 13px;
  border-radius: 2px;
  background: var(--line);
}
.vf-fuel i.on {
  background: var(--green);
}
/* Carburant : vert à partir de ¾, jaune à ½, rouge à ¼. */
.vf-fuel.mid i.on {
  background: #e3b11c;
}
.vf-fuel.low i.on {
  background: var(--red);
}
.vf-lots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vf-lots .ds-chip {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
html .vf-card .notice {
  margin: 0;
}
html .vf-card .vf-guest {
  align-self: flex-start;
  margin: 0;
}
.vf-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
html .vf-acts .btn {
  flex: 1 1 auto;
  margin: 0;
}
/* onglets sous les cartes */
.vf-tabbar {
  margin: 28px 0 14px;
}
.vf-panes > div > .panel {
  margin: 0;
}
.vf-num {
  text-align: right;
  white-space: nowrap;
}
.ds-table th.vf-num {
  text-align: right;
}
.vf-nowrap {
  white-space: nowrap;
}
.vf-sub {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 400;
}
.vf-purpose {
  min-width: 160px;
}
.vf-ledger td b {
  font-weight: 600;
}
.ds-empty .ds-pill + b {
  margin-bottom: 2px;
}
.vf-row-end {
  flex-wrap: wrap;
  justify-content: flex-end;
}
html .vf-row-end .btn {
  margin: 0;
}
.vf-incidents-h {
  flex-wrap: wrap;
}
.vf-incident-filters {
  flex-wrap: wrap;
}
html .vf-select {
  min-height: 34px;
  height: 34px;
  padding: 0 32px 0 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  width: auto;
  max-width: 220px;
}
#incident-rows .ds-row-main > b {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
/* ----- Véhicules : popups ----- */
html .modal .modal-header .vf-modal-title {
  flex: 1;
  min-width: 0;
}
html .modal .modal-header .vf-modal-title h2 {
  margin: 0;
  text-align: left;
}
.vf-modal-title p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}
html .modal .vf-modal-pill {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
html .modal .vf-modal-pill .icon {
  width: 20px;
  height: 20px;
}
.vf-field {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.vf-field > legend {
  padding: 0;
  margin-bottom: 8px;
}
.vf-ctx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.vf-ctx {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  min-width: 0;
}
.vf-ctx input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.vf-ctx-txt b {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}
.vf-ctx-txt small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 2px;
}
.vf-ctx:hover {
  border-color: color-mix(in srgb, var(--hue) 45%, var(--line));
}
.vf-ctx:has(input:checked) {
  border-color: var(--hue);
  background: color-mix(in srgb, var(--hue) 7%, var(--surface));
}
.vf-ctx:has(input:focus-visible),
.vf-fuel-pick label:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.vf-ctx.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.vf-when {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 12px;
  align-items: end;
}
.vf-when > .label {
  min-width: 0;
  margin: 0;
}
html .vf-hint {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.vf-hint .icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
}
.vf-fuel-pick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.vf-fuel-pick label {
  position: relative;
  display: block;
  cursor: pointer;
  margin: 0;
}
.vf-fuel-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.vf-fuel-pick span {
  display: grid;
  place-items: center;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
}
.vf-fuel-pick label:hover span {
  border-color: color-mix(in srgb, var(--green) 45%, var(--line));
}
.vf-fuel-pick input:checked + span {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}
html .vf-trip .ds-check-line.vf-issue {
  margin-top: 0;
  font-weight: 600;
}
html .vf-trip textarea {
  min-height: 72px;
}
/* carnet d’un véhicule */
.vf-log-tools {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.vf-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vf-log-entry {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.vf-log-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.vf-log-head h3 {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.3;
}
.vf-log-driver {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.vf-log-driver .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
}
.vf-log-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface2);
}
.vf-log-facts div {
  min-width: 0;
}
.vf-log-facts dt {
  color: var(--muted);
  font-size: 11.5px;
}
.vf-log-facts dd {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
}
.vf-log-facts dd small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}
.vf-log-entry .notice,
.vf-log-entry .page-caption {
  margin: 10px 0 0;
}
html .vf-log-entry .page-caption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
@media (max-width: 860px) {
  html .page-heading:has(> .vf-head-actions) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  html .page-heading:has(> .vf-head-actions) > .page-heading-copy {
    display: block;
  }
  html .page-heading > .vf-head-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
  }
  html .page-heading > .vf-head-actions .btn {
    flex: 1 1 auto;
    width: auto;
    height: auto;
    min-height: 42px;
    padding: 0 12px;
    font-size: 13px;
    margin: 0;
  }
  html .page-heading > .vf-head-actions .pdf-export {
    flex: 0 0 44px;
    padding: 0;
  }
  .vf-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .vf-tabbar .ds-segs {
    display: flex;
    width: 100%;
  }
  .vf-tabbar .ds-seg {
    flex: 1 1 auto;
    justify-content: center;
    gap: 5px;
    padding: 0 6px;
  }
  .vf-tabbar .vf-long {
    display: none;
  }
  .vf-ctx-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .vf-ctx {
    flex-direction: row;
    align-items: center;
  }
  .vf-when {
    grid-template-columns: 1fr 1fr;
  }
  .vf-when > .label:last-child {
    grid-column: 1 / -1;
  }
  .vf-incidents-h > div:not(.ds-right) {
    flex: 1 1 200px;
    min-width: 0;
  }
  .vf-incident-filters {
    margin-left: 0;
    width: 100%;
  }
  html .vf-incident-filters .ds-fchip {
    min-height: 34px;
    height: 34px;
  }
  html .vf-select {
    max-width: none;
    flex: 1 1 100%;
    min-height: 38px;
    height: 38px;
  }
  #incident-rows .ds-row-end .ds-chip {
    display: none;
  }
  .vf-log-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* ----- Réglages : menu et cartes ----- */
.st-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
html .st-nav {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.st-group {
  margin: 12px 8px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.st-group:first-child {
  margin-top: 4px;
}
.st-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
html .st-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}
.st-link .ds-pill {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.st-link .ds-pill .icon {
  width: 15px;
  height: 15px;
}
html .st-link:hover {
  background: var(--surface2);
}
html .st-link.active {
  background: color-mix(in srgb, var(--hue) 11%, var(--surface));
  font-weight: 700;
}
html .st-link.active .ds-pill {
  background: var(--hue);
  color: #fff;
}
html[data-theme="dark"] .st-link.active .ds-pill {
  color: var(--surface);
}
.st-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
html .st-body > .panel,
html .st-body > form > .panel,
html .st-body .st-card {
  margin: 0;
}
html .st-card {
  padding: 20px;
  display: block;
}
.st-h {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.st-h h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.st-h p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.st-h > .ds-chip,
.st-h > .btn {
  flex: none;
  margin: 0;
}
.st-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: end;
}
.st-grid.st-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
html .st-grid > .label,
html .st-card > .label {
  margin: 0;
  min-width: 0;
}
html .st-card > .notice {
  margin: 16px 0 0;
}
html .st-card .form-error:empty {
  display: none;
}
html .st-preview {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
html .st-preview > .label {
  display: block;
}
html .st-preview .local-brand {
  margin: 0;
}
html .st-brand-preview .local-brand strong {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}
.st-brand-preview {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-top: 6px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  background: var(--side);
}
.st-brand-preview .local-brand {
  color: #fff;
}
.st-brand-preview .local-brand > .icon {
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 8px;
  background: #fff;
  color: #d71931;
}
html .st-hint {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.st-hint > .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
}
.st-hint span .icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  vertical-align: -2px;
}
.st-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
html .st-foot .btn {
  margin: 0;
}
html .st-foot .st-hint {
  margin: 0;
}
.st-foot.st-sticky {
  position: sticky;
  bottom: 12px;
  z-index: 3;
  margin-top: 0;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
/* interrupteurs */
.st-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.st-list:last-child {
  margin-bottom: 0;
}
.st-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  margin: 0;
  font-weight: 400;
}
.st-switch:first-child {
  border-top: 0;
}
.st-switch-txt {
  flex: 1;
  min-width: 0;
}
.st-switch-txt b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}
.st-switch-txt small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.st-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.st-toggle {
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.15s;
}
.st-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: left 0.15s;
}
.st-switch input:checked + .st-toggle {
  background: var(--green);
}
.st-switch input:checked + .st-toggle::after {
  left: 19px;
}
.st-switch input:focus-visible + .st-toggle {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.st-switch input:disabled + .st-toggle {
  opacity: 0.5;
}
.st-switch.compact {
  padding: 0;
  border: 0;
  flex: none;
}
/* outils de maintenance */
.st-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 10px;
}
html .st-tool {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
html .st-tool:hover {
  border-color: var(--action-bg);
  background: var(--surface2);
}
.st-tool .ds-pill {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.st-tool .ds-pill .icon {
  width: 16px;
  height: 16px;
}
/* volets repliables */
.st-details > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  list-style: none;
}
.st-details > summary::-webkit-details-marker {
  display: none;
}
.st-details > summary .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.st-details > summary::after {
  content: "";
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.st-details[open] > summary::after {
  transform: rotate(-135deg);
}
.st-details[open] > summary {
  margin-bottom: 12px;
}
.st-details > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
/* sections fournies par d’autres modules (Imports, Modèles) : titre secondaire */
html .st-body > .page-heading {
  margin: 4px 0 0;
}
html .st-body > .page-heading h1 {
  font-size: 19px;
}
html .st-body > .page-heading .title-pill {
  display: none;
}
/* ----- Réglages : règles de notification ----- */
.st-notifs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.st-ev-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
html .st-ev {
  margin: 0;
  padding: 14px 16px;
}
.st-ev-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.st-ev-main {
  flex: 1;
  min-width: 0;
}
html .st-ev-main h3 {
  display: block;
  margin: 0;
  font-size: 14px;
}
.st-ev-main > small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}
.st-ev-who {
  display: inline-flex;
  align-items: flex-start;
  gap: 5px;
  max-width: 100%;
  margin-top: 6px;
  padding: 3px 9px;
  border-radius: 10px;
  background: var(--surface2);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
}
.st-ev-who .icon {
  width: 12px;
  height: 12px;
  margin-top: 2px;
}
.st-ev-ch {
  display: flex;
  gap: 6px;
  flex: none;
}
.st-chan {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.st-chan input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.st-chan .icon {
  width: 14px;
  height: 14px;
}
.st-chan:has(input:checked) {
  border-color: color-mix(in srgb, var(--c-missions) 45%, var(--line));
  background: color-mix(in srgb, var(--c-missions) 11%, var(--surface));
  color: var(--c-missions);
}
.st-chan:has(input:focus-visible),
.st-opt:has(input:focus-visible),
.st-ap:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.st-chan:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.45;
}
.st-chan.icon-only {
  width: 34px;
  padding: 0;
  justify-content: center;
}
.st-ev-more {
  margin: 12px 0 0 46px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.st-ev-more > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--active-text);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.st-ev-more > summary .icon {
  width: 14px;
  height: 14px;
}
.st-ev-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.st-opt {
  position: relative;
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}
.st-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.st-opt > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.st-opt small {
  color: var(--faint);
  font-weight: 600;
}
.st-opt input:checked + span {
  border-color: var(--hue, var(--action-bg));
  background: color-mix(in srgb, var(--hue, var(--action-bg)) 10%, var(--surface));
  color: var(--text);
}
.st-opt input:disabled + span {
  opacity: 0.5;
  cursor: not-allowed;
}
.st-people {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.st-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
}
.st-person:first-child {
  border-top: 0;
}
.st-person strong {
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
}
.st-person-opts {
  display: flex;
  gap: 6px;
  flex: none;
}
/* ----- Préférences personnelles ----- */
.st-pref-top {
  margin-bottom: 14px;
}
html .st-pref-top .btn {
  margin: 0;
}
.st-pref-tabs {
  margin-bottom: 18px;
}
.st-pref-sec + .st-pref-sec {
  margin-top: 22px;
}
html .st-pref-sec > h3.label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
}
.st-pref-sec > .st-hint {
  margin: -2px 0 10px;
}
.st-pref-sec > .btn {
  margin: 0;
}
.st-appear {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.st-ap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
}
.st-ap input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.st-ap:has(input:checked) {
  border-color: var(--action-bg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--action-bg) 16%, transparent);
}
/* aperçus : couleurs fixes, elles illustrent chaque thème */
.st-ap-prev {
  position: relative;
  display: block;
  height: 58px;
  border-radius: 9px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(90deg, #16232f 22%, #eef2f6 22%);
}
.st-ap-prev.dark {
  background: linear-gradient(90deg, #0b1218 22%, #18242f 22%);
}
.st-ap-prev.system {
  background: linear-gradient(90deg, #16232f 22%, #eef2f6 22%, #eef2f6 61%, #18242f 61%);
}
.st-ap-prev i {
  position: absolute;
  left: 30%;
  height: 7px;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(22, 35, 47, 0.08);
}
.st-ap-prev i:nth-child(1) {
  top: 12px;
  width: 40%;
}
.st-ap-prev i:nth-child(2) {
  top: 25px;
  width: 58%;
}
.st-ap-prev i:nth-child(3) {
  top: 38px;
  width: 30%;
  background: #2d5b83;
}
.st-ap-prev.dark i {
  background: #2a3a48;
  box-shadow: none;
}
.st-ap-prev.dark i:nth-child(3) {
  background: #8fb8e0;
}
.st-ap-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.st-ap-label .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}
.st-pref-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}
.st-pref-row:first-child {
  border-top: 0;
}
.st-pref-row .ds-pill {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.st-pref-row .ds-pill .icon {
  width: 16px;
  height: 16px;
}
.st-pref-event {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.st-pref-event b {
  font-size: 13.5px;
  font-weight: 600;
}
.st-pref-event small {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 12px;
}
html .st-pref-row .btn,
html .st-pref-row .icon-btn {
  margin: 0;
}
.st-empty-line {
  margin: 0;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
}
/* ----- Équipe et accès ----- */
.us-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
/* Compte : avatar, nom + adresse + rôle, actions à droite (icônes seules sur mobile). */
html .us-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.us-row .ds-row-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.us-row .us-chips:not(:empty) {
  margin-top: 6px;
}
html .us-avatar {
  width: 38px;
  height: 38px;
  font-size: 12.5px;
}
.us-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.us-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
html .us-actions .btn {
  margin: 0;
}
@media (max-width: 1100px) {
  .st-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  html .st-nav {
    position: static;
    flex-direction: row;
    gap: 4px;
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .st-group {
    display: none;
  }
  .st-links {
    flex-direction: row;
    gap: 4px;
  }
  html .st-link {
    width: auto;
    flex: none;
    padding: 5px 10px 5px 6px;
  }
}
@media (max-width: 860px) {
  html .st-card {
    padding: 16px;
  }
  .st-grid,
  .st-grid.st-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .st-h {
    flex-wrap: wrap;
  }
  .st-ev-top {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .st-ev-main {
    flex-basis: calc(100% - 110px);
  }
  .st-switch.compact {
    order: 2;
    margin-left: auto;
  }
  .st-ev-ch {
    order: 3;
    width: 100%;
    padding-left: 46px;
  }
  .st-ev-more {
    margin-left: 0;
  }
  .st-foot.st-sticky {
    bottom: 76px;
  }
  .st-foot.st-sticky .st-hint,
  .st-foot.st-sticky .ds-spacer {
    display: none;
  }
  html .st-foot.st-sticky .btn {
    flex: 1;
  }
  .st-appear {
    grid-template-columns: minmax(0, 1fr);
  }
  .st-ap {
    flex-direction: row;
    align-items: center;
  }
  .st-ap-prev {
    width: 84px;
    height: 46px;
    flex: none;
  }
  .st-person {
    flex-wrap: wrap;
  }
  .us-toolbar .ds-segs {
    display: flex;
    width: 100%;
  }
  .us-toolbar .ds-seg {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0 8px;
  }
  .us-long {
    display: none;
  }
  html .us-actions .btn {
    width: 40px;
    min-height: 40px;
    padding: 0;
    justify-content: center;
  }
  html .us-actions .btn > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .us-row {
    align-items: start;
  }
}
/* ----- Volet des notifications ----- */
html .modal.nt-modal {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
html .modal.nt-modal > .modal-header {
  position: static;
  margin: 0;
  padding: 20px 20px 4px;
}
html .modal.nt-modal > .modal-header h2 {
  margin: 0;
  text-align: left;
}
.nt-drawer {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.nt-sub {
  margin: 0;
  padding: 0 20px 12px;
  color: var(--muted);
  font-size: 12.5px;
}
.nt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 20px 12px;
  border-bottom: 1px solid var(--line);
}
html .nt-bar .btn {
  margin: 0;
}
.nt-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
}
html .nt-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}
html .nt-row:hover {
  background: var(--surface2);
}
html .nt-row.unread {
  background: color-mix(in srgb, var(--blue) 7%, var(--surface));
}
html .nt-row.unread:hover {
  background: color-mix(in srgb, var(--blue) 11%, var(--surface));
}
.nt-row .ds-pill {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}
.nt-row .ds-pill .icon {
  width: 19px;
  height: 19px;
}
.nt-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nt-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}
.nt-new {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
}
html[data-theme="dark"] .nt-new {
  color: #2a0d14;
}
.nt-main b {
  font-size: 13.5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.nt-main small {
  color: var(--faint);
  font-size: 11.5px;
}
.nt-row > .icon {
  width: 16px;
  height: 16px;
  margin-top: 11px;
  color: var(--faint);
}
.nt-row[aria-busy="true"] {
  opacity: 0.6;
}
.nt-empty {
  padding: 48px 18px;
}
.nt-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
html .nt-foot .btn {
  margin: 0;
}
html .nt-foot .nt-clear {
  color: var(--red);
}
@media (max-width: 860px) {
  .nt-prefs span {
    display: none;
  }
  html .nt-bar .nt-prefs {
    width: 34px;
    padding: 0;
  }
}
/* ===== fin Véhicules / Réglages / Notifications (agent B) ===== */
@media (max-width: 860px) {
  html .take-modal .modal-footer .btn {
    white-space: nowrap;
    padding: 0 14px;
  }
  html .take-modal .modal-footer .btn[type="submit"] {
    flex: 1 1 auto;
  }
  html .take-modal .modal-footer .btn[data-action="close-modal"] {
    flex: 0 0 auto;
  }
}

/* ---------------------------------------------------------------- retour de mission */
html .return-progress {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.return-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
}
.return-progress-head strong {
  font-size: 17px;
}
.return-progress-head span {
  color: var(--muted);
  font-size: 13.5px;
}
html .return-progress .ds-bar {
  height: 8px;
}
html .return-bags {
  display: grid;
  gap: 10px;
}
html .return-bag {
  padding: 14px 18px;
}
html .return-bag-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}
html .return-bag-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 280px;
}
html .return-bag-heading > div:last-child {
  display: grid;
  justify-items: start;
  gap: 5px;
  min-width: 0;
}
html .return-bag-photo {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 12px;
  background: var(--surface2);
  overflow: hidden;
  display: grid;
  place-items: center;
}
html .return-bag-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
html .return-bag-heading h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}
html .return-bag-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
  width: auto;
}
html .return-bag-actions > .btn {
  width: auto;
  flex: none;
  min-height: 44px;
  margin: 0;
}
html .return-bag-actions > .btn.sm {
  min-height: 36px;
}
html body .btn.return-none-btn {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
}
html body .btn.return-none-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--green) 16%, var(--surface));
}
@media (max-width: 760px) {
  html .return-bag-actions {
    width: 100%;
  }
  html .return-bag-actions > .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 10px;
    white-space: normal;
    line-height: 1.2;
  }
}

/* Armoire : colonne d'actions de largeur fixe (les colonnes restent alignées d'une ligne à l'autre) ;
   le transfert y est une icône (libellé dans l'infobulle et pour les lecteurs d'écran). */
html .stock-line-actions .dt-transfer-button {
  width: 36px;
  padding: 0;
  justify-content: center;
}
html .stock-line-actions .dt-transfer-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
/* Tablette et mobile : deux niveaux. Nom et quantité, puis une rangée pastille + actions. */
@media (max-width: 1100px) {
  .stock-line {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    grid-template-areas:
      "visual main qty"
      "visual foot foot";
    gap: 8px 12px;
    padding: 12px 14px;
  }
  .stock-line-visual {
    grid-area: visual;
    align-self: start;
  }
  .stock-line-main {
    grid-area: main;
  }
  .stock-line-qty {
    grid-area: qty;
    align-self: start;
  }
  .stock-line-foot {
    grid-area: foot;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
  }
  /* Si la pastille et les boutons ne tiennent pas côte à côte, les boutons passent dessous. */
  .stock-line-foot {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .stock-line-status {
    flex: 0 1 auto;
    min-width: auto;
  }
  .stock-line-actions {
    flex: none;
    margin-left: auto;
  }
  /* Appareil sans alerte : crayon et chevron en haut à droite, pas de rangée vide. */
  .stock-line.device-row:not(:has(.stock-line-status .ds-chip)) {
    grid-template-areas: "visual main foot";
  }
  .stock-line.device-row:not(:has(.stock-line-status .ds-chip)) .stock-line-foot {
    align-self: start;
  }
  .stock-line.device-row:not(:has(.stock-line-status .ds-chip)) .stock-line-status {
    display: none;
  }
  .stock-line-foot:not(:has(.ds-chip)):not(:has(.btn, .icon-btn)) {
    display: none;
  }
  /* Appareil : l'échéance passe dans la ligne d'informations. */
  .stock-line.device-row .device-row-date {
    display: none;
  }
  .stock-line-due {
    display: inline;
  }
}
@media (max-width: 760px) {
  .stock-line-status .ds-chip .icon {
    display: none;
  }
}

.pos-device-catalog > summary {
  font-weight: 650;
}
.pos-device-catalog ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.pos-device-catalog li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.pos-device-catalog li small {
  display: block;
  color: var(--muted);
}
.pos-device-catalog li .btn {
  min-height: 40px;
}
