/* Bare page furniture - titles, section labels and loose action rows - carries no
   card padding of its own, so at --page-gutter: 0 it would sit hard against the
   sidebar and the window edge. This floor holds it clear of both and cancels
   itself once the gutter is wide enough to do the job on its own.
   Cards, heroes and tables are deliberately NOT in this list: bleeding those to
   the edge is the whole point of a 0 gutter.
   A new page with bare furniture of its own should join this list. */
.brnd-sec-label {
  padding-left: max(0px, calc(14px - var(--page-gutter)));
  padding-right: max(0px, calc(14px - var(--page-gutter)));
}

.public-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.public-brand {
  margin-bottom: 18px;
}

.public-content {
  display: grid;
  gap: 16px;
}

.pill,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-tag);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  background: transparent;
}

.pill {
  color: var(--accent);
  background: var(--accent-weak);
  border-color: var(--accent-line);
}

.badge-success {
  color: var(--green);
  background: var(--green-weak);
  border-color: var(--accent-line);
}

.badge-warn {
  color: var(--amber);
  background: var(--amber-weak);
  border-color: var(--amber-line);
}

.badge-danger {
  color: var(--red);
  background: var(--red-weak);
  border-color: var(--red-line);
}

.badge-muted {
  color: var(--muted);
  background: #ffffff;
  border-color: var(--line);
}

.trial-banner,
.sync-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  /* These bars span the full width and inset their own text to line up with the
     edge of the page's cards. The floor keeps that text off the frame once the
     gutter reaches 0. */
  padding: 8px max(var(--page-gutter), 16px);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  overflow: hidden;
  transition: opacity 0.35s ease, min-height 0.35s ease, padding 0.35s ease;
}

/* The message sits centred and bold; Upgrade and dismiss keep the right edge.
   Equal outer tracks keep the message centred on the bar, not on what's left. */
.trial-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  color: #553300;
  background: var(--amber-weak);
}
.trial-banner > span:first-child { grid-column: 2; text-align: center; font-weight: 700; }
.trial-banner > .trial-banner-actions { grid-column: 3; justify-self: end; }

.trial-banner a {
  color: #553300;
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.trial-banner-actions { display: inline-flex; align-items: center; gap: 12px; }
.trial-banner-dismiss { display: contents; }
.trial-banner-dismiss button {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; padding: 0;
  border: 0; border-radius: 6px; background: transparent; color: #553300; cursor: pointer;
}
.trial-banner-dismiss button:hover { background: rgba(85, 51, 0, 0.08); }
.trial-banner-dismiss button:focus-visible { outline: 2px solid #553300; outline-offset: 1px; }

/* One banner at a time: a sync that starts after the page loads shows its banner
   in place, and the trial banner below it steps aside. */
.sync-banner:not(.is-hidden) ~ .trial-banner { display: none; }

.reauth-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px max(var(--page-gutter), 16px);
  color: var(--red);
  background: var(--red-weak);
  border-bottom: 1px solid #f1c9c3;
  font-size: 13px;
  font-weight: 550;
}

.reauth-banner .button {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.reauth-banner .button:hover {
  background: #fff;
  color: var(--red);
}

/* Pinned to the top of the content column and kept visible (while a sync is
   active) as the page scrolls, so import progress is never lost. */
.sync-banner {
  position: sticky;
  top: var(--topbar-height);
  z-index: 60;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  background: var(--panel);
  box-shadow: 0 6px 18px -12px rgba(8, 20, 16, 0.4);
}

.sync-banner.is-hidden {
  display: none;
}

/* Top row: status label + count on the left, % readout on the right. */
.sync-banner-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* The progress track - a full-width bar under the copy. */
.sync-loader {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--line-soft);
}

.sync-loader-fill {
  position: relative;
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 5px;
  overflow: hidden;
  background: var(--accent);
  transition: width 0.3s ease;
}

/* Indeterminate shimmer sweeps across the filled portion while running. */
.sync-banner[data-status="running"] .sync-loader-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-100%);
  animation: sync-shimmer 1.4s linear infinite;
}

@keyframes sync-shimmer {
  to { transform: translateX(100%); }
}

.sync-copy {
  min-width: 0;
  flex: 1;
}

.sync-copy strong,
.sync-copy span {
  display: block;
}

.sync-copy span {
  color: var(--muted);
  font-size: 12px;
}

/* Status dot precedes the label. Pseudo-element survives JS textContent updates. */
.sync-banner[data-status="running"] [data-role="status-label"],
.sync-banner[data-status="queued"] [data-role="status-label"],
.sync-banner[data-status="failed"] [data-role="status-label"] {
  position: relative;
  padding-left: 16px;
}

.sync-banner[data-status="running"] [data-role="status-label"]::before,
.sync-banner[data-status="queued"] [data-role="status-label"]::before,
.sync-banner[data-status="failed"] [data-role="status-label"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--accent);
}

.sync-banner[data-status="running"] [data-role="status-label"]::before,
.sync-banner[data-status="queued"] [data-role="status-label"]::before {
  animation: sync-pulse 1.2s ease-in-out infinite;
}

.sync-banner[data-status="failed"] [data-role="status-label"]::before {
  background: var(--red);
}

@keyframes sync-pulse {
  50% { opacity: 0.3; transform: scale(0.8); }
}

.sync-progress-value {
  min-width: 40px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* The % readout is only meaningful while a determinate sync is running. */
.sync-banner:not([data-status="running"]) .sync-progress-value {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .sync-banner[data-status="running"] .sync-loader-fill::after,
  .sync-banner[data-status="running"] [data-role="status-label"]::before,
  .sync-banner[data-status="queued"] [data-role="status-label"]::before,
  /* The export banner borrows this loader, so it has to be listed here too. */
  .export-banner[data-status="running"] .sync-loader-fill::after {
    animation: none;
  }
}

.sync-banner-note {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.sync-request-meta,
.sync-request-error {
  color: var(--muted);
  font-size: 12px;
}

.sync-request-card {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-subtle);
}

.sync-request-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sync-request-title {
  font-size: 13px;
  font-weight: 720;
}

.sync-request-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sync-request-error {
  line-height: 1.4;
  display: block;
  padding: 5px 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.sync-request-confirm {
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
}

.sync-request-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-request-button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 720;
}

.sync-request-button:hover {
  background: var(--line-soft);
}

.sync-request-button.is-danger {
  color: var(--red);
  border-color: #f1c3bc;
  background: var(--red-weak);
}

.sync-request-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.section-card,
.table-shell,
.template-preview,
.preview-card,
.hero-card,
.print-sheet {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-card,
.hero-card {
  padding: 16px;
}

.hero-card {
  max-width: 640px;
}

.hero-card h1,
.section-card h2 {
  font-size: 16px;
  font-weight: 600;
}

.hero-card p,
.section-note,
.muted {
  color: var(--muted);
}

.hero-card p {
  margin-top: 8px;
}

.hero-card code {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-subtle);
  font-size: 12px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--accent);
}

.back-link svg {
  transition: transform 0.15s ease;
}

.back-link:hover svg {
  transform: translateX(-2px);
}

.toolbar h2 {
  margin-top: 2px;
}

.button-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.orders-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) minmax(180px, 1.2fr) minmax(140px, 1fr) minmax(140px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

@media (max-width: 1040px) {
  .orders-filters {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 560px) {
  .orders-filters {
    grid-template-columns: 1fr;
  }
}

.stack {
  display: grid;
  gap: 12px;
}

.grid-two {
  display: grid;
  gap: 12px;
}

.grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Vendor payout summary: net-payable hero + calculation breakdown. */
.payout-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.payout-net {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  background: var(--accent);
  color: #ffffff;
}

.payout-net-label {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.85;
}

.payout-net-value {
  font-size: 32px;
  font-weight: 770;
  font-variant-numeric: tabular-nums;
}

.payout-net-note {
  font-size: 12px;
  opacity: 0.85;
}

.payout-breakdown {
  padding: 6px 20px;
}

.payout-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.payout-row:last-child {
  border-bottom: 0;
}

.payout-row .k small {
  margin-left: 6px;
  font-size: 12px;
  color: var(--muted);
}

.payout-row .amt {
  font-weight: 640;
  font-variant-numeric: tabular-nums;
}

.payout-row .amt.neg {
  color: #b23b3b;
}

.payout-row-total {
  margin-top: 2px;
  border-top: 1px solid var(--line);
}

.payout-row-total .k {
  font-weight: 720;
}

.payout-row-total .amt {
  font-weight: 760;
  color: var(--accent);
}

@media (max-width: 640px) {
  .payout-hero {
    grid-template-columns: 1fr;
  }
}

.value {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 780;
  line-height: 1.05;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.field small {
  color: var(--faint);
  font-size: 12px;
}

/* .field-hint only ever inherited its look from `.field small` above, so a hint used
   OUTSIDE a .field - the destination notes in the schedule wizard and on /delivery, for
   instance - fell back to default paragraph size and the body text colour, and out-weighed
   the row it was annotating. The class now carries its own style wherever it's used. */
.field-hint {
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
}

/* The standalone Drive picker window has no Polaris text to carry the error's tone. */
.drive-picker-window [data-drive-picker-error] { color: var(--red); }

.field input,
.field select,
.field textarea,
.data-table input {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

/* Normalize native selects so they match the inputs/buttons (uniform 36px row). */
.field select {
  height: 36px;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%236b6b6b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.data-table input:focus {
  outline: 2px solid var(--accent-weak);
  border-color: var(--accent);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.button,
.button-secondary,
.button-ghost,
.button-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease, transform 0.04s ease;
}

.button:active,
.button-secondary:active,
.button-ghost:active,
.button-danger:active {
  transform: translateY(1px);
}

.button:focus-visible,
.button-secondary:focus-visible,
.button-ghost:focus-visible,
.button-danger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-weak);
}

/* Primary: green outline at rest, fills green on hover. */
.button {
  color: var(--accent);
  background: #ffffff;
  border-color: var(--accent);
}

.button:hover {
  color: #ffffff;
  background: var(--accent);
}

/* Disabled (e.g. Next: Delivery before a trigger is chosen): muted + inert,
   and it must not fill green on hover. */
.button:disabled,
.button[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.button:disabled:hover,
.button[disabled]:hover {
  color: var(--accent);
  background: #ffffff;
}

/* Primary: solid brand green - the single loudest accent on a screen. */
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: #ffffff;
  background: var(--accent);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.button-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.button-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Secondary: ink outline at rest, fills ink on hover. */
.button-secondary {
  color: var(--text);
  background: var(--panel);
  border-color: var(--control-line);
}

.button-secondary:hover {
  color: var(--text);
  background: var(--hover);
  border-color: #c9c6be;
}

/* Ghost: quiet hairline; darkens on hover. */
.button-ghost {
  color: var(--text);
  background: var(--panel);
  border-color: var(--control-line);
}

.button-ghost:hover {
  color: var(--text);
  background: var(--hover);
  border-color: #c9c6be;
}

/* Danger: red outline at rest, fills red on hover. */
.button-danger {
  color: var(--red);
  background: var(--panel);
  border-color: var(--red-line);
}

.button-danger:hover {
  color: #ffffff;
  background: var(--red);
  border-color: var(--red);
}

.button-danger:focus-visible {
  box-shadow: 0 0 0 3px var(--red-weak);
}

.table-shell {
  overflow: auto;
}

/* Keep the pinned cell's background in step with the row's hover/selected
   states, otherwise it would stay white while the rest of the row highlights. */

.data-table td.nowrap {
  white-space: nowrap;
}

/* Sortable column header (Date) - label + a small arrow, Shopify-style. */
.th-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.th-sort:hover {
  color: var(--text);
}

/* Arrow is hidden until you hover the header, and stays visible on the column
   currently sorted so the sort state is always clear. */
.th-sort-arrow {
  display: inline-flex;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.12s ease;
}

.th-sort:hover .th-sort-arrow,
.th-sort.is-active .th-sort-arrow {
  opacity: 1;
}

.th-sort-arrow.is-asc svg {
  transform: rotate(180deg);
}

/* Summary footer under the orders table: count + current page range. */
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  background: #fcfcfc;
  font-size: 12.5px;
  color: var(--muted);
}

.table-footer strong {
  color: var(--text);
}

.table-footer-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-footer-nav .button-ghost {
  min-height: 30px;
  padding: 0 12px;
}

.data-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
}

/* ---- md breakpoint: list tables flatten into stacked cards on phones.
   A table opts in with .table-cards; each <td> is named via data-label and
   secondary cells carry .t-sec to drop out of the compact card. Above md the
   table renders normally (min-width scroll fallback intact). ---- */
@media (max-width: 767px) {
  .table-cards {
    min-width: 0;
    border-collapse: collapse;
  }

  /* Hide the header visually - each cell's data-label carries the column name. */
  .table-cards thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .table-cards tbody tr {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
  }

  .table-cards tbody tr + tr {
    margin-top: 10px;
  }

  .table-cards tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 5px 0;
    border: 0;
    text-align: right;
  }

  .table-cards tbody td::before {
    content: attr(data-label);
    flex: none;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 650;
    text-align: left;
  }

  /* Secondary columns are dropped from the compact card. */
  .table-cards .t-sec {
    display: none !important;
  }

  /* Frozen first column / sticky header don't apply in card mode. */
  .table-cards th:first-child,
  .table-cards td:first-child {
    position: static;
  }

  /* Lead cell (order #/name) reads as the card title. */
  .table-cards tbody td:first-child {
    padding-top: 0;
    font-size: 14px;
    font-weight: 680;
  }

  .table-cards tbody td:first-child::before {
    content: none;
  }

}

/* Square icon actions (preview / download) used in the orders + draft-orders tables. */
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.icon-button:hover {
  color: var(--accent, var(--text));
  border-color: var(--accent, #cfcfcf);
  background: var(--accent-weak, #f7f9f7);
}

.icon-button:focus-visible {
  outline: 2px solid var(--accent, #4b5563);
  outline-offset: 2px;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

/* The header separates from the rows by contrast alone: same white surface, but
   the labels at full text colour over a firm 2px rule. The old --panel-subtle
   grey was a neutral the green-tinted pages never redefined, so it landed within
   a hair of the white rows - invisible once the header became sticky and rows
   started passing beneath it. */
.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--text);
  background: var(--panel);
  border-bottom: 2px solid var(--text);
  font-size: 12px;
  font-weight: 760;
}

.data-table tbody tr:hover td {
  background: var(--hover);
}

.order-row {
  cursor: pointer;
}

.order-link {
  color: var(--text);
  text-decoration: none;
}

.order-row:hover .order-link {
  color: var(--accent);
}

.data-table tbody tr.is-selected td {
  background: var(--accent-weak);
}

.data-table td {
  font-size: 13px;
}

.data-table input {
  max-width: 112px;
  margin-left: auto;
  text-align: right;
}

.align-right {
  text-align: right !important;
}

/* Empty state for a table or panel with no rows. Grid + gap so a call to
   action below the message spaces itself; centred because every use sits in a
   table shell or a column block. Defined once - a second, left-aligned copy
   further down this file used to win and strip the padding. */
.empty-state {
  display: grid;
  gap: 12px;
  justify-items: center;
  align-content: start;
  padding: 32px;
  color: var(--muted);
  text-align: center;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* The way back (order detail, draft detail, vendor detail, settings pages): E's
   quiet "< Orders" link above the page title, not a button. */
.back-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 8px 0 4px;
  margin-left: -4px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0;
  transition: color 0.15s ease, background 0.15s ease;
}
.back-pill svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.back-pill:hover { color: var(--text); background: var(--hover); }
.back-pill:hover svg { transform: translateX(-2px); }
.back-pill:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-weak); }

/* Locked documents: mute the row and show a compact reason instead of buttons. */

