/* Drive (lots 12–14): explorer, review queue, capture, trash, share dialog and the public share page.
   Tokens only (tokens.css). Signature motif: each document is a sheet with a perforated stub (DESIGN §6). */

/* ---------- Header: fiscal year, share state, review banner ---------- */
.yb-year-button {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  padding: 0 6px 0 10px;
  border: 1px solid var(--yb-border-strong);
  border-radius: var(--yb-radius-pill);
  background: var(--yb-surface);
  color: var(--yb-text);
  font: inherit;
  font-size: var(--yb-text-title-3);
  font-weight: var(--yb-weight-strong);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color var(--yb-duration-fast) var(--yb-ease), background-color var(--yb-duration-fast) var(--yb-ease);
}

.yb-year-button:hover {
  border-color: var(--yb-border-input);
  background: var(--yb-hover);
}

.yb-year-button:focus-visible {
  outline: 2px solid var(--yb-focus);
  outline-offset: 2px;
}

/* Owner, 2026-11-08: a year other than the current one stands out, the way back beside it. */
.yb-year-button--other,
.yb-year-button--other:hover {
  border-color: var(--yb-warning);
  background: var(--yb-warning-soft);
}

.yb-year-back {
  padding: 0;
  border: 0;
  background: none;
  color: var(--yb-primary);
  font: inherit;
  font-size: var(--yb-text-body);
  font-weight: var(--yb-weight-medium);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.yb-year-back:hover {
  text-decoration: underline;
}

.yb-year-back:focus-visible {
  outline: 2px solid var(--yb-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.yb-year-option {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.yb-year-option__label {
  font-weight: var(--yb-weight-medium);
}

.yb-year-option__meta {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--yb-success);
  box-shadow: 0 0 0 3px var(--yb-success-soft);
}

.yb-review-banner {
  display: flex;
  align-items: center;
  gap: var(--yb-space-4);
  padding: var(--yb-space-3) var(--yb-space-4) var(--yb-space-3) var(--yb-space-3);
  border: 1px solid color-mix(in srgb, var(--yb-accent) 45%, var(--yb-border));
  border-radius: var(--yb-radius-md);
  background: var(--yb-accent-soft);
  color: var(--yb-on-accent-soft);
  text-decoration: none;
  transition: border-color var(--yb-duration-fast) var(--yb-ease);
}

.yb-review-banner:hover {
  border-color: var(--yb-accent);
  color: var(--yb-on-accent-soft);
}

.yb-review-banner:focus-visible {
  outline: 2px solid var(--yb-focus);
  outline-offset: 2px;
}

.yb-review-banner__count {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--yb-radius-sm);
  background: var(--yb-accent);
  color: var(--yb-on-accent);
  font-size: var(--yb-text-title-3);
  font-weight: var(--yb-weight-strong);
}

.yb-review-banner__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.yb-review-banner__text strong {
  color: var(--yb-text);
  font-weight: var(--yb-weight-strong);
}

.yb-review-banner__text span {
  font-size: var(--yb-text-caption);
}

.yb-review-banner__action {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  color: var(--yb-text);
  font-weight: var(--yb-weight-medium);
}

/* ---------- Explorer layout ---------- */
.yb-drive {
  position: relative;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  align-items: start;
  gap: var(--yb-space-4);
}

.yb-drive__aside {
  position: sticky;
  top: calc(var(--yb-topbar-height) + var(--yb-space-4));
  display: flex;
  flex-direction: column;
  gap: var(--yb-space-2);
  max-height: calc(100dvh - var(--yb-topbar-height) - var(--yb-space-8));
  overflow-y: auto;
}

.yb-drive__main {
  min-height: 420px;
}

/* D492: in a window high enough, the explorer fits it (full-page list D491, layout.css). The column of the left and the
   documents scroll each on its own; the place, the search and the filters stay in place above the documents, the column
   header stays visible. The documents follow their content and stop at the bottom of the window. */
@media (min-width: 768px) and (min-height: 600px) {
  .yb-page--fill .yb-drive {
    flex: 0 1 auto;
    grid-template-rows: minmax(0, 1fr);
    min-height: 0;
  }

  .yb-page--fill .yb-drive__aside {
    position: relative;
    top: auto;
    max-height: 100%;
    min-height: 0;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  /* The panel keeps room for its head, its filters and a few documents whatever sits above it (then the page scrolls,
     last resort): the documents never overflow its border. */
  .yb-page--fill .yb-drive__main {
    display: flex;
    flex-direction: column;
    max-height: 100%;
    min-height: 24rem;
  }

  .yb-page--fill .yb-drive__main > * {
    flex: none;
  }

  .yb-page--fill .yb-drive__main > .yb-drive__content {
    flex: 0 1 auto;
    min-height: 12.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    /* A row reached with the keyboard never stops under the sticky header (WCAG 2.4.11). */
    scroll-padding-top: calc(var(--yb-row-head-height) + var(--yb-space-2));
  }

  .yb-page--fill .yb-drive__content > * {
    flex-shrink: 0;
  }

  /* The filters unfolded take the room of the documents, never more than the panel. */
  .yb-page--fill .yb-drive__main:has(.yb-drive-filters__panel) > .yb-drive__content {
    min-height: 0;
  }

  /* clip, not hidden: the table's frame keeps its rounded corners without becoming a scrolling area of its own, so its
     header sticks to the documents' area. */
  .yb-page--fill .yb-drive__content .yb-doc-table-host {
    overflow: clip;
  }

  /* Stuck to the very top of the documents' area: the sticky edge is inside its padding. */
  .yb-page--fill .yb-drive__content .yb-doc-table th {
    position: sticky;
    top: calc(-1 * var(--yb-space-4));
    z-index: 3;
    border-bottom: 0;
    box-shadow: inset 0 -1px 0 var(--yb-border);
  }
}

.yb-drive__toolbar {
  min-height: 61px;
}

.yb-drive__crumb-sep.mud-icon-root {
  color: var(--yb-text-disabled);
  font-size: 16px;
}

.yb-drive__location {
  overflow: hidden;
  padding: 2px 6px;
  font-size: var(--yb-text-title-3);
  line-height: var(--yb-leading-title-3);
  font-weight: var(--yb-weight-title-3);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yb-drive__search {
  width: 260px;
}

.yb-drive__search .mud-input-control {
  margin: 0;
}

.yb-drive__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--yb-space-5);
  min-height: 320px;
  padding: var(--yb-space-4);
}

.yb-drive__empty {
  margin: auto;
}

.yb-drive__truncated {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  text-align: center;
}

.yb-drive__skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: var(--yb-space-4);
}

/* ---------- Folder tree ---------- */
.yb-tree {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.yb-tree--loading {
  gap: var(--yb-space-2);
  padding: var(--yb-space-2);
}

.yb-tree__list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-tree__list .yb-tree__list {
  padding-left: 14px;
}

.yb-tree__node {
  display: flex;
  flex: 1;
  align-items: center;
  gap: var(--yb-space-2);
  min-width: 0;
  min-height: 34px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: var(--yb-radius-sm);
  color: var(--yb-text);
  text-decoration: none;
  transition: background-color var(--yb-duration-fast) var(--yb-ease);
}

.yb-tree__node:hover {
  background: var(--yb-hover);
  color: var(--yb-text);
}

.yb-tree__node.is-current {
  border-color: var(--yb-border);
  background: var(--yb-surface);
  box-shadow: var(--yb-shadow-xs);
  font-weight: var(--yb-weight-medium);
}

.yb-tree__node:focus-visible {
  outline: 2px solid var(--yb-focus);
  outline-offset: 1px;
}

.yb-tree__icon.mud-icon-root {
  flex: none;
  color: var(--yb-text-muted);
  font-size: 18px;
}

.yb-tree__node.is-current .yb-tree__icon {
  color: var(--yb-primary);
}

.yb-tree__name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yb-tree__count {
  flex: none;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

/* Drop targets highlight while something is dragged over them. */
.yb-drive [data-drive-drop]:is(:hover, :focus-visible) {
  outline: none;
}

/* ---------- Ledger: totals of the folder, one bordered strip divided into cells ---------- */
.yb-ledger {
  display: grid;
  grid-template-columns: minmax(90px, 0.7fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr);
  margin: 0;
  border-bottom: 1px solid var(--yb-border);
  background: var(--yb-bg-sunken);
}

.yb-ledger__cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: var(--yb-space-3) var(--yb-space-4);
}

.yb-ledger__cell + .yb-ledger__cell {
  border-left: 1px dashed var(--yb-border-strong);
}

.yb-ledger dt {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  font-weight: var(--yb-weight-medium);
}

.yb-ledger dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: var(--yb-space-3);
  margin: 0;
  font-size: var(--yb-text-title-3);
  font-weight: var(--yb-weight-strong);
}

.yb-ledger__money .yb-money__amount {
  font-weight: var(--yb-weight-strong);
}

.yb-ledger__money + .yb-ledger__money {
  font-size: var(--yb-text-body);
  font-weight: var(--yb-weight-medium);
}

.yb-ledger__none {
  color: var(--yb-text-disabled);
}

/* « dont TVA … » under a total of the share page, on a line of its own (D235). */
.yb-ledger__vat {
  flex-basis: 100%;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  font-weight: var(--yb-weight-regular);
}

.yb-ledger__ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--yb-success);
}

.yb-ledger__progress {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  font-weight: var(--yb-weight-medium);
}

.yb-share-table__mobile-date {
  display: none;
}

/* ---------- Drop zone over the whole page (files from the computer, lot 27) ---------- */
.yb-drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--yb-space-4);
  background: color-mix(in srgb, var(--yb-bg) 78%, transparent);
  backdrop-filter: blur(3px);
}

.yb-drop-overlay::before {
  position: absolute;
  inset: var(--yb-space-3);
  border: 2px dashed var(--yb-primary);
  border-radius: var(--yb-radius-lg, 14px);
  content: "";
  pointer-events: none;
}

.yb-drop-overlay.is-active {
  display: flex;
}

.yb-drop-overlay__input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: copy;
}

.yb-drop-overlay__message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--yb-space-2);
  max-width: 440px;
  padding: var(--yb-space-6) var(--yb-space-8);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-md);
  background: var(--yb-surface);
  box-shadow: var(--yb-shadow-lg);
  text-align: center;
  pointer-events: none;
}

.yb-drop-overlay__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--yb-space-1);
  border-radius: 50%;
  background: var(--yb-primary-soft);
}

.yb-drop-overlay__message strong {
  font-size: var(--yb-text-title-2);
  line-height: var(--yb-leading-title-2);
  font-weight: var(--yb-weight-title-2);
}

.yb-drop-overlay__message span {
  color: var(--yb-text-muted);
}

.yb-drop-overlay__icon.mud-icon-root {
  width: 30px;
  height: 30px;
  color: var(--yb-primary);
}

/* ---------- Folders (cards above the documents) ---------- */

.yb-folders--list {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-sm);
}

/* ---------- Documents: grid of sheets with a perforated stub ---------- */
.yb-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: var(--yb-space-5) var(--yb-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-tile {
  --yb-stub-dot: var(--yb-border-strong);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-md);
  background: var(--yb-surface);
  transition: border-color var(--yb-duration-fast) var(--yb-ease), box-shadow var(--yb-duration-fast) var(--yb-ease), transform var(--yb-duration-fast) var(--yb-ease);
}

.yb-tile:hover {
  border-color: var(--yb-border-strong);
  box-shadow: var(--yb-shadow-sm);
}

.yb-tile.is-selected {
  border-color: var(--yb-primary);
  box-shadow: 0 0 0 1px var(--yb-primary);
}

.yb-tile[draggable="true"]:active {
  cursor: grabbing;
}

.yb-tile__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--yb-radius-md) var(--yb-radius-md) 0 0;
  background: transparent;
  cursor: pointer;
}

.yb-tile__open:focus-visible {
  outline: 2px solid var(--yb-focus);
  outline-offset: 2px;
}

/* The page lies on the "desk" (same surface as the PDF preview). */
.yb-tile__desk {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  padding: 14px 18px 0;
  border-radius: calc(var(--yb-radius-md) - 1px) calc(var(--yb-radius-md) - 1px) 0 0;
  background: var(--yb-bg-sunken);
}

.yb-tile__thumb {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px 2px 0 0;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgb(14 58 70 / 0.12), 0 4px 14px -6px rgb(14 58 70 / 0.25);
  transition: transform var(--yb-duration) var(--yb-ease);
}

.yb-tile:hover .yb-tile__thumb {
  transform: translateY(-2px);
}

.yb-tile__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--yb-space-2);
  width: 72%;
  height: 100%;
  margin-top: 6px;
  border-radius: 2px 2px 0 0;
  background: var(--yb-surface);
  box-shadow: var(--yb-shadow-xs);
  color: var(--yb-text-muted);
}

.yb-tile__placeholder .mud-icon-root {
  width: 34px;
  height: 34px;
}

.yb-tile__kind {
  font-size: var(--yb-text-caption);
  font-weight: var(--yb-weight-strong);
  letter-spacing: 0.04em;
}

/* Stub: separated by the perforation, with the notches of the ticket. */
.yb-tile__stub {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 6px 10px 12px;
  background: radial-gradient(circle, var(--yb-stub-dot) 1.5px, transparent 2px) 6px 0 / 7px 4px repeat-x;
}

.yb-tile__stub::before,
.yb-tile__stub::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 12px;
  height: 12px;
  border: 1px solid var(--yb-border);
  border-radius: 50%;
  background: var(--yb-surface);
}

.yb-tile__stub::before {
  left: -7px;
  clip-path: inset(0 0 0 50%);
}

.yb-tile__stub::after {
  right: -7px;
  clip-path: inset(0 50% 0 0);
}

.yb-drive__content .yb-tile__stub::before,
.yb-drive__content .yb-tile__stub::after {
  background: var(--yb-surface);
}

.yb-tile__line {
  display: flex;
  align-items: center;
  gap: var(--yb-space-2);
  min-width: 0;
}

.yb-tile__line--meta {
  justify-content: space-between;
  min-height: 20px;
  padding-right: 6px;
}

.yb-tile__name {
  flex: 1;
  overflow: hidden;
  font-weight: var(--yb-weight-medium);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yb-tile__meta {
  overflow: hidden;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yb-tile__amount {
  flex: none;
}

.yb-tile__amount .yb-money__amount {
  font-weight: var(--yb-weight-strong);
}

.yb-tile__menu {
  flex: none;
  margin: -4px 0;
}

.yb-tile__state {
  position: absolute;
  top: 8px;
  left: 8px;
  max-width: calc(100% - 52px);
}

.yb-tile__state > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.yb-tile__verified {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  padding: 3px;
  border-radius: 50%;
  background: var(--yb-surface);
  box-shadow: var(--yb-shadow-xs);
  color: var(--yb-success);
}

.yb-tile__verified .mud-icon-root {
  font-size: 16px;
}

.yb-tile__check {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--yb-radius-sm);
  background: var(--yb-surface);
  box-shadow: var(--yb-shadow-xs);
  opacity: 0;
  cursor: pointer;
  transition: opacity var(--yb-duration-fast) var(--yb-ease);
}

.yb-tile__check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--yb-primary);
  cursor: pointer;
}

.yb-tile:hover .yb-tile__check,
.yb-tile.is-selected .yb-tile__check,
.yb-tile__check:focus-within {
  opacity: 1;
}

@keyframes yb-pulse {
  50% {
    opacity: 0.55;
  }
}

/* ---------- Document state ---------- */
.yb-doc-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--yb-radius-pill);
  background: var(--yb-status-neutral-bg);
  color: var(--yb-status-neutral-fg);
  font-size: 11.5px;
  font-weight: var(--yb-weight-strong);
  white-space: nowrap;
}

.yb-doc-state__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.yb-doc-state__spinner {
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: yb-spin 0.8s linear infinite;
}

@keyframes yb-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .yb-doc-state__spinner {
    animation-duration: 2.4s;
  }
}

.yb-doc-state__auto.mud-icon-root {
  margin-left: -2px;
  font-size: 14px;
}

.yb-doc-state--todo {
  background: var(--yb-accent);
  color: var(--yb-on-accent);
}

.yb-doc-state--red {
  background: var(--yb-status-red-bg);
  color: var(--yb-status-red-fg);
}

.yb-doc-state--green {
  background: var(--yb-status-green-bg);
  color: var(--yb-status-green-fg);
}

.yb-doc-state--blue {
  background: var(--yb-status-blue-bg);
  color: var(--yb-status-blue-fg);
}

/* ---------- Documents: list view ---------- */
/* D469: the rank of a document waiting in « En lecture ». */
.yb-doc-table__rank {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

/* D461: « En lecture » after its first 50 documents. */
.yb-doc-table__more {
  margin: var(--yb-space-2) 0 0;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-doc-table-host {
  container-type: inline-size;
  overflow-x: auto;
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-sm);
}

.yb-doc-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.yb-doc-table th {
  height: var(--yb-row-head-height);
  padding: 0 var(--yb-space-3);
  border-bottom: 1px solid var(--yb-border);
  background: var(--yb-bg-sunken);
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  font-weight: var(--yb-weight-medium);
  text-align: left;
}

.yb-doc-table td {
  height: var(--yb-row-height);
  overflow: hidden;
  padding: 0 var(--yb-space-3);
  border-bottom: 1px solid var(--yb-border);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yb-doc-table tbody tr:last-child td {
  border-bottom: 0;
}

.yb-doc-table tbody tr:hover {
  background: var(--yb-hover);
}

.yb-doc-table tbody tr.is-selected {
  background: var(--yb-selected);
}

.yb-doc-table__check {
  width: 40px;
}

.yb-doc-table__check input {
  width: 16px;
  height: 16px;
  accent-color: var(--yb-primary);
}

.yb-doc-table__name {
  width: auto;
}

/* Type · category under the name (lot 25b). */
.yb-doc-table__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.yb-doc-table__meta {
  display: block;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  line-height: 1.3;
}

.yb-doc-table__state {
  width: 120px;
}

/* Without the state column (narrow list), the mark of « Confirmée automatiquement » leads the type and the category. */
.yb-doc-table__auto {
  display: none;
  margin-right: 2px;
  color: var(--yb-status-green-fg);
  vertical-align: -2px;
}

.yb-doc-table__auto .mud-icon-root {
  font-size: 14px;
}

.yb-doc-table__icon--pdf {
  color: var(--yb-status-red-fg);
}

.yb-doc-table__icon--image {
  color: var(--yb-status-green-fg);
}

.yb-doc-table__date {
  width: 104px;
}

.yb-doc-table__amount {
  width: 140px;
  text-align: right;
}

th.yb-doc-table__amount {
  text-align: right;
}

.yb-doc-table__actions {
  width: 56px;
  text-align: right;
}

.yb-doc-table td.yb-doc-table__actions {
  overflow: visible;
  text-overflow: clip;
}

.yb-row-button {
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--yb-text);
  font: inherit;
  font-weight: var(--yb-weight-medium);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.yb-row-button:hover {
  color: var(--yb-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.yb-row-button:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--yb-focus);
  outline-offset: 2px;
}

@container (max-width: 720px) {
  .yb-doc-table .yb-col-optional {
    display: none;
  }

  .yb-doc-table__auto {
    display: inline;
  }
}

@container (max-width: 520px) {
  .yb-doc-table .yb-doc-table__date {
    display: none;
  }

  .yb-doc-table__amount {
    width: 112px;
  }

  .yb-doc-table__check {
    width: 36px;
  }

  .yb-doc-table__actions {
    width: 44px;
  }
}

/* ---------- Context menu anchor (opened at the cursor) ---------- */
.yb-context-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  overflow: hidden;
}

.yb-context-menu__anchor {
  display: block;
  width: 0;
  height: 0;
}

/* ---------- Upload queue ---------- */
.yb-uploads {
  position: fixed;
  right: var(--yb-space-6);
  bottom: var(--yb-space-6);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 32px));
  max-height: min(420px, 60vh);
  overflow: hidden;
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-md);
  background: var(--yb-surface-raised);
  box-shadow: var(--yb-shadow-md);
}

.yb-uploads--inline {
  position: static;
  width: 100%;
  max-height: none;
  box-shadow: none;
}

.yb-uploads__header {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 8px 8px 16px;
}

.yb-uploads__title {
  flex: 1;
  font-size: var(--yb-text-body);
  font-weight: var(--yb-weight-strong);
}

.yb-uploads__progress.mud-progress-linear {
  flex: none;
}

.yb-uploads__list {
  flex: 1;
  overflow-y: auto;
  margin: 0;
  padding: 4px 0;
  border-top: 1px solid var(--yb-border);
  list-style: none;
}

.yb-uploads__item {
  display: flex;
  align-items: flex-start;
  gap: var(--yb-space-3);
  padding: 8px 16px;
}

.yb-uploads__icon {
  display: inline-flex;
  flex: none;
  width: 20px;
  margin-top: 1px;
  color: var(--yb-text-muted);
}

.yb-uploads__item.is-done .yb-uploads__icon {
  color: var(--yb-success);
}

.yb-uploads__item.is-failed .yb-uploads__icon {
  color: var(--yb-error);
}

.yb-uploads__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.yb-uploads__name {
  overflow: hidden;
  font-weight: var(--yb-weight-medium);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yb-uploads__meta {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-uploads__item.is-failed .yb-uploads__meta {
  color: var(--yb-error);
}

/* A phone (D456): the queue opens folded; until the screen is known, its list stays hidden there (no flash). */
@media (max-width: 767px) {
  .yb-uploads.is-sizing .yb-uploads__list {
    display: none;
  }
}

/* Every file sent (owner, 2026-11-25): the reading goes on without the page. */
.yb-uploads__hint {
  margin: 0;
  padding: 0 16px 8px;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

/* ---------- File picker button (label + hidden input, looks like MudButton) ---------- */
.yb-file-button {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--yb-control-height);
  padding: 0 16px;
  border: 1px solid var(--yb-border-input);
  border-radius: var(--yb-radius-sm);
  background: transparent;
  color: var(--yb-text);
  font-size: var(--yb-text-body);
  font-weight: 550;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--yb-duration-fast) var(--yb-ease), border-color var(--yb-duration-fast) var(--yb-ease);
}

.yb-file-button:hover {
  background: var(--yb-hover);
}

.yb-file-button--filled {
  border-color: var(--yb-primary);
  background: var(--yb-primary);
  color: var(--yb-on-primary);
}

.yb-file-button--filled:hover {
  border-color: var(--yb-primary-hover);
  background: var(--yb-primary-hover);
}

.yb-file-button--icon {
  width: var(--yb-control-height);
  padding: 0;
}

.yb-file-button--large {
  height: 52px;
  padding: 0 24px;
  font-size: 15px;
}

/* The size of a small outlined MudButton (« Déposer » in the rows of « À faire », lot 30). */
.yb-file-button--small {
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-color: var(--yb-border-strong);
  background: var(--yb-surface);
  font-size: var(--yb-text-caption);
}

.yb-file-button--small:hover {
  border-color: var(--yb-border-input);
  background: var(--yb-bg-sunken);
}

.yb-file-button--small .yb-file-button__icon.mud-icon-root {
  font-size: 16px;
}

.yb-file-button:focus-within {
  outline: 2px solid var(--yb-focus);
  outline-offset: 2px;
}

.yb-file-button.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.yb-file-button__icon.mud-icon-root {
  font-size: 18px;
}

.yb-file-button__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 767px) {
  .yb-file-button:not(.yb-file-button--small) {
    height: var(--yb-touch-target);
  }

  .yb-file-button--icon {
    width: var(--yb-touch-target);
  }
}

/* ---------- Dialogs: name, folder picker ---------- */
.yb-share__switch {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.yb-share__switch span {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-picker__intro {
  color: var(--yb-text-muted);
}

.yb-picker {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: 340px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-sm);
}

.yb-picker__legend {
  padding: 0 4px;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  font-weight: var(--yb-weight-medium);
}

.yb-picker__option {
  position: relative;
  padding-left: calc(var(--yb-picker-depth, 0) * 18px);
}

.yb-picker__option input {
  position: absolute;
  opacity: 0;
}

.yb-picker__option label {
  display: flex;
  align-items: center;
  gap: var(--yb-space-2);
  min-height: 36px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: var(--yb-radius-sm);
  cursor: pointer;
}

.yb-picker__option label .mud-icon-root {
  color: var(--yb-text-muted);
}

.yb-picker__option label:hover {
  background: var(--yb-hover);
}

.yb-picker__option input:checked + label {
  border-color: var(--yb-primary);
  background: var(--yb-selected);
  font-weight: var(--yb-weight-medium);
}

.yb-picker__option input:checked + label .mud-icon-root {
  color: var(--yb-primary);
}

.yb-picker__option input:focus-visible + label {
  outline: 2px solid var(--yb-focus);
  outline-offset: 1px;
}

.yb-picker__option.is-disabled label {
  color: var(--yb-text-disabled);
  cursor: not-allowed;
}

/* ---------- Viewer ---------- */
/* The whole height of the screen, MudBlazor's margin aside (as the document preview). */

.yb-review__image {
  display: flex;
  flex: 1;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: var(--yb-space-6);
}

.yb-review__image img {
  max-width: 100%;
  height: auto;
  box-shadow: var(--yb-shadow-md);
}

/* The photo under review and its marks (in percent of the photo). */
.yb-review__photo {
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

.yb-review__photo img {
  display: block;
}

.yb-review__unsupported {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
}

/* ---------- Share dialog ---------- */
.yb-share__intro {
  color: var(--yb-text-muted);
}

.yb-share__link {
  display: flex;
  align-items: flex-end;
  gap: var(--yb-space-2);
}

.yb-share__url {
  flex: 1;
  min-width: 0;
}

.yb-share__url input {
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
}

.yb-share__copy {
  flex: none;
  height: var(--yb-field-height);
}

.yb-share__hint {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-share__warning {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--yb-warning);
  font-size: var(--yb-text-caption);
}

.yb-share__log {
  padding-top: var(--yb-space-4);
  border-top: 1px solid var(--yb-border);
}

.yb-share__log-title {
  margin-bottom: var(--yb-space-2);
  font-size: var(--yb-text-title-3);
  font-weight: var(--yb-weight-title-3);
}

.yb-share__entries {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-share__entries li {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--yb-space-3);
  padding: 6px 0;
  border-bottom: 1px dashed var(--yb-border);
  font-size: var(--yb-text-caption);
}

.yb-share__client {
  color: var(--yb-text-muted);
}

@media (max-width: 767px) {
  .yb-share__entries li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .mud-dialog-container .mud-dialog.yb-share-dialog,
  .mud-dialog-container .mud-dialog.yb-picker-dialog,
  .mud-dialog-container .mud-dialog.yb-name-dialog {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    border-radius: var(--yb-radius-lg) var(--yb-radius-lg) 0 0;
  }
}

/* ---------- The window of a document (lot 27b, D236): the document | the panel, the buttons at the bottom ---------- */
/* About 90 % of the screen on a computer, the whole screen on a phone (below). The window has no title bar of its own:
   its head names the document, browses (‹ 3 sur 7 ›), holds the menu ⋯ and ✕. */
.mud-dialog-container .mud-dialog.yb-window-dialog {
  width: min(92vw, 1720px);
  max-width: none;
  height: min(92dvh, 1180px);
  max-height: none;
  margin: 0;
  overflow: hidden;
}

.yb-window-dialog .mud-dialog-content.yb-window-dialog__content {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.yb-window {
  display: flex;
  flex: 1;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  outline: none;
}

.yb-window__head {
  display: flex;
  align-items: center;
  gap: var(--yb-space-3);
  min-height: 60px;
  padding: var(--yb-space-2) var(--yb-space-3) var(--yb-space-2) var(--yb-space-5);
  border-bottom: 1px solid var(--yb-border);
}

.yb-window__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: var(--yb-text-title-2);
  line-height: var(--yb-leading-title-2);
  font-weight: var(--yb-weight-title-2);
  letter-spacing: var(--yb-tracking-title-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yb-window__browse,
.yb-window__tools {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 2px;
}

.yb-window__position {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--yb-radius-pill);
  /* Neutral: the amber of « À vérifier » would say that a checked document is still to check (D243). */
  background: var(--yb-status-neutral-bg);
  color: var(--yb-status-neutral-fg);
  font-weight: var(--yb-weight-strong);
  white-space: nowrap;
}

.yb-window__tools {
  padding-left: var(--yb-space-2);
  border-left: 1px solid var(--yb-border);
}

.yb-window__body {
  display: grid;
  flex: 1;
  min-height: 0;
  grid-template-columns: minmax(0, 1.3fr) minmax(380px, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "stage panel"
    "stage actions";
}

.yb-window__stage {
  display: flex;
  grid-area: stage;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--yb-border);
  background: var(--yb-bg-sunken);
}

/* Fitted pages stay readable without filling a very wide screen (read by the pdf.js viewer, lot 23). */
.yb-window__stage .yb-pdf {
  --yb-pdf-fit-max: 860px;
  flex: 1;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.yb-window__stage .yb-pdf__desk {
  flex: 1;
  min-height: 0;
}

.yb-window__panel {
  position: relative;
  grid-area: panel;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.yb-window__labels {
  margin: 0;
  padding: var(--yb-space-4) var(--yb-space-5) var(--yb-space-3);
}

.yb-window__state {
  margin-left: auto;
}

.yb-window__panel > .yb-review__notice,
.yb-window__panel > .yb-review__split,
.yb-window__panel > .yb-review__duplicate {
  margin-bottom: var(--yb-space-1);
}

.yb-window__actions {
  display: flex;
  grid-area: actions;
  align-items: center;
  justify-content: flex-end;
  gap: var(--yb-space-2);
  padding: var(--yb-space-3) var(--yb-space-5);
  border-top: 1px solid var(--yb-border);
  background: var(--yb-surface-raised);
}

.yb-window__primary.mud-button-root {
  min-width: 168px;
}

/* A tablet: the document above, the panel under it; the whole window scrolls, the buttons stay at the bottom. */
@media (max-width: 1100px) {
  .yb-window__body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "stage"
      "panel"
      "actions";
    overflow-y: auto;
    overscroll-behavior: contain;
    /* A field brought into view (focus, « Plus de détails ») is not hidden behind the buttons. */
    scroll-padding-bottom: 88px;
  }

  /* Low enough to see the first fields under it without scrolling (D243). */
  .yb-window__stage {
    height: min(38dvh, 420px);
    border-right: 0;
    border-bottom: 1px solid var(--yb-border);
  }

  /* Its full height: the window scrolls, not the panel. */
  .yb-window__panel {
    min-height: auto;
    overflow: visible;
  }

  .yb-window__actions {
    position: sticky;
    bottom: 0;
    z-index: 1;
  }
}

/* A phone: the whole screen; the name on two lines, ‹ 3 sur 7 › under it; the buttons share the width of the screen. */
@media (max-width: 767px) {
  .mud-dialog-container .mud-dialog.yb-window-dialog {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  .yb-window__head {
    flex-wrap: wrap;
    gap: 0 var(--yb-space-2);
    min-height: 56px;
    padding: var(--yb-space-2) var(--yb-space-1) var(--yb-space-2) var(--yb-space-4);
  }

  .yb-window__title {
    display: -webkit-box;
    flex: 1 1 0;
    font-size: 1rem;
    line-height: 1.35;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .yb-window__tools {
    order: 2;
    padding-left: 0;
    border-left: 0;
  }

  .yb-window__browse {
    order: 3;
    flex: 1 1 100%;
    margin: 2px 0 -4px -12px;
  }

  /* Audit UX, page 11: low enough that the amount shows above the buttons before « Confirmer » (the page opens full
     screen with a tap). */
  .yb-window__stage {
    height: min(30dvh, 300px);
  }

  .yb-window__actions {
    gap: var(--yb-space-2);
    padding: var(--yb-space-2) var(--yb-space-3) calc(var(--yb-space-2) + env(safe-area-inset-bottom));
  }

  .yb-window__actions .mud-button-root {
    flex: 1 1 0;
    min-width: 0;
    min-height: var(--yb-touch-target);
    white-space: nowrap;
  }

  .yb-window__actions .yb-window__primary.mud-button-root {
    flex-grow: 1.5;
  }

  /* The split button takes the place of the main button; its arrow keeps its size. */
  .yb-window__actions .yb-split {
    flex: 1.5 1 0;
    min-width: 0;
  }

  .yb-window__actions .yb-split__menu {
    flex: 0 0 auto;
  }

  .yb-window__actions .yb-split .yb-split__toggle.mud-button-root {
    flex: 0 0 auto;
    min-width: 44px;
  }

  /* « Modifier » keeps its own width: « Marquer comme payée » and its arrow need the room. */
  .yb-window__actions:has(.yb-split) .yb-window__secondary.mud-button-root {
    flex: 0 0 auto;
  }

  .yb-window__labels {
    padding: var(--yb-space-3) var(--yb-space-4) var(--yb-space-2);
  }

  .yb-window__panel .yb-review__form {
    padding: var(--yb-space-3) var(--yb-space-4) var(--yb-space-2);
  }
}

/* A small phone: « Marquer comme payée » without its icon, to stay whole beside its arrow. */
@media (max-width: 380px) {
  .yb-window__actions .yb-split__main .mud-button-icon-start {
    display: none;
  }

  .yb-window__actions .yb-split .yb-split__main.mud-button-root {
    padding-inline: 12px;
  }
}

/* The smallest phones (320 px): on two lines rather than cut. */
@media (max-width: 340px) {
  .yb-window__actions .yb-split .yb-split__main.mud-button-root {
    line-height: 1.2;
    white-space: normal;
  }
}

.yb-review__notice {
  display: flex;
  align-items: center;
  gap: var(--yb-space-2);
  margin: 0 var(--yb-space-5);
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-review__notice--error {
  flex-wrap: wrap;
  padding: var(--yb-space-2) var(--yb-space-3);
  border-radius: var(--yb-radius-sm);
  background: var(--yb-error-soft);
  color: var(--yb-error);
}

.yb-review__form {
  padding: var(--yb-space-4) var(--yb-space-5) var(--yb-space-2);
}

/* A field that still holds the value read by the analysis. */
.yb-proposed {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* D381: only a doubtful value is highlighted; a sure one stays neutral, with its check mark. */
.yb-proposed.is-proposed:not(.is-sure) .mud-input-outlined-border {
  border-color: color-mix(in srgb, var(--yb-accent) 80%, var(--yb-border-input));
}

.yb-proposed.is-proposed:not(.is-sure) .mud-input.mud-input-outlined {
  background: var(--yb-accent-soft);
}

.yb-proposed__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--yb-on-accent-soft);
  font-size: 11.5px;
  font-weight: var(--yb-weight-medium);
}

.yb-proposed.is-low .yb-proposed__tag {
  color: var(--yb-warning);
}

.yb-proposed.is-low .mud-input-outlined-border {
  border-style: dashed;
}

/* ---------- Capture and trash ---------- */
.yb-capture .yb-panel__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--yb-space-6);
}

.yb-capture__shutter {
  display: flex;
  flex-direction: column;
  gap: var(--yb-space-3);
  padding: var(--yb-space-5);
  border: 2px dashed var(--yb-border-strong);
  border-radius: var(--yb-radius-md);
  background: var(--yb-bg-sunken);
}

.yb-capture__shutter .yb-file-button {
  width: 100%;
}

.yb-capture__hint {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  text-align: center;
}

.yb-capture__destination {
  display: flex;
  flex-direction: column;
  gap: var(--yb-space-4);
}

.yb-capture__next {
  display: flex;
  flex-wrap: wrap;
  gap: var(--yb-space-2);
}

@media (max-width: 767px) {
  .yb-capture .yb-panel__body {
    grid-template-columns: minmax(0, 1fr);
  }
}

.yb-trash {
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-trash__item {
  display: flex;
  align-items: center;
  gap: var(--yb-space-3);
  min-height: 60px;
  padding: var(--yb-space-2) var(--yb-space-4);
}

.yb-trash__item + .yb-trash__item {
  border-top: 1px solid var(--yb-border);
}

.yb-trash__icon.mud-icon-root {
  flex: none;
  color: var(--yb-text-muted);
}

.yb-trash__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.yb-trash__name {
  overflow: hidden;
  font-weight: var(--yb-weight-medium);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* A phone: the whole name, on two lines when needed, like the list (D235). */
@media (max-width: 767px) {
  .yb-trash__name {
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

.yb-trash__meta {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

/* ---------- Explorer responsive ---------- */
@media (max-width: 1279px) {
  .yb-drive {
    grid-template-columns: minmax(0, 1fr);
  }

  .yb-drive__aside {
    display: none;
  }

  .yb-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yb-ledger__cell:nth-child(3) {
    border-left: 0;
  }

  .yb-ledger__cell:nth-child(n + 3) {
    border-top: 1px dashed var(--yb-border-strong);
  }
}

@media (max-width: 767px) {
  .yb-review-banner {
    flex-wrap: wrap;
  }

  .yb-review-banner__action {
    width: 100%;
    padding-left: 52px;
  }

  .yb-drive__toolbar {
    padding: var(--yb-space-3);
  }

  .yb-drive__search {
    flex: 1 1 100%;
    width: auto;
  }

  .yb-drive__view .yb-segmented__option > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .yb-drive__view .yb-segmented__option {
    width: 40px;
    justify-content: center;
    padding: 0;
  }

  .yb-drive-page .yb-page-header__actions .yb-action-menu {
    order: 3;
  }

  .yb-tile__line--meta {
    flex-wrap: wrap;
    column-gap: var(--yb-space-2);
  }

  .yb-drive__content {
    padding: var(--yb-space-3);
  }

  .yb-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--yb-space-4) var(--yb-space-3);
  }

  .yb-tile__check {
    opacity: 1;
  }

  /* Touch: a 24 px target (WCAG 2.5.8), centred where the 16 px box was. */

  .yb-uploads {
    right: var(--yb-space-3);
    bottom: calc(var(--yb-bottomnav-height) + var(--yb-space-3) + env(safe-area-inset-bottom));
    left: var(--yb-space-3);
    width: auto;
  }

  .yb-ledger__cell {
    padding: var(--yb-space-2) var(--yb-space-3);
  }
}

/* ============================================================================================================
   Public share page (/s/{token}, static SSR)
   ============================================================================================================ */
.yb-share-site {
  min-height: 100dvh;
  background: var(--yb-frame);
  color: var(--yb-text);
}

.yb-share-site__bar {
  display: flex;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--yb-space-5) var(--yb-space-4) 0;
}

.yb-share-site__logo {
  color: var(--yb-text);
  text-decoration: none;
}

.yb-share-site__main {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--yb-space-6) var(--yb-space-4) var(--yb-space-12);
  outline: none;
}

.yb-share {
  display: flex;
  flex-direction: column;
  gap: var(--yb-space-4);
}

.yb-share-card {
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-lg);
  background: var(--yb-surface);
}

/* The example shown to fiduciaries (D449): fictitious figures, said before anything else. */
.yb-share-example {
  display: flex;
  align-items: flex-start;
  gap: var(--yb-space-3);
  padding: var(--yb-space-4) var(--yb-space-5);
  border-color: transparent;
  background: var(--yb-accent-soft);
  color: var(--yb-on-accent-soft);
}

.yb-share-example .mud-icon-root {
  flex: none;
  margin-top: 2px;
}

.yb-share-example a {
  color: inherit;
  font-weight: var(--yb-weight-medium);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.yb-share-card--narrow {
  max-width: 480px;
  margin: 8vh auto 0;
  padding: var(--yb-space-8) var(--yb-space-6);
}

/* Head: issuer like the letterhead of a document, then the title and the ZIP. */
.yb-share-head {
  overflow: hidden;
}

.yb-share-head__issuer {
  display: flex;
  align-items: flex-start;
  gap: var(--yb-space-4);
  padding: var(--yb-space-6) var(--yb-space-6) var(--yb-space-5);
  border-bottom: 1px solid var(--yb-border);
}

.yb-share-head__monogram {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--yb-radius-md);
  background: var(--yb-brand-surface);
  color: var(--yb-on-brand);
  font-size: 18px;
  font-weight: var(--yb-weight-strong);
  letter-spacing: -0.02em;
}

.yb-share-head__company {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.yb-share-head__name {
  font-size: var(--yb-text-title-2);
  line-height: var(--yb-leading-title-2);
  font-weight: var(--yb-weight-title-2);
}

.yb-share-head__address,
.yb-share-head__contacts {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  white-space: pre-wrap;
}

.yb-share-head__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--yb-space-4);
  padding: var(--yb-space-6) var(--yb-space-6) var(--yb-space-5);
}

.yb-share-head__title {
  font-size: var(--yb-text-title-1);
  line-height: var(--yb-leading-title-1);
  font-weight: var(--yb-weight-title-1);
  letter-spacing: var(--yb-tracking-title-1);
}

.yb-share-head__period {
  margin-top: 2px;
  color: var(--yb-text-muted);
}

.yb-ledger--share {
  border-top: 1px solid var(--yb-border);
  border-bottom: 0;
}

.yb-ledger--share .yb-ledger__cell {
  padding: var(--yb-space-4) var(--yb-space-6);
}

.yb-share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--yb-border-input);
  border-radius: var(--yb-radius-sm);
  background: transparent;
  color: var(--yb-text);
  font: inherit;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
}

.yb-share-button--primary {
  border-color: var(--yb-primary);
  background: var(--yb-primary);
  color: var(--yb-on-primary);
}

.yb-share-button--primary:hover {
  border-color: var(--yb-primary-hover);
  background: var(--yb-primary-hover);
  color: var(--yb-on-primary);
}

.yb-share-button:focus-visible,
.yb-share-icon-link:focus-visible,
.yb-share-table__name:focus-visible,
.yb-share-folder__summary:focus-visible {
  outline: 2px solid var(--yb-focus);
  outline-offset: 2px;
}

.yb-share-button__meta {
  padding-left: 10px;
  border-left: 1px solid color-mix(in srgb, var(--yb-on-primary) 35%, transparent);
  font-size: var(--yb-text-caption);
  font-weight: var(--yb-weight-medium);
  opacity: 0.9;
}

/* Folders as foldable sections. */
.yb-share-folders {
  display: flex;
  flex-direction: column;
  gap: var(--yb-space-3);
}

.yb-share-folder {
  overflow: hidden;
}

.yb-share-folder__summary {
  display: flex;
  align-items: center;
  gap: var(--yb-space-3);
  min-height: 56px;
  padding: var(--yb-space-2) var(--yb-space-5);
  font-size: var(--yb-text-title-3);
  font-weight: var(--yb-weight-title-3);
  list-style: none;
  cursor: pointer;
}

.yb-share-folder__summary::-webkit-details-marker {
  display: none;
}

.yb-share-folder__chevron.mud-icon-root {
  flex: none;
  color: var(--yb-text-muted);
  transition: transform var(--yb-duration-fast) var(--yb-ease);
}

.yb-share-folder:not([open]) > .yb-share-folder__summary .yb-share-folder__chevron {
  transform: rotate(-90deg);
}

.yb-share-folder__icon.mud-icon-root {
  flex: none;
  color: var(--yb-primary);
}

.yb-share-folder__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yb-share-folder__count {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  font-weight: var(--yb-weight-medium);
}

/* The account of a category, for the fiduciary (lot 27: the page is presented by category). */
.yb-share-folder__account {
  padding: 1px 6px;
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-sm);
  color: var(--yb-text-muted);
  font-size: 11.5px;
  font-weight: var(--yb-weight-medium);
}

.yb-share-folder__total {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 120px;
  line-height: 1.2;
}

.yb-share-folder__vat {
  color: var(--yb-text-muted);
  font-size: 11.5px;
  font-weight: var(--yb-weight-medium);
}

.yb-share-folder__ok {
  display: inline-flex;
  color: var(--yb-success);
}

.yb-share-folder__body {
  padding-bottom: var(--yb-space-2);
}

.yb-share-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.yb-share-table th {
  height: 34px;
  padding: 0 var(--yb-space-3);
  border-top: 1px solid var(--yb-border);
  border-bottom: 1px solid var(--yb-border);
  background: var(--yb-bg-sunken);
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  font-weight: var(--yb-weight-medium);
  text-align: left;
}

.yb-share-table th:first-child,
.yb-share-table td:first-child {
  padding-left: var(--yb-space-5);
}

.yb-share-table td {
  height: 52px;
  padding: 6px var(--yb-space-3);
  border-bottom: 1px dashed var(--yb-border);
}

.yb-share-table tbody tr:last-child td {
  border-bottom: 0;
}

.yb-share-table tbody tr:hover {
  background: var(--yb-hover);
}

.yb-share-table__date {
  width: 108px;
  color: var(--yb-text-muted);
}

.yb-share-table__number {
  width: 96px;
  white-space: nowrap;
}

.yb-share-table__class {
  display: block;
  overflow: hidden;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yb-share-table__doc {
  overflow: hidden;
}

.yb-share-table__name {
  display: block;
  overflow: hidden;
  color: var(--yb-text);
  font-weight: var(--yb-weight-medium);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yb-share-table__name:hover {
  color: var(--yb-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.yb-share-table__supplier {
  display: block;
  overflow: hidden;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yb-share-table__amount {
  width: 136px;
  text-align: right;
}

th.yb-share-table__amount {
  text-align: right;
}

.yb-share-table__vat {
  width: 96px;
  color: var(--yb-text-muted);
}

.yb-share-table__actions {
  width: 64px;
  padding-right: var(--yb-space-5) !important;
  text-align: right;
}

.yb-share-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--yb-radius-sm);
  color: var(--yb-text-muted);
}

.yb-share-icon-link:hover {
  background: var(--yb-hover);
  color: var(--yb-primary);
}

.yb-share-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--yb-space-2);
  padding: var(--yb-space-4) var(--yb-space-2) 0;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-share-foot a {
  color: var(--yb-text);
  font-weight: var(--yb-weight-medium);
}

/* Code page */
.yb-share-lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--yb-space-3);
  text-align: center;
}

.yb-share-lock__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--yb-accent-soft);
  color: var(--yb-on-accent-soft);
}

.yb-share-lock__title {
  font-size: var(--yb-text-title-2);
  line-height: var(--yb-leading-title-2);
  font-weight: var(--yb-weight-title-2);
}

.yb-share-lock__text {
  color: var(--yb-text-muted);
}

.yb-share-lock__form {
  display: flex;
  flex-direction: column;
  gap: var(--yb-space-4);
  width: 100%;
  margin-top: var(--yb-space-3);
  text-align: left;
}

.yb-share-lock__form .yb-share-button {
  justify-content: center;
}

.yb-share-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yb-share-field__label {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  font-weight: var(--yb-weight-medium);
}

.yb-share-field__input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--yb-border-input);
  border-radius: var(--yb-radius-sm);
  background: var(--yb-surface);
  color: var(--yb-text);
  font: inherit;
  font-size: 16px;
}

.yb-share-field__input:focus {
  border-color: var(--yb-primary);
  outline: 2px solid color-mix(in srgb, var(--yb-focus) 30%, transparent);
}

.yb-share-field__input.is-invalid {
  border-color: var(--yb-error);
}

.yb-share-field__error {
  color: var(--yb-error);
  font-size: var(--yb-text-caption);
}

@media (max-width: 767px) {
  .yb-share-site__main {
    padding: var(--yb-space-4) var(--yb-space-3) var(--yb-space-8);
  }

  .yb-share-head__issuer,
  .yb-share-head__title-row {
    padding-right: var(--yb-space-4);
    padding-left: var(--yb-space-4);
  }

  .yb-share-head__title-row .yb-share-button {
    width: 100%;
    justify-content: center;
  }

  .yb-share-button__meta {
    display: none;
  }

  .yb-share-table .yb-share-table__date,
  .yb-share-table .yb-share-table__number {
    display: none;
  }

  .yb-share-table__mobile-date {
    display: inline;
    margin-right: 6px;
  }

  .yb-share-table td.yb-share-table__doc {
    padding-left: var(--yb-space-4);
  }

  .yb-ledger--share .yb-ledger__cell {
    padding: var(--yb-space-3) var(--yb-space-4);
  }

  .yb-share-table thead,
  .yb-share-table .yb-share-table__vat {
    display: none;
  }

  .yb-share-table__amount {
    width: 104px;
  }

  .yb-share-table__actions {
    width: 48px;
    padding-right: var(--yb-space-3) !important;
  }

  .yb-share-table td:first-child {
    padding-left: var(--yb-space-4);
  }

  .yb-share-folder__summary {
    flex-wrap: wrap;
    padding: var(--yb-space-2) var(--yb-space-4);
  }

  .yb-share-folder__total {
    min-width: 0;
  }

}

/* ---------- Confirmation of typed documents (lot 25b): labels, details on demand, VAT per rate ---------- */
.yb-review__labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yb-space-2);
  margin-bottom: var(--yb-space-3);
}

.yb-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px 0 8px;
  border: 1px solid var(--yb-border-strong);
  border-radius: var(--yb-radius-pill);
  background: var(--yb-surface);
  color: var(--yb-text);
  font: inherit;
  font-weight: var(--yb-weight-medium);
  cursor: pointer;
}

.yb-type-chip:focus-visible {
  outline: 2px solid var(--yb-focus);
  outline-offset: 2px;
}

.yb-type-chip:disabled {
  cursor: default;
}

.yb-type-chip:hover {
  border-color: var(--yb-border-input);
}

.yb-type-chip .mud-icon-root {
  color: var(--yb-text-muted);
  font-size: 18px;
}

.yb-type-chip.is-doubtful {
  border-style: dashed;
  border-color: var(--yb-warning);
}

.yb-type-menu .mud-menu-item.is-current {
  font-weight: var(--yb-weight-strong);
}

.yb-review__doubt {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--yb-radius-pill);
  background: var(--yb-warning-soft);
  color: var(--yb-warning);
  font-size: var(--yb-text-caption);
  font-weight: var(--yb-weight-medium);
}

.yb-review__auto {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--yb-success);
  font-size: var(--yb-text-caption);
  font-weight: var(--yb-weight-medium);
}

.yb-review__auto .mud-icon-root {
  font-size: 16px;
}

.yb-review__money {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: var(--yb-space-2);
}

.yb-review__more,
.yb-review__sub,
.yb-category-dialog__more {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin: var(--yb-space-2) 0 0;
  padding: 0 6px 0 2px;
  border: 0;
  border-radius: var(--yb-radius-sm);
  background: none;
  color: var(--yb-link, var(--yb-text));
  font: inherit;
  font-weight: var(--yb-weight-medium);
  cursor: pointer;
}

.yb-review__sub {
  min-height: 30px;
  margin: 0;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-review__more:hover,
.yb-review__sub:hover,
.yb-category-dialog__more:hover {
  background: var(--yb-bg-sunken);
}

.yb-review__more:focus-visible,
.yb-review__sub:focus-visible,
.yb-category-dialog__more:focus-visible {
  outline: 2px solid var(--yb-focus, var(--yb-accent));
  outline-offset: 2px;
}

.yb-review__details {
  display: flex;
  flex-direction: column;
  gap: var(--yb-space-3);
  margin-top: var(--yb-space-2);
  padding-top: var(--yb-space-3);
  border-top: 1px dashed var(--yb-border);
}

.yb-review__hint {
  margin: 0;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-review__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 2px var(--yb-space-3);
  margin: var(--yb-space-4) 0 0;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-review__year-change {
  min-height: 24px;
  font-size: inherit;
}

.yb-review__summary-move {
  color: var(--yb-info);
  font-weight: var(--yb-weight-medium);
}

.yb-review__split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yb-space-2) var(--yb-space-3);
  margin: 0 var(--yb-space-5);
  padding: var(--yb-space-2) var(--yb-space-3);
  border-radius: var(--yb-radius-sm);
  background: var(--yb-info-soft);
  color: var(--yb-text);
}

.yb-review__split > .mud-icon-root {
  color: var(--yb-info);
}

.yb-review__split > span:first-of-type {
  flex: 1 1 200px;
}

.yb-review__split-actions {
  display: inline-flex;
  gap: var(--yb-space-2);
}

.yb-proposed__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yb-accent);
}

.yb-proposed.is-low .yb-proposed__dot {
  background: var(--yb-warning);
}

.yb-proposed.is-sure .yb-proposed__tag {
  color: var(--yb-success);
}

.yb-proposed.is-sure .yb-proposed__tag .mud-icon-root {
  font-size: 15px;
}

.yb-vat-lines {
  display: flex;
  flex-direction: column;
  gap: var(--yb-space-2);
}

.yb-vat-lines__row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr) 36px;
  align-items: center;
  gap: var(--yb-space-2);
}

.yb-vat-lines__add.mud-button-root {
  align-self: flex-start;
}

/* ---------- Réglages › Pièces › Catégories (lot 25b) ---------- */
.yb-categories {
  margin: 0 0 var(--yb-space-3);
  padding: 0;
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-md);
  list-style: none;
}

.yb-categories__item {
  display: flex;
  align-items: center;
  gap: var(--yb-space-3);
  min-height: 52px;
  padding: var(--yb-space-2) var(--yb-space-2) var(--yb-space-2) var(--yb-space-4);
}

.yb-categories__item + .yb-categories__item {
  border-top: 1px solid var(--yb-border);
}

.yb-categories__item.is-hidden .yb-categories__text {
  opacity: 0.6;
}

.yb-categories__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.yb-categories__name {
  font-weight: var(--yb-weight-medium);
}

.yb-categories__description {
  overflow: hidden;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yb-categories__meta {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--yb-space-2);
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-categories__hidden,
.yb-categories__kind {
  padding: 1px 8px;
  border-radius: var(--yb-radius-pill);
  background: var(--yb-bg-sunken);
}

.yb-categories__actions {
  display: inline-flex;
  flex: none;
}

@media (max-width: 767px) {
  .yb-vat-lines__row {
    grid-template-columns: 104px minmax(0, 1fr) minmax(0, 1fr) 28px;
    gap: var(--yb-space-1);
  }

  .yb-categories__item {
    gap: var(--yb-space-2);
    padding-left: var(--yb-space-3);
  }

  .yb-review__split {
    margin: 0 var(--yb-space-4);
  }
}
/* ---------- Classification learned behind the scenes (lot 26): habit badge, duplicate notice ---------- */
.yb-habit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: calc(-1 * var(--yb-space-1));
  color: var(--yb-primary);
  font-size: var(--yb-text-caption);
  font-weight: var(--yb-weight-medium);
}

.yb-habit .mud-icon-root {
  font-size: 16px;
}

.yb-habit__undo {
  min-height: 32px;
  padding: 0 6px;
  border: 0;
  border-radius: var(--yb-radius-sm);
  background: none;
  color: var(--yb-text-muted);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.yb-habit__undo:hover {
  background: var(--yb-bg-sunken);
  color: var(--yb-text);
}

.yb-habit__undo:focus-visible {
  outline: 2px solid var(--yb-focus);
  outline-offset: 1px;
}

.yb-review__duplicate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yb-space-2) var(--yb-space-3);
  margin: 0 var(--yb-space-5);
  padding: var(--yb-space-2) var(--yb-space-3);
  border-radius: var(--yb-radius-sm);
  background: var(--yb-warning-soft);
  color: var(--yb-text);
}

.yb-review__duplicate > .mud-icon-root {
  color: var(--yb-warning);
}

.yb-review__duplicate-text {
  flex: 1 1 220px;
}

.yb-review__duplicate-text a {
  color: inherit;
  font-weight: var(--yb-weight-medium);
  font-variant-numeric: tabular-nums;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.yb-review__duplicate-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--yb-space-2);
}

@media (max-width: 767px) {
  .yb-review__duplicate {
    margin: 0 var(--yb-space-4);
  }
}

/* ============================================================================================================
   Lot 27 — new interface of the accounting documents (D222): left column of groups, search and folded filters,
   list with the supplier first, suppliers, fiche of a document.
   ============================================================================================================ */

/* ---------- Left column: sections, counts ---------- */
.yb-drive-nav {
  gap: var(--yb-space-1);
}

.yb-drive-nav__heading {
  margin: var(--yb-space-3) 0 2px;
  padding: 0 10px;
  color: var(--yb-text-muted);
  font-size: 11.5px;
  font-weight: var(--yb-weight-strong);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* « Autres pièces » has its own heading, like « Dépenses » and « Mes dossiers »: only the last group keeps a line. */
.yb-drive-nav__list--bottom {
  margin-top: var(--yb-space-2);
  padding-top: var(--yb-space-2);
  border-top: 1px solid var(--yb-border);
}

.yb-drive-nav .yb-tree__node.is-current .yb-tree__count {
  color: var(--yb-text);
  font-weight: var(--yb-weight-medium);
}

/* A long category name goes on two lines rather than ending with « … » (D235). */
.yb-drive-nav .yb-tree__name {
  overflow: visible;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: break-word;
}

/* ---------- Heading of the list: picker (narrow screens), name, summary, menu ---------- */
.yb-drive__heading {
  display: flex;
  flex: 1 1 320px;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yb-space-2) var(--yb-space-3);
  min-width: 0;
}

.yb-drive__title {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px var(--yb-space-2);
  min-width: 0;
}

.yb-drive__title .yb-drive__location {
  padding: 0;
}

.yb-drive__summary {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  font-weight: var(--yb-weight-medium);
  white-space: nowrap;
}

/* « CHF 8’420 en 2026 · +12 % sur 2025 » (lot 29, D298): the year of a category or a supplier, on its own line under the
   name, the amount in the text colour and the evolution muted. */
.yb-drive__spending {
  display: inline-flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--yb-space-2);
  font-size: var(--yb-text-caption);
}

.yb-drive__spending-amount {
  color: var(--yb-text);
  font-weight: var(--yb-weight-strong);
}

.yb-drive__spending-trend {
  color: var(--yb-text-muted);
  font-weight: var(--yb-weight-medium);
}

.yb-drive__spending-trend::before {
  content: "·";
  margin-right: var(--yb-space-2);
}

/* « Ces pièces ne comptent pas dans les dépenses », on a line of its own under the name (D235). */
.yb-drive__note {
  flex-basis: 100%;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-drive__back {
  color: var(--yb-text-muted);
  text-decoration: none;
}

.yb-drive__back:hover {
  color: var(--yb-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.yb-drive__location-menu {
  margin-left: -2px;
}

.yb-drive-picker {
  display: none;
}

.yb-drive-picker__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 36px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--yb-border-strong);
  border-radius: var(--yb-radius-sm);
  background: var(--yb-surface);
  color: var(--yb-text);
  font: inherit;
  font-weight: var(--yb-weight-medium);
  cursor: pointer;
}

.yb-drive-picker__button:hover {
  border-color: var(--yb-border-input);
  background: var(--yb-hover);
}

.yb-drive-picker__button:focus-visible {
  outline: 2px solid var(--yb-focus);
  outline-offset: 2px;
}

.yb-drive-picker__button .mud-icon-root {
  flex: none;
  color: var(--yb-text-muted);
}

.yb-drive-picker__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yb-drive-menu .mud-menu-item.is-current {
  background: var(--yb-selected);
  font-weight: var(--yb-weight-medium);
}

.yb-drive-menu__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--yb-space-4);
  min-width: 200px;
}

.yb-drive-menu__count {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

/* ---------- Search and folded filters ---------- */
.yb-drive__filters {
  padding: var(--yb-space-3) var(--yb-space-4) 0;
}

.yb-drive-filters {
  display: flex;
  flex-direction: column;
  gap: var(--yb-space-3);
}

.yb-drive-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yb-space-2);
}

.yb-drive-filters__row .yb-drive__search {
  flex: 1 1 280px;
  max-width: 420px;
}

.yb-drive-filters__row .yb-drive__view {
  margin-left: auto;
}

.yb-drive-filters__toggle {
  height: 40px;
}

.yb-drive-filters__toggle.is-open {
  border-color: var(--yb-border-input);
  background: var(--yb-bg-sunken);
  color: var(--yb-text);
}

.yb-drive-filters__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--yb-radius-pill);
  background: var(--yb-primary);
  color: var(--yb-on-primary);
  font-size: 11.5px;
  font-weight: var(--yb-weight-strong);
}

.yb-drive-filters__panel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--yb-space-3);
  padding: var(--yb-space-3);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-sm);
  background: var(--yb-bg-sunken);
}

.yb-drive-filters__panel .mud-input-control {
  margin: 0;
}

.yb-drive-filters__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yb-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-drive-filters__chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 30px;
  padding: 0 2px 0 10px;
  border: 1px solid color-mix(in srgb, var(--yb-primary) 35%, var(--yb-border));
  border-radius: var(--yb-radius-pill);
  background: var(--yb-primary-soft);
  color: var(--yb-on-primary-soft);
  font-size: var(--yb-text-caption);
  font-weight: var(--yb-weight-medium);
}

.yb-drive-filters__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.yb-drive-filters__remove:hover {
  background: color-mix(in srgb, var(--yb-primary) 14%, transparent);
}

.yb-drive-filters__remove:focus-visible {
  outline: 2px solid var(--yb-focus);
  outline-offset: 1px;
}

.yb-drive-filters__remove .mud-icon-root {
  font-size: 16px;
}

.yb-drive-filters__clear {
  padding: 4px 6px;
  border: 0;
  background: none;
  color: var(--yb-text-muted);
  font: inherit;
  font-size: var(--yb-text-caption);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.yb-drive-filters__clear:hover {
  color: var(--yb-text);
}

/* ---------- The list: supplier first, sortable headers ---------- */
.yb-doc-table--pieces .yb-doc-table__name,
.yb-doc-table--suppliers .yb-doc-table__name {
  width: auto;
}

.yb-doc-table--pieces td,
.yb-doc-table--suppliers td {
  height: 56px;
}

.yb-doc-table--pieces .yb-doc-table__date {
  width: 116px;
}

.yb-doc-table--pieces .yb-doc-table__amount {
  width: 152px;
}

/* Wide enough for « Paiement préparé le 05.11 » (lot 28a). */
.yb-doc-table--pieces .yb-doc-table__state {
  width: 200px;
}

/* « À me rembourser » (D293): « Marquer comme remboursée » on each row, on one line. */
.yb-doc-table--reimburse .yb-doc-table__state {
  width: 248px;
}

.yb-doc-table__reimburse {
  white-space: nowrap;
}

/* A narrow list (under the supplier, a phone): the button keeps all its words, on two lines when needed. */
@container (max-width: 720px) {
  .yb-doc-table__reimburse,
  .yb-doc-table__reimburse .mud-button-label {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.25;
  }

  .yb-doc-table__reimburse {
    height: auto;
    min-height: 30px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
}

.yb-doc-table--suppliers .yb-doc-table__count {
  width: 96px;
  text-align: right;
}

.yb-doc-table--suppliers th.yb-doc-table__count .yb-sort-header {
  justify-content: flex-end;
}

.yb-doc-table--suppliers .yb-doc-table__amount {
  width: 180px;
}

.yb-doc-table .yb-row-button {
  font-size: var(--yb-text-body);
}

a.yb-row-button {
  text-decoration: none;
}

.yb-row-button--file {
  color: var(--yb-text-muted);
  font-weight: var(--yb-weight-regular);
}

.yb-doc-table__meta {
  display: flex;
  align-items: center;
  gap: 4px;
}

.yb-doc-table__meta > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.yb-doc-table--pieces .yb-doc-table__auto {
  display: inline-flex;
  flex: none;
}

.yb-doc-table__amount-date,
.yb-doc-table__state-inline,
.yb-doc-table__meta--phone {
  display: none;
}

.yb-doc-table__amount .yb-money {
  justify-content: flex-end;
}

/* D399: paid in part by the bank — what is left, under the amount. */
.yb-doc-table__amount-left {
  display: block;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  text-align: right;
}

.yb-doc-table tbody tr.is-revealed {
  background: var(--yb-selected);
  transition: background-color 1.2s var(--yb-ease);
}

.yb-sort-header {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  height: 28px;
  margin-left: -6px;
  padding: 0 6px;
  border: 0;
  border-radius: var(--yb-radius-sm);
  background: none;
  color: inherit;
  font: inherit;
  font-weight: var(--yb-weight-medium);
  cursor: pointer;
}

th.yb-doc-table__amount .yb-sort-header {
  margin-right: -6px;
  margin-left: 0;
}

.yb-sort-header:hover {
  background: var(--yb-hover);
  color: var(--yb-text);
}

.yb-sort-header:focus-visible {
  outline: 2px solid var(--yb-focus);
  outline-offset: 1px;
}

.yb-sort-header.is-active {
  color: var(--yb-text);
}

.yb-sort-header__icon.mud-icon-root {
  font-size: 15px;
  opacity: 0;
}

.yb-sort-header:hover .yb-sort-header__icon,
.yb-sort-header.is-active .yb-sort-header__icon {
  opacity: 1;
}

.yb-drive__skeleton--list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-sm);
}

.yb-drive__skeleton-row {
  display: grid;
  grid-template-columns: 1fr 120px 150px;
  align-items: center;
  gap: var(--yb-space-4);
  height: 56px;
  padding: 0 var(--yb-space-4);
  border-bottom: 1px solid var(--yb-border);
}

.yb-drive__skeleton-row:last-child {
  border-bottom: 0;
}

.yb-tile__name--file {
  color: var(--yb-text-muted);
  font-weight: var(--yb-weight-regular);
}

@container (max-width: 720px) {
  .yb-doc-table__state-inline {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 4px;
  }

  /* The state under « type · catégorie »: the row breathes around its three lines. */
  .yb-doc-table--pieces td.yb-doc-table__name {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

/* A phone: each row becomes a small grid — supplier and « type · catégorie » on the left, the amount and the date
   under it on the right; the headers go (the list stays sorted by date). */
@container (max-width: 560px) {
  .yb-doc-table--pieces,
  .yb-doc-table--pieces tbody,
  .yb-doc-table--suppliers,
  .yb-doc-table--suppliers tbody {
    display: block;
  }

  .yb-doc-table--pieces thead,
  .yb-doc-table--suppliers thead {
    display: none;
  }

  .yb-doc-table--pieces tr,
  .yb-doc-table--suppliers tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: var(--yb-space-2);
    padding: 10px 2px 10px var(--yb-space-3);
    border-bottom: 1px solid var(--yb-border);
  }

  .yb-doc-table--pieces tbody tr:last-child,
  .yb-doc-table--suppliers tbody tr:last-child {
    border-bottom: 0;
  }

  .yb-doc-table--pieces td,
  .yb-doc-table--suppliers td {
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
  }

  .yb-doc-table--pieces td.yb-doc-table__check {
    grid-column: 1;
  }

  .yb-doc-table--pieces td.yb-doc-table__name,
  .yb-doc-table--suppliers td.yb-doc-table__name {
    grid-column: 2;
    padding: 0;
  }

  .yb-doc-table--pieces td.yb-doc-table__amount,
  .yb-doc-table--suppliers td.yb-doc-table__amount {
    grid-column: 3;
    width: auto;
    text-align: right;
  }

  .yb-doc-table--pieces td.yb-doc-table__actions,
  .yb-doc-table--suppliers td.yb-doc-table__actions {
    grid-column: 4;
    width: 40px;
  }

  .yb-doc-table--pieces td.yb-doc-table__date,
  .yb-doc-table--pieces td.yb-col-optional,
  .yb-doc-table--suppliers td.yb-doc-table__count {
    display: none;
  }

  .yb-doc-table__amount-date {
    display: block;
    margin-top: 2px;
    color: var(--yb-text-muted);
    font-size: var(--yb-text-caption);
    line-height: 1.2;
  }

  .yb-doc-table__state-inline {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 4px;
  }

  .yb-doc-table__meta--phone {
    display: block;
  }

  /* The whole supplier and « type · catégorie » rather than « … »: two lines when needed (D235). */
  .yb-doc-table--pieces .yb-row-button,
  .yb-doc-table--suppliers .yb-row-button,
  .yb-doc-table--pieces .yb-row-button .yb-truncate,
  .yb-doc-table--suppliers .yb-row-button .yb-truncate,
  .yb-doc-table--pieces .yb-doc-table__meta,
  .yb-doc-table--pieces .yb-doc-table__meta > span:last-child {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: break-word;
  }
}

/* ---------- Banner: documents being read ---------- */
/* « 3 autres pièces en cours de lecture… »: its own link under the banner of the documents to check (D456). */
.yb-review-reading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.yb-review-reading .yb-doc-state__spinner,
.yb-review-banner--reading .yb-doc-state__spinner {
  border-color: color-mix(in srgb, currentColor 30%, transparent);
  border-top-color: currentColor;
}

.yb-review-banner--reading {
  border-color: color-mix(in srgb, var(--yb-info) 30%, var(--yb-border));
  background: var(--yb-info-soft);
  color: var(--yb-info);
}

.yb-review-banner--reading:hover {
  border-color: color-mix(in srgb, var(--yb-info) 30%, var(--yb-border));
  color: var(--yb-info);
}

.yb-review-banner--reading .yb-review-banner__count {
  background: color-mix(in srgb, var(--yb-info) 14%, transparent);
  color: var(--yb-info);
}

.yb-review-banner--reading .yb-review-banner__text span {
  color: var(--yb-text-muted);
}

/* ---------- Option picker: hint, nothing found, create ---------- */
.yb-picker__hint {
  margin-left: auto;
  padding-left: var(--yb-space-3);
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  white-space: nowrap;
}

.yb-picker__empty {
  padding: var(--yb-space-3);
  color: var(--yb-text-muted);
  text-align: center;
}

.yb-picker-dialog .yb-search-bar {
  max-width: none;
}

.yb-picker__create {
  align-self: flex-start;
}

/* ---------- The essentials of a checked document (the fiche of lot 27, in the window since lot 27b) ---------- */
.yb-piece {
  display: flex;
  flex-direction: column;
  gap: var(--yb-space-4);
  padding: var(--yb-space-5);
}

.yb-piece__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--yb-space-2) var(--yb-space-3);
}

.yb-piece__type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 10px 4px 8px;
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-pill);
  background: var(--yb-bg-sunken);
  font-size: var(--yb-text-body);
  font-weight: var(--yb-weight-medium);
}

.yb-piece__type .mud-icon-root {
  color: var(--yb-primary);
}

.yb-piece .yb-review__notice,
.yb-piece .yb-review__duplicate {
  margin: 0;
}

.yb-piece__facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-md);
}

.yb-piece__fact {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: baseline;
  gap: var(--yb-space-3);
  padding: var(--yb-space-3) var(--yb-space-4);
}

.yb-piece__fact + .yb-piece__fact {
  border-top: 1px dashed var(--yb-border-strong);
}

.yb-piece__fact dt {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  font-weight: var(--yb-weight-medium);
}

.yb-piece__fact dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: var(--yb-weight-medium);
}

.yb-piece__fact dd a {
  color: var(--yb-text);
  text-decoration: underline;
  text-decoration-color: var(--yb-border-strong);
  text-underline-offset: 3px;
}

.yb-piece__fact dd a:hover {
  color: var(--yb-primary);
  text-decoration-color: currentColor;
}

.yb-piece__fact--amount {
  align-items: center;
  background: var(--yb-bg-sunken);
  border-radius: var(--yb-radius-md) var(--yb-radius-md) 0 0;
}

.yb-piece__none {
  color: var(--yb-text-disabled);
  font-weight: var(--yb-weight-regular);
}

.yb-piece .yb-review__more {
  margin-top: 0;
}

.yb-piece__details {
  display: flex;
  flex-direction: column;
  gap: var(--yb-space-2);
  margin: -8px 0 0;
  padding: var(--yb-space-3) var(--yb-space-4);
  border-left: 2px solid var(--yb-border);
}

.yb-piece__details > div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: var(--yb-space-3);
}

.yb-piece__details dt {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-piece__details dd {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.yb-piece__rates,
.yb-piece__original {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-piece-history {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding-top: var(--yb-space-3);
  border-top: 1px solid var(--yb-border);
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-piece-history .mud-icon-root {
  flex: none;
  font-size: 16px;
}

/* ---------- Narrow screens ---------- */
@media (max-width: 1279px) {
  .yb-drive-picker {
    display: inline-flex;
    align-self: flex-start;
    max-width: 100%;
  }

  .yb-drive-picker .mud-menu-activator {
    justify-content: flex-start;
  }

  /* The picker names the place shown: the title stays for screen readers (a supplier keeps its name visible). */
  .yb-drive__title:not(.yb-drive__title--named) .yb-drive__location {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .yb-drive__title:not(.yb-drive__title--named) {
    flex: 0 1 auto;
  }
}

@media (max-width: 767px) {
  .yb-drive__filters {
    padding: var(--yb-space-3) var(--yb-space-3) 0;
  }

  .yb-drive-filters__row .yb-drive__search {
    flex: 1 1 100%;
    max-width: none;
  }

  .yb-drive-filters__panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .yb-piece {
    padding: var(--yb-space-4);
  }

  .yb-piece__fact,
  .yb-piece__details > div {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .yb-drop-overlay__message {
    padding: var(--yb-space-5);
  }
}

/* ---------- Payments (lot 28a): states, « À payer », « Payer avec mon e-banking » ---------- */
.yb-doc-state--petrol {
  background: var(--yb-status-petrol-bg);
  color: var(--yb-status-petrol-fg);
}

/* What is left to do and the payment, one under the other (both only in « À payer »). */
.yb-doc-table__states {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* Under the supplier on a narrow list only (the column « À faire » goes there). */
.yb-doc-table__states.yb-doc-table__state-inline {
  display: none;
}

/* A phone: a long state (« À payer · échéance 30.11 ») may go on two lines rather than under the amount. */
@container (max-width: 560px) {
  .yb-doc-table__states.yb-doc-table__state-inline .yb-doc-state {
    height: auto;
    min-height: 22px;
    padding-top: 2px;
    padding-bottom: 2px;
    border-radius: 11px;
    line-height: 1.3;
    white-space: normal;
  }
}

@container (max-width: 720px) {
  .yb-doc-table__states.yb-doc-table__state-inline {
    display: inline-flex;
    flex-flow: row wrap;
  }
}

.yb-piece__fact--payment dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yb-space-2) var(--yb-space-3);
}

.yb-piece__fact--payment .yb-doc-state {
  height: auto;
  min-height: 24px;
  white-space: normal;
}

.yb-piece__payment-file {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--yb-link, var(--yb-primary));
  font-size: var(--yb-text-caption);
  font-weight: var(--yb-weight-medium);
}

/* A payment prepared (retouche after lot 28a): what is left to do, on its own line under the state. */
.yb-piece__payment-hint {
  flex-basis: 100%;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

/* « Marquer comme payée » and its second choice « Payée de ma poche » (retouche after lot 28a): one split button. */
.yb-split {
  display: inline-flex;
  align-items: stretch;
}

.yb-split .yb-split__main.mud-button-root {
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}

.yb-split__menu,
.yb-split__menu .mud-menu-activator {
  display: flex;
  align-items: stretch;
}

.yb-split .yb-split__toggle.mud-button-root {
  min-width: 40px;
  padding-inline: 8px;
  border-inline-start: 1px solid color-mix(in srgb, var(--mud-palette-primary-text) 35%, transparent);
  border-start-start-radius: 0;
  border-end-start-radius: 0;
}

.yb-review__private {
  margin: calc(-1 * var(--yb-space-1)) 0 0 -6px;
}

.yb-pay__intro {
  margin: 0 0 var(--yb-space-3);
  color: var(--yb-text-muted);
}

.yb-pay__list {
  display: flex;
  flex-direction: column;
  max-height: 320px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-sm);
}

.yb-pay__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--yb-space-3);
  min-height: 52px;
  padding: var(--yb-space-2) var(--yb-space-3);
}

.yb-pay__item + .yb-pay__item {
  border-top: 1px solid var(--yb-border);
}

.yb-pay__label {
  display: flex;
  flex-direction: column;
  min-width: 0;
  cursor: pointer;
}

.yb-pay__name {
  overflow-wrap: anywhere;
  font-weight: var(--yb-weight-medium);
}

.yb-pay__due,
.yb-pay__why {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-pay__item.is-disabled .yb-pay__label {
  cursor: not-allowed;
}

.yb-pay__item.is-disabled .yb-pay__name,
.yb-pay__item.is-disabled .yb-pay__amount {
  color: var(--yb-text-muted);
}

.yb-pay__why {
  color: var(--yb-status-amber-fg);
  font-weight: var(--yb-weight-medium);
}

.yb-pay__amount {
  justify-content: flex-end;
  white-space: nowrap;
}

.yb-pay__account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yb-space-2);
  margin: var(--yb-space-3) 0 0;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-pay__account--missing {
  padding: var(--yb-space-3);
  border-radius: var(--yb-radius-sm);
  background: var(--yb-status-amber-bg);
  color: var(--yb-status-amber-fg);
  font-size: var(--yb-text-body);
}

.yb-pay__account--missing > span {
  flex: 1 1 220px;
}

.yb-pay__select {
  margin-top: var(--yb-space-5);
}

.yb-pay__total {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--yb-space-2);
  margin: var(--yb-space-3) 0 0;
  padding-top: var(--yb-space-3);
  border-top: 1px solid var(--yb-border);
  font-weight: var(--yb-weight-strong);
}

.yb-pay__done {
  display: flex;
  align-items: center;
  gap: var(--yb-space-3);
}

.yb-pay__done p {
  margin: 0;
}

.yb-pay__done-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yb-status-green-bg);
  color: var(--yb-status-green-fg);
}

.yb-pay__steps {
  display: flex;
  flex-direction: column;
  gap: var(--yb-space-2);
  margin: var(--yb-space-4) 0 0;
  padding-left: 1.4em;
}

.yb-pay__steps li::marker {
  color: var(--yb-primary);
  font-weight: var(--yb-weight-strong);
}

.yb-pay__format {
  margin: 0;
  padding: var(--yb-space-2) var(--yb-space-3);
  border-left: 2px solid var(--yb-border);
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-pay__done p {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.yb-pay__done p span {
  color: var(--yb-text-muted);
}

/* ---------- Lot 28b: the lines of a bank statement in PDF (D263) ---------- */
.yb-statement {
  align-items: flex-start;
  padding: var(--yb-space-3) var(--yb-space-4);
  border-radius: var(--yb-radius-sm);
  background: var(--yb-info-soft);
  color: var(--yb-text);
  font-size: var(--yb-text-body);
}

.yb-statement > .mud-icon-root {
  flex: none;
  margin-top: 2px;
  color: var(--yb-info);
}

.yb-statement--done {
  background: var(--yb-success-soft);
}

.yb-statement--done > .mud-icon-root {
  color: var(--yb-success);
}

.yb-statement--warning {
  background: var(--yb-warning-soft);
}

.yb-statement--warning > .mud-icon-root {
  color: var(--yb-warning);
}

.yb-statement__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--yb-space-2);
  min-width: 0;
}

.yb-statement__text {
  margin: 0;
  overflow-wrap: anywhere;
}

.yb-statement__link {
  font-weight: var(--yb-weight-medium);
}

.yb-statement__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--yb-space-2);
}

.yb-statement__account {
  width: min(100%, 320px);
}

.yb-statement__toggle {
  margin: 0;
  padding: 0;
}

.yb-statement__lines {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--yb-text-caption);
}

.yb-statement__lines td {
  padding: 4px var(--yb-space-2) 4px 0;
  border-top: 1px solid color-mix(in srgb, var(--yb-border) 70%, transparent);
  vertical-align: top;
}

.yb-statement__lines td:first-child {
  white-space: nowrap;
}

/* The line that probably explains the difference (retouche after lot 28b): named above, marked in the lines. */
.yb-statement__suspect {
  margin: var(--yb-space-1) 0 0;
  font-weight: var(--yb-weight-medium);
}

.yb-statement__lines tr.is-suspect td {
  background: color-mix(in srgb, var(--yb-warning) 16%, transparent);
  font-weight: var(--yb-weight-medium);
}

.yb-statement__mark {
  margin-right: 4px;
  color: var(--yb-warning);
  vertical-align: -3px;
}

.yb-statement__amount {
  text-align: right;
  white-space: nowrap;
}

/* ---------- Lot 28b: the tables of the fiduciary and the invoices issued on the share page (D268–D269) ---------- */
.yb-share-tables {
  padding: var(--yb-space-4) var(--yb-space-5);
}

.yb-share-tables__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--yb-space-1) var(--yb-space-4);
  margin-bottom: var(--yb-space-2);
}

.yb-share-tables__title {
  display: inline-flex;
  align-items: center;
  gap: var(--yb-space-2);
  margin: 0;
  font-size: var(--yb-text-title-3);
  font-weight: var(--yb-weight-strong);
}

.yb-share-tables__title .mud-icon-root {
  color: var(--yb-primary);
}

.yb-share-tables__lead {
  margin: 0;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-share-tables__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-share-tables__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yb-space-1) var(--yb-space-3);
  min-height: 44px;
  padding: var(--yb-space-2) 0;
}

.yb-share-tables__item + .yb-share-tables__item {
  border-top: 1px solid var(--yb-border);
}

.yb-share-tables__name {
  font-weight: var(--yb-weight-medium);
}

.yb-share-tables__meta {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-share-tables__links {
  display: inline-flex;
  gap: var(--yb-space-2);
  margin-left: auto;
}

.yb-share-tables__link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 var(--yb-space-3);
  border: 1px solid var(--yb-border-strong);
  border-radius: 999px;
  color: var(--yb-primary);
  font-size: var(--yb-text-caption);
  font-weight: var(--yb-weight-medium);
  text-decoration: none;
}

.yb-share-tables__link:hover {
  background: var(--yb-hover);
}

.yb-share-tables__link:focus-visible {
  outline: 2px solid var(--yb-focus);
  outline-offset: 2px;
}

.yb-share-invoices__lead {
  margin: 0;
  padding: var(--yb-space-2) var(--yb-space-5) var(--yb-space-1);
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

/* Invoice numbers (« F-2026-0012 ») and states (« Partiellement payée ») are longer than those of the documents. */
.yb-share-invoices .yb-share-table__number {
  width: 132px;
}

.yb-share-invoices .yb-share-table__vat {
  width: 152px;
}

/* ---------- Lot 31 (D319): « Fin d'année », the lock, the history, the taxes ---------- */
.yb-year-end__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--yb-space-5);
  align-items: start;
}

@media (min-width: 1100px) {
  .yb-year-end__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  }
}

.yb-year-end__main {
  display: grid;
  gap: var(--yb-space-5);
  min-width: 0;
}

.yb-year-end__locked {
  display: flex;
  align-items: center;
  gap: var(--yb-space-4);
  margin-bottom: var(--yb-space-5);
  padding: var(--yb-space-4) var(--yb-space-5);
  border: 1px solid color-mix(in srgb, var(--yb-status-petrol-fg) 30%, var(--yb-border));
  border-radius: var(--yb-radius-md);
  background: var(--yb-status-petrol-bg);
  color: var(--yb-status-petrol-fg);
}

.yb-year-end__locked-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--yb-radius-md);
  background: color-mix(in srgb, var(--yb-status-petrol-fg) 14%, transparent);
}

.yb-year-end__locked-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.yb-year-end__locked-text strong {
  font-weight: var(--yb-weight-strong);
}

.yb-year-end__unlock {
  flex: none;
}

/* The list and its progress. */
.yb-year-checklist__progress {
  display: flex;
  align-items: center;
  gap: var(--yb-space-3);
  padding: var(--yb-space-4) var(--yb-space-5) var(--yb-space-3);
}

.yb-year-checklist__count {
  min-width: 4ch;
  font-size: var(--yb-text-title-3);
  font-weight: var(--yb-weight-strong);
  line-height: 1;
}

.yb-year-checklist__bar {
  position: relative;
  flex: 1 1 auto;
  height: 8px;
  overflow: hidden;
  border-radius: var(--yb-radius-pill);
  background: var(--yb-bg-sunken);
}

.yb-year-checklist__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--yb-success);
  transition: width var(--yb-duration) var(--yb-ease);
}

.yb-year-checklist__list {
  margin: 0;
  padding: 0 var(--yb-space-2) var(--yb-space-2);
  list-style: none;
}

.yb-year-point {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--yb-space-3);
  align-items: start;
  padding: var(--yb-space-3);
  border-top: 1px solid var(--yb-border);
}

.yb-year-point:first-child {
  border-top: 0;
}

.yb-year-point__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.yb-year-point.is-done .yb-year-point__mark {
  background: var(--yb-status-green-bg);
  color: var(--yb-status-green-fg);
}

.yb-year-point.is-todo .yb-year-point__mark {
  background: var(--yb-status-amber-bg);
  color: var(--yb-status-amber-fg);
}

.yb-year-point__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-top: 4px;
}

.yb-year-point__title {
  font-weight: var(--yb-weight-medium);
  overflow-wrap: anywhere;
}

.yb-year-point.is-done .yb-year-point__title {
  font-weight: var(--yb-weight-regular);
}

.yb-year-point__hint {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-year-point__action {
  align-self: center;
}

.yb-year-point__action:empty {
  display: none;
}

.yb-year-point__missing {
  display: grid;
  gap: var(--yb-space-2);
  margin: var(--yb-space-2) 0 0;
  padding: 0;
  list-style: none;
}

.yb-year-point__missing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--yb-space-3);
  padding: var(--yb-space-2) var(--yb-space-2) var(--yb-space-2) var(--yb-space-3);
  border-radius: var(--yb-radius-sm);
  background: var(--yb-bg-sunken);
  font-size: var(--yb-text-caption);
}

/* « À voir avec votre fiduciaire ». */
.yb-year-end__notes-lead {
  margin: 0;
  padding: var(--yb-space-4) var(--yb-space-5) var(--yb-space-2);
  color: var(--yb-text-muted);
}

.yb-year-notes__empty {
  margin: 0;
  padding: var(--yb-space-2) var(--yb-space-5) var(--yb-space-5);
  color: var(--yb-text-muted);
}

.yb-year-notes {
  margin: 0;
  padding: 0 var(--yb-space-2) var(--yb-space-2);
  list-style: none;
}

.yb-year-note {
  border-top: 1px solid var(--yb-border);
}

.yb-year-note:first-child {
  border-top: 0;
}

.yb-year-note__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--yb-space-3);
  align-items: center;
  padding: var(--yb-space-3);
}

.yb-year-note__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--yb-radius-sm);
  background: var(--yb-status-blue-bg);
  color: var(--yb-status-blue-fg);
}

.yb-year-note__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.yb-year-note__title {
  font-weight: var(--yb-weight-medium);
}

.yb-year-note__hint,
.yb-year-note__count,
.yb-year-note__meta,
.yb-year-note__more {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-year-note__head,
.yb-year-note__sub {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--yb-space-1) var(--yb-space-3);
}

.yb-year-note__count {
  flex: none;
}

.yb-year-note__total {
  font-weight: var(--yb-weight-strong);
  white-space: nowrap;
}

.yb-year-note__toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 36px;
  padding: 0 var(--yb-space-2);
  border: 0;
  border-radius: var(--yb-radius-sm);
  background: none;
  color: var(--yb-primary);
  font: inherit;
  font-weight: var(--yb-weight-medium);
  cursor: pointer;
}

.yb-year-note__toggle:hover {
  background: var(--yb-hover);
}

.yb-year-note__toggle:focus-visible,
.yb-piece-history__toggle:focus-visible {
  outline: 2px solid var(--yb-focus);
  outline-offset: 2px;
}

.yb-year-note__items {
  margin: 0 var(--yb-space-3) var(--yb-space-3) calc(30px + var(--yb-space-6));
  padding: 0;
  border-left: 2px solid var(--yb-border);
  list-style: none;
}

.yb-year-note__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--yb-space-3);
  padding: var(--yb-space-2) var(--yb-space-3);
}

.yb-year-note__link {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.yb-year-note__link:hover .yb-year-note__party {
  text-decoration: underline;
}

.yb-year-note__link:focus-visible {
  border-radius: var(--yb-radius-sm);
  outline: 2px solid var(--yb-focus);
  outline-offset: 2px;
}

.yb-year-note__party {
  overflow: hidden;
  font-weight: var(--yb-weight-medium);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yb-year-note__amount {
  flex: none;
}

.yb-year-note__more {
  padding: var(--yb-space-2) var(--yb-space-3);
}

/* « Votre fiduciaire » (D450): two choices, then the link and its e-mail, or the partner fiduciaries of the canton. */
.yb-year-end__fiduciary {
  display: grid;
  gap: var(--yb-space-4);
  padding: var(--yb-space-5);
}

.yb-year-end__heading:focus {
  outline: none;
}

.yb-fiduciary__choice {
  display: flex;
  flex-wrap: wrap;
  gap: var(--yb-space-2);
}

.yb-fiduciary__option {
  display: inline-flex;
  align-items: center;
  gap: var(--yb-space-2);
  min-height: 40px;
  padding: 0 var(--yb-space-4);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-pill);
  background: var(--yb-surface);
  color: var(--yb-text);
  font: inherit;
  font-weight: var(--yb-weight-medium);
  cursor: pointer;
}

.yb-fiduciary__option:hover {
  border-color: var(--yb-primary);
}

.yb-fiduciary__option:focus-visible {
  outline: 2px solid var(--yb-primary);
  outline-offset: 2px;
}

.yb-fiduciary__option.is-selected {
  border-color: var(--yb-primary);
  background: var(--yb-primary-soft);
  color: var(--yb-on-primary-soft);
}

.yb-fiduciary__send {
  display: grid;
  gap: var(--yb-space-3);
}

.yb-fiduciary__send-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yb-space-2) var(--yb-space-3);
}

.yb-fiduciary__hint {
  display: flex;
  align-items: flex-start;
  gap: var(--yb-space-2);
  margin: 0;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-fiduciary__hint .mud-icon-root {
  flex: none;
  margin-top: 1px;
}

.yb-fiduciary__intro,
.yb-fiduciary__note {
  margin: 0;
}

.yb-fiduciary__note {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-fiduciary__partners {
  display: grid;
  gap: var(--yb-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-fiduciary__partner {
  display: grid;
  gap: var(--yb-space-1);
  padding: var(--yb-space-4);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-md);
  background: var(--yb-surface);
}

.yb-fiduciary__name {
  font-weight: var(--yb-weight-semibold, 600);
}

.yb-fiduciary__place {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-fiduciary__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--yb-space-1) var(--yb-space-4);
  margin-top: var(--yb-space-1);
}

.yb-fiduciary__contacts a {
  display: inline-flex;
  align-items: center;
  gap: var(--yb-space-1);
  overflow-wrap: anywhere;
}

/* The dossier and the lock. */
.yb-year-end__lock {
  display: grid;
  gap: var(--yb-space-4);
  padding: var(--yb-space-5);
}

.yb-year-end__dossier-head {
  display: flex;
  align-items: flex-start;
  gap: var(--yb-space-4);
}

.yb-year-end__dossier-icon,
.yb-year-end__lock-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--yb-radius-md);
  background: var(--yb-primary-soft);
  color: var(--yb-on-primary-soft);
}

.yb-year-end__lock-icon {
  background: var(--yb-status-petrol-bg);
  color: var(--yb-status-petrol-fg);
}

.yb-year-end__heading {
  margin: 0;
  font-size: var(--yb-text-title-3);
  font-weight: var(--yb-weight-title-3);
  line-height: var(--yb-leading-title-3);
}

.yb-year-end__lead {
  margin: var(--yb-space-1) 0 0;
  color: var(--yb-text-muted);
}

.yb-year-end__remaining {
  display: flex;
  align-items: flex-start;
  gap: var(--yb-space-2);
  margin: 0;
  padding: var(--yb-space-3) var(--yb-space-4);
  border-radius: var(--yb-radius-md);
  background: var(--yb-status-amber-bg);
  color: var(--yb-status-amber-fg);
}

.yb-year-end__remaining.is-done {
  background: var(--yb-status-green-bg);
  color: var(--yb-status-green-fg);
}

.yb-year-end__remaining .mud-icon-root {
  flex: none;
  margin-top: 2px;
}

/* « Votre fiduciaire » (D452): the dossier to download, the other way to give it, under the link. */
.yb-year-end__dossier-actions {
  padding-top: var(--yb-space-4);
  border-top: 1px solid var(--yb-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yb-space-3) var(--yb-space-4);
}

.yb-year-end__or {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-year-end__prepared {
  display: inline-flex;
  align-items: center;
  gap: var(--yb-space-1);
  color: var(--yb-status-green-fg);
  font-size: var(--yb-text-caption);
}

.yb-year-end__lock {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

/* A locked year in the documents and in the window of a document. */
.yb-locked-banner,
.yb-piece__locked {
  display: flex;
  align-items: center;
  gap: var(--yb-space-2) var(--yb-space-3);
  border-radius: var(--yb-radius-md);
  background: var(--yb-status-petrol-bg);
  color: var(--yb-status-petrol-fg);
}

.yb-locked-banner {
  flex-wrap: wrap;
  padding: var(--yb-space-3) var(--yb-space-4);
}

.yb-locked-banner__text {
  flex: 1 1 auto;
  min-width: 0;
}

.yb-locked-banner__link {
  color: inherit;
  font-weight: var(--yb-weight-medium);
}

.yb-piece__locked {
  align-items: flex-start;
  margin: 0;
  padding: var(--yb-space-2) var(--yb-space-3);
  border-radius: var(--yb-radius-sm);
  font-size: var(--yb-text-caption);
}

.yb-piece__locked .mud-icon-root {
  flex: none;
  margin-top: 1px;
}

/* The history of a document, folded. */
div.yb-piece-history {
  display: block;
}

.yb-piece-history__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.yb-piece-history__toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  padding: 2px var(--yb-space-1);
  border: 0;
  border-radius: var(--yb-radius-sm);
  background: none;
  color: var(--yb-primary);
  font: inherit;
  font-weight: var(--yb-weight-medium);
  cursor: pointer;
}

.yb-piece-history__toggle:hover {
  background: var(--yb-hover);
}

.yb-piece-history__panel {
  margin-top: var(--yb-space-2);
}

.yb-piece-history__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-piece-history__event {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  column-gap: var(--yb-space-2);
  padding: 3px 0;
}

.yb-piece-history__event:not(:last-child)::before {
  position: absolute;
  top: 14px;
  bottom: -4px;
  left: 3px;
  width: 2px;
  background: var(--yb-border);
  content: "";
}

.yb-piece-history__dot {
  grid-row: 1 / span 2;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--yb-border-strong);
}

.yb-piece-history__event--good .yb-piece-history__dot {
  background: var(--yb-success);
}

.yb-piece-history__event--warn .yb-piece-history__dot {
  background: var(--yb-warning);
}

.yb-piece-history__event--lock .yb-piece-history__dot {
  background: var(--yb-status-petrol-fg);
}

.yb-piece-history__what {
  color: var(--yb-text);
}

.yb-piece-history__when {
  grid-column: 2;
  color: var(--yb-text-muted);
}

.yb-piece-history__error {
  margin: 0;
  color: var(--yb-error);
}

/* The taxes at the top of « Pour les impôts ». */
.yb-taxes {
  display: grid;
  gap: var(--yb-space-4);
  margin: var(--yb-space-4) var(--yb-space-4) var(--yb-space-2);
  padding: var(--yb-space-4) var(--yb-space-5);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-md);
  background: var(--yb-bg-sunken);
}

.yb-taxes__result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--yb-space-3) var(--yb-space-6);
}

.yb-taxes__title {
  margin: 0;
  font-size: var(--yb-text-title-3);
  font-weight: var(--yb-weight-title-3);
  line-height: var(--yb-leading-title-3);
}

.yb-taxes__hint {
  max-width: 56ch;
  margin: var(--yb-space-1) 0 0;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-taxes__figures {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.yb-taxes__link,
.yb-taxes__item-link {
  font-size: var(--yb-text-caption);
}

.yb-taxes__empty {
  color: var(--yb-text-muted);
}

.yb-taxes__missing {
  padding-top: var(--yb-space-3);
  border-top: 1px solid var(--yb-border);
}

.yb-taxes__subtitle {
  margin: 0 0 var(--yb-space-2);
  font-size: var(--yb-text-body);
  font-weight: var(--yb-weight-strong);
}

.yb-taxes__list {
  display: grid;
  gap: var(--yb-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-taxes__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--yb-space-2);
  align-items: start;
}

.yb-taxes__item-icon {
  margin-top: 2px;
  color: var(--yb-status-amber-fg);
}

.yb-taxes__item-link {
  white-space: nowrap;
}

.yb-taxes__none {
  display: flex;
  align-items: center;
  gap: var(--yb-space-2);
  margin: 0;
  color: var(--yb-status-green-fg);
}

@media (max-width: 767px) {
  .yb-year-end__lock {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .yb-year-end__lock-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .yb-year-end__locked {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .yb-year-point {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .yb-year-point__action {
    grid-column: 2;
    justify-self: start;
  }

  .yb-year-point__missing-item {
    flex-wrap: wrap;
  }

  .yb-year-note__head,
  .yb-year-note__sub {
    flex-wrap: wrap;
  }

  .yb-year-note__items {
    margin-left: var(--yb-space-3);
  }

  .yb-taxes {
    margin-inline: var(--yb-space-2);
    padding: var(--yb-space-4);
  }

  .yb-taxes__figures {
    align-items: flex-start;
  }

  .yb-taxes__item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .yb-taxes__item-link {
    grid-column: 2;
  }
}

/* ---------- D343: a final statement in favour of the company ---------- */
.yb-review__refund {
  display: flex;
  align-items: flex-start;
  gap: var(--yb-space-2);
  margin: calc(-1 * var(--yb-space-1)) 0 var(--yb-space-2);
  padding: var(--yb-space-2) var(--yb-space-3);
  border-radius: var(--yb-radius-sm);
  background: var(--yb-success-soft);
  color: var(--yb-text);
  font-size: var(--yb-text-caption);
  line-height: var(--yb-leading-caption);
}

.yb-review__refund .mud-icon-root {
  flex: none;
  color: var(--yb-success);
}

/* ---------- D339: « Pas soumise à la TVA » of a sales invoice ---------- */
.yb-review__exempt {
  display: flex;
  flex-direction: column;
  margin: calc(-1 * var(--yb-space-1)) 0 0 -6px;
}

.yb-review__exempt-help {
  margin: 0 0 0 38px;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  line-height: var(--yb-leading-caption);
}

/* ---------- Audit UX, page 11 ---------- */

/* « Aussi à vérifier : 2 en 2025 » under the banner of the year (the badge of the menu counts every year). */
.yb-review-others {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yb-space-1) var(--yb-space-3);
  margin: calc(var(--yb-space-2) * -1) 0 0;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-year-option__todo {
  color: var(--yb-on-accent-soft);
  font-weight: var(--yb-weight-medium);
}

/* The capture page: where the photo goes, in one line, the choice folded. */
.yb-capture__more {
  margin-top: var(--yb-space-4);
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-capture__more summary {
  cursor: pointer;
  list-style: none;
}

.yb-capture__more summary::-webkit-details-marker {
  display: none;
}

.yb-capture__more[open] summary .yb-textlink {
  display: none;
}

.yb-capture__more .yb-capture__destination {
  margin-top: var(--yb-space-3);
}

/* ---------- Decisions D379–D383 (audit UX, page 11) ---------- */

/* D382: a folded section of the left column; its heading is the button. */
.yb-drive-nav__fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--yb-space-2);
  cursor: pointer;
  list-style: none;
  border-radius: var(--yb-radius-sm);
}

.yb-drive-nav__fold > summary::-webkit-details-marker {
  display: none;
}

.yb-drive-nav__fold > summary::before {
  content: "›";
  display: inline-block;
  margin-right: 2px;
  transition: transform var(--yb-duration-fast) var(--yb-ease);
}

.yb-drive-nav__fold[open] > summary::before {
  transform: rotate(90deg);
}

.yb-drive-nav__fold > summary span:first-child {
  flex: 1 1 auto;
}

.yb-drive-nav__fold > summary:hover {
  color: var(--yb-text);
}

.yb-drive-nav__fold > summary:focus-visible {
  outline: 2px solid var(--yb-focus);
  outline-offset: 2px;
}

/* D383: « Payer avec mon e-banking » seen on arrival in « À payer », with its hint. */
.yb-drive__pay {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yb-space-2);
  flex-basis: 100%;
  margin-top: var(--yb-space-2);
}

.yb-drive__pay-hint {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

/* D383: on a phone, a card of « À payer » is the supplier, the amount and one chip (type and category in the window). */
@media (max-width: 767.98px) {
  .yb-drive-page--topay .yb-doc-table__meta {
    display: none;
  }
}

/* D390: « À voir avec votre fiduciaire » — one line on a phone that unfolds; always open on a larger screen. */
.yb-year-end__notes-fold {
  display: none;
}

@media (max-width: 767.98px) {
  .yb-year-end__notes-fold {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--yb-space-2);
    width: 100%;
    padding: var(--yb-space-3) var(--yb-space-4);
    border: 0;
    background: none;
    color: var(--yb-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  .yb-year-end__notes:not(.is-open) .yb-year-end__notes-body {
    display: none;
  }
}

/* ============================================================================================================
   Operator diagnostics page (/admin/diagnostics, static SSR in the share layout)
   ============================================================================================================ */
.yb-diag {
  display: grid;
  gap: var(--yb-space-6);
}

.yb-diag__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--yb-space-4);
}

.yb-diag__lead {
  margin: var(--yb-space-2) 0 0;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-body);
}

.yb-diag__tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--yb-space-4);
}

.yb-diag__tool,
.yb-diag__card {
  background: var(--yb-surface);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-lg);
  padding: var(--yb-space-4) var(--yb-space-5);
  box-shadow: var(--yb-shadow-xs);
  min-width: 0;
}

.yb-diag__tool {
  display: grid;
  gap: var(--yb-space-2);
}

.yb-diag__tool-label {
  font-weight: var(--yb-weight-medium);
}

.yb-diag__tool-row {
  display: flex;
  align-items: center;
  gap: var(--yb-space-3);
  flex-wrap: wrap;
}

.yb-diag__hint {
  flex: 1 1 180px;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-diag__input {
  flex: 1 1 200px;
  min-width: 0;
  height: var(--yb-field-height);
  padding: 0 var(--yb-space-3);
  border: 1px solid var(--yb-border-input);
  border-radius: var(--yb-radius-md);
  background: var(--yb-bg);
  color: var(--yb-text);
  font: inherit;
}

.yb-diag__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--yb-control-height);
  padding: 0 var(--yb-space-4);
  border: 1px solid transparent;
  border-radius: var(--yb-radius-md);
  background: var(--yb-primary);
  color: var(--yb-on-primary);
  font: inherit;
  font-weight: var(--yb-weight-medium);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.yb-diag__button:hover {
  background: var(--yb-primary-hover);
}

.yb-diag__button--ghost {
  background: transparent;
  border-color: var(--yb-border-strong);
  color: var(--yb-text);
}

.yb-diag__button--ghost:hover {
  background: var(--yb-hover);
}

.yb-diag__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: var(--yb-space-4);
  align-items: start;
}

/* Abandoned e-mails (D455): the subject and the reason wrap, the other columns stay on one line. */
.yb-diag__failed {
  display: grid;
  gap: var(--yb-space-3);
  margin-top: var(--yb-space-6);
}

.yb-diag__failed td:nth-child(4),
.yb-diag__failed td:nth-child(5) {
  white-space: normal;
  min-width: 14rem;
}

.yb-diag__card[data-status="error"] {
  border-color: var(--yb-error);
}

.yb-diag__card--pending {
  opacity: 0.7;
}

.yb-diag__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--yb-space-3);
}

.yb-diag__card-title {
  margin: 0;
  font-size: var(--yb-text-title-3);
  font-weight: var(--yb-weight-title-3);
}

.yb-diag__badge {
  flex: none;
  padding: 2px var(--yb-space-2);
  border-radius: var(--yb-radius-pill);
  font-size: var(--yb-text-caption);
  font-weight: var(--yb-weight-medium);
  background: var(--yb-status-neutral-bg);
  color: var(--yb-status-neutral-fg);
}

.yb-diag__badge[data-status="ok"] {
  background: var(--yb-status-green-bg);
  color: var(--yb-status-green-fg);
}

.yb-diag__badge[data-status="warning"] {
  background: var(--yb-status-amber-bg);
  color: var(--yb-status-amber-fg);
}

.yb-diag__badge[data-status="error"] {
  background: var(--yb-status-red-bg);
  color: var(--yb-status-red-fg);
}

.yb-diag__summary {
  margin: var(--yb-space-2) 0 0;
  overflow-wrap: anywhere;
}

.yb-diag__lines {
  display: grid;
  gap: var(--yb-space-1);
  margin: var(--yb-space-3) 0 0;
  padding-top: var(--yb-space-3);
  border-top: 1px solid var(--yb-border);
  font-size: var(--yb-text-caption);
}

.yb-diag__line {
  display: grid;
  grid-template-columns: minmax(120px, 40%) 1fr;
  gap: var(--yb-space-3);
}

.yb-diag__line dt {
  color: var(--yb-text-muted);
  overflow-wrap: anywhere;
}

.yb-diag__line dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.yb-diag__line[data-status="ok"] dd::before {
  content: "✓ ";
  color: var(--yb-success);
}

.yb-diag__line[data-status="warning"] dd {
  color: var(--yb-status-amber-fg);
}

.yb-diag__line[data-status="error"] dd {
  color: var(--yb-error);
  font-weight: var(--yb-weight-medium);
}

.yb-diag__duration {
  margin: var(--yb-space-2) 0 0;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  text-align: right;
}

/* D430: operator page of the readings and their cost (/admin/usage). */
.yb-usage__months {
  display: flex;
  flex-wrap: wrap;
  gap: var(--yb-space-2);
}

.yb-usage__totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--yb-space-3);
}

.yb-usage__total {
  display: grid;
  gap: var(--yb-space-1);
  background: var(--yb-surface);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-lg);
  padding: var(--yb-space-4) var(--yb-space-5);
  box-shadow: var(--yb-shadow-xs);
}

.yb-usage__value {
  font-size: var(--yb-text-title-3, 1.375rem);
  font-weight: var(--yb-weight-semibold, 600);
  font-variant-numeric: tabular-nums;
}

.yb-usage__label {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-usage__scroll {
  overflow-x: auto;
  background: var(--yb-surface);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-lg);
  box-shadow: var(--yb-shadow-xs);
}

.yb-usage__table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.yb-usage__table th,
.yb-usage__table td {
  padding: var(--yb-space-2) var(--yb-space-4);
  border-bottom: 1px solid var(--yb-border);
  text-align: left;
  white-space: nowrap;
}

.yb-usage__table thead th {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  font-weight: var(--yb-weight-medium);
}

.yb-usage__table tbody th {
  font-weight: var(--yb-weight-regular, 400);
  white-space: normal;
}

.yb-usage__table tfoot th,
.yb-usage__table tfoot td {
  border-bottom: 0;
  font-weight: var(--yb-weight-semibold, 600);
}

.yb-usage__table .yb-num {
  text-align: right;
}

.yb-usage__owner {
  display: block;
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  overflow-wrap: anywhere;
}

.yb-usage__tag {
  margin-left: var(--yb-space-2);
  padding: 1px var(--yb-space-2);
  border-radius: var(--yb-radius-pill);
  font-size: var(--yb-text-caption);
  background: var(--yb-status-neutral-bg);
  color: var(--yb-status-neutral-fg);
}

/* D431: « Administration » (/admin), its links and the way back. */
.yb-admin__back {
  display: inline-block;
  margin-bottom: var(--yb-space-2);
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  text-decoration: none;
}

.yb-admin__back:hover,
.yb-admin__back:focus-visible {
  color: var(--yb-text);
  text-decoration: underline;
}

.yb-admin__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--yb-space-4);
}

.yb-admin__link {
  display: grid;
  gap: var(--yb-space-2);
  background: var(--yb-surface);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-lg);
  padding: var(--yb-space-5);
  box-shadow: var(--yb-shadow-xs);
  color: inherit;
  text-decoration: none;
}

.yb-admin__link:hover,
.yb-admin__link:focus-visible {
  border-color: var(--yb-border-strong, var(--yb-border));
  box-shadow: var(--yb-shadow-sm, var(--yb-shadow-xs));
}

.yb-admin__link-title {
  font-weight: var(--yb-weight-semibold, 600);
}

.yb-admin__link-text {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

@media (max-width: 600px) {
  .yb-diag__head {
    flex-direction: column;
  }

  .yb-diag__grid,
  .yb-diag__tools {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Partner fiduciaries of the operator (D450): the list, then the form to add or change one. */
.yb-partners-admin {
  display: grid;
  gap: var(--yb-space-4);
  max-width: 880px;
  padding: var(--yb-space-6);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-lg);
  background: var(--yb-surface);
}

.yb-partners-admin__form {
  display: grid;
  gap: var(--yb-space-5);
}

.yb-partners-admin__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--yb-space-4) var(--yb-space-5);
}

.yb-partners-admin__field {
  display: grid;
  gap: var(--yb-space-1);
  font-size: var(--yb-text-caption);
  color: var(--yb-text-muted);
}

.yb-partners-admin__field span {
  font-weight: var(--yb-weight-medium);
}

.yb-partners-admin__field input,
.yb-partners-admin__field textarea {
  width: 100%;
  min-height: var(--yb-control-height);
  padding: var(--yb-space-2) var(--yb-space-3);
  border: 1px solid var(--yb-border-strong, var(--yb-border));
  border-radius: var(--yb-radius-md);
  background: var(--yb-bg);
  color: var(--yb-text);
  font: inherit;
  font-size: 0.9375rem;
}

.yb-partners-admin__field input[aria-invalid="true"] {
  border-color: var(--yb-error);
}

.yb-partners-admin__languages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yb-space-2) var(--yb-space-5);
  margin: 0;
  padding: 0;
  border: 0;
}

.yb-partners-admin__languages legend {
  margin-bottom: var(--yb-space-2);
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
  font-weight: var(--yb-weight-medium);
}

.yb-partners-admin__check,
.yb-partners-admin__languages label {
  display: inline-flex;
  align-items: center;
  gap: var(--yb-space-2);
}

.yb-partners-admin__actions,
.yb-partners-admin__delete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yb-space-3);
}

.yb-partners-admin__delete span {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-partners-admin__error {
  color: var(--yb-error);
}

.yb-partners-admin__saved {
  margin: 0;
  color: var(--yb-success);
  font-weight: var(--yb-weight-medium);
}

@media (max-width: 600px) {
  .yb-partners-admin {
    padding: var(--yb-space-4);
  }

  .yb-partners-admin__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Measurement page of the operator (P6, B-010): three groups of figures, each with its title. */
.yb-measure__group {
  display: grid;
  gap: var(--yb-space-3);
}

/* The kit of a partner fiduciary (D451, /p/{code}/kit): four numbered sections on the share layout. */
.yb-partner-kit {
  display: grid;
  gap: var(--yb-space-10);
  max-width: 1040px;
  margin: 0 auto;
}

.yb-partner-kit .yb-text-link {
  font-weight: var(--yb-weight-strong);
}

.yb-partner-kit__head {
  display: grid;
  gap: var(--yb-space-3);
  max-width: 720px;
}

.yb-partner-kit__eyebrow {
  margin: 0;
  color: var(--yb-primary);
  font-weight: var(--yb-weight-strong);
}

.yb-partner-kit__title {
  margin: 0;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.yb-partner-kit__lead {
  margin: 0;
  color: var(--yb-text-muted);
  font-size: 1.0625rem;
}

.yb-partner-kit__languages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yb-space-2) var(--yb-space-4);
  color: var(--yb-text-muted);
  font-size: 0.9375rem;
}

.yb-partner-kit__languages a {
  color: var(--yb-primary);
  font-weight: var(--yb-weight-medium);
}

.yb-partner-kit__languages a[aria-current="page"] {
  color: var(--yb-text);
  text-decoration: none;
}

.yb-partner-kit__section {
  display: grid;
  gap: var(--yb-space-4);
  padding-top: var(--yb-space-8);
  border-top: 1px solid var(--yb-border);
}

.yb-partner-kit__section > p {
  max-width: 720px;
  margin: 0;
}

.yb-partner-kit__heading {
  display: flex;
  align-items: center;
  gap: var(--yb-space-3);
  margin: 0;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}

.yb-partner-kit__step {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--yb-primary);
  color: var(--yb-on-primary, #fff);
  font-size: 0.9375rem;
  font-weight: var(--yb-weight-strong);
}

.yb-partner-kit__link-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--yb-space-8);
  align-items: start;
}

.yb-partner-kit__link-grid > div {
  display: grid;
  gap: var(--yb-space-4);
}

.yb-partner-kit__link-grid p {
  margin: 0;
}

.yb-partner-kit__link {
  padding: var(--yb-space-3) var(--yb-space-4);
  border-radius: var(--yb-radius-md);
  background: var(--yb-primary-soft, var(--yb-surface-raised));
  font-size: 1.125rem;
  font-weight: var(--yb-weight-strong);
  overflow-wrap: anywhere;
}

.yb-partner-kit__link-grid .yb-kit__copy {
  justify-self: start;
  margin-top: 0;
}

.yb-partner-kit__qr {
  display: grid;
  grid-template-columns: 148px minmax(0, 220px);
  gap: var(--yb-space-4);
  align-items: center;
  margin: 0;
}

.yb-partner-kit__qr img {
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-md);
  background: #fff;
}

.yb-partner-kit__qr figcaption,
.yb-partner-kit__logo figcaption {
  display: grid;
  gap: var(--yb-space-2);
  color: var(--yb-text-muted);
  font-size: 0.9375rem;
}

.yb-partner-kit__downloads {
  display: flex;
  flex-wrap: wrap;
  gap: var(--yb-space-1) var(--yb-space-4);
}

.yb-partner-kit__files {
  display: flex;
  flex-wrap: wrap;
  gap: var(--yb-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-partner-kit__file {
  display: inline-flex;
  align-items: center;
  gap: var(--yb-space-2);
  min-height: 44px;
  padding: 0 var(--yb-space-5);
  border-radius: var(--yb-radius-pill);
  background: var(--yb-primary);
  color: var(--yb-on-primary, #fff);
  font-weight: var(--yb-weight-strong);
  text-decoration: none;
}

.yb-partner-kit__file:hover,
.yb-partner-kit__file:focus-visible {
  background: var(--yb-primary-hover, var(--yb-primary));
  color: var(--yb-on-primary, #fff);
}

.yb-partner-kit__file:focus-visible {
  outline: 2px solid var(--yb-primary);
  outline-offset: 3px;
}

.yb-partner-kit__logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: var(--yb-space-6);
}

.yb-partner-kit__logo {
  display: grid;
  gap: var(--yb-space-3);
  margin: 0;
}

.yb-partner-kit__logo-preview {
  display: grid;
  place-items: center;
  height: 112px;
  border: 1px solid #DCE4E5;
  border-radius: var(--yb-radius-lg);
  background: #fff;
}

.yb-partner-kit__logo--dark .yb-partner-kit__logo-preview {
  border-color: #12262B;
  background: #12262B;
}

.yb-partner-kit__help {
  margin: 0;
  color: var(--yb-text-muted);
}

@media (max-width: 767px) {
  .yb-partner-kit {
    gap: var(--yb-space-8);
  }

  .yb-partner-kit__link-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .yb-partner-kit__qr {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .yb-partner-kit__qr img {
    width: 120px;
    height: 120px;
  }

  .yb-partner-kit__logos {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Admin (D451): the kit and the welcome e-mail of the partner being changed. */
.yb-partners-admin__kit {
  display: grid;
  gap: var(--yb-space-2);
  margin-bottom: var(--yb-space-6);
  padding: var(--yb-space-4) var(--yb-space-5);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-md);
  background: var(--yb-surface-raised);
}

.yb-partners-admin__kit p {
  margin: 0;
}

.yb-partners-admin__welcome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yb-space-3);
  margin-top: var(--yb-space-2);
}

.yb-partners-admin__welcome span {
  color: var(--yb-text-muted);
  font-size: 0.9375rem;
}

/* D474: suppliers that may be the same, above the list of « Fournisseurs ». */
.yb-supplier-dups {
  margin: 0 0 var(--yb-space-3);
  padding: var(--yb-space-3) var(--yb-space-4);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-md);
  background: var(--yb-surface);
}

.yb-supplier-dups__head {
  display: flex;
  align-items: flex-start;
  gap: var(--yb-space-3);
}

.yb-supplier-dups__icon {
  flex: none;
  margin-top: 2px;
  color: var(--yb-text-muted);
}

.yb-supplier-dups__text {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 0 var(--yb-space-2);
  margin: 0;
}

.yb-supplier-dups__text > span {
  color: var(--yb-text-muted);
}

.yb-supplier-dups__toggle {
  flex: none;
}

.yb-supplier-dups__list {
  margin: var(--yb-space-3) 0 0;
  padding: 0;
  list-style: none;
}

.yb-supplier-dups__pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--yb-space-2) var(--yb-space-4);
  padding: var(--yb-space-3) 0;
  border-top: 1px solid var(--yb-border);
}

.yb-supplier-dups__names {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.yb-supplier-dups__name {
  overflow-wrap: anywhere;
}

.yb-supplier-dups__name .yb-num,
.yb-supplier-dups__keeps {
  color: var(--yb-text-muted);
  font-size: var(--yb-text-caption);
}

.yb-supplier-dups__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yb-space-2);
}

.yb-supplier-dups__question {
  font-weight: var(--yb-weight-medium);
}

@media (max-width: 599.98px) {
  /* The question on its line, « Oui, les réunir » and « Non » side by side under it. */
  .yb-supplier-dups__question {
    flex-basis: 100%;
  }

  .yb-supplier-dups__icon {
    display: none;
  }
}
