/* Settings › « Rapports » — the organisation's report profile (lot E,
   27/09/2026). The form on the left, a live preview on the right that stays in
   view; one column on a narrow screen. Application tokens only. */

#report-profile-root .report-profile { display: grid; gap: 14px; min-width: 0; }
#report-profile-root .report-intro { margin: 0; color: var(--tx-2); font-size: 13px; line-height: 1.5; }
#report-profile-root .report-version {
  justify-self: start;
  margin: 0;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--paper);
  color: var(--tx);
  font-size: 12.5px;
  font-weight: 650;
}
#report-profile-root .report-read-only {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--tx-2);
  font-size: 13px;
}
#report-profile-root .report-status { margin: 0; min-height: 1.2em; color: var(--tx-2); font-size: 13px; }
#report-profile-root .report-status.is-error { color: var(--err); }

#report-profile-root .report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
#report-profile-root .report-form { display: grid; gap: 16px; min-width: 0; }
#report-profile-root .report-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line-card);
  border-radius: var(--r);
  background: var(--card);
}
#report-profile-root .report-group-title { margin: 0; font-size: 14px; font-weight: 650; color: var(--tx); }
#report-profile-root .report-field { display: grid; gap: 5px; min-width: 0; }
#report-profile-root .report-field-label { margin: 0; color: var(--tx-2); font-size: 12.5px; font-weight: 650; }
#report-profile-root .report-field-help { margin: 0; color: var(--tx-3); font-size: 12px; line-height: 1.45; }
#report-profile-root .report-field-error { margin: 0; color: var(--err); font-size: 12px; font-weight: 600; }
#report-profile-root .report-input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--tx);
  font: inherit;
  font-size: 13px;
}
#report-profile-root .report-input:focus-visible { outline: 2px solid var(--accent-line); border-color: var(--accent); }
#report-profile-root .report-input[aria-invalid="true"] { border-color: var(--err); }
#report-profile-root .report-input:disabled { background: var(--paper); color: var(--tx-2); }

/* Logo */
#report-profile-root .report-logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#report-profile-root .report-logo-thumb {
  display: grid;
  place-items: center;
  width: 120px;
  height: 56px;
  padding: 6px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  background: var(--paper);
}
#report-profile-root .report-logo-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
#report-profile-root .report-logo-empty { color: var(--tx-3); font-size: 12px; }
#report-profile-root .report-logo-pick { position: relative; cursor: pointer; }
#report-profile-root .report-logo-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
#report-profile-root .report-logo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Colours */
#report-profile-root .report-colors { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; min-width: 0; }
#report-profile-root .report-colors-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
#report-profile-root .report-color-row { display: flex; align-items: center; gap: 8px; }
#report-profile-root .report-color-swatch {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 2px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--card);
  cursor: pointer;
}
#report-profile-root .report-color-text { font-family: var(--mono); text-transform: uppercase; }
#report-profile-root .report-contrast { margin: 0; color: var(--ok); font-size: 12px; font-weight: 600; }
#report-profile-root .report-contrast.is-low { color: var(--err); }

/* Cartouche */
#report-profile-root .report-cartouche-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
#report-profile-root .report-cartouche-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
}
#report-profile-root .report-cartouche-item.is-hidden-field { background: var(--paper); }
#report-profile-root .report-cartouche-item.is-hidden-field .report-cartouche-label { color: var(--tx-3); }
#report-profile-root .report-cartouche-toggle { width: 16px; height: 16px; accent-color: var(--accent); }
#report-profile-root .report-cartouche-body { display: grid; gap: 3px; min-width: 0; }
#report-profile-root .report-cartouche-label { height: 34px; }
#report-profile-root .report-cartouche-key { color: var(--tx-3); font-size: 11.5px; }
#report-profile-root .report-cartouche-approval { color: var(--accent-soft-ink); font-size: 11.5px; font-weight: 600; }
#report-profile-root .report-cartouche-moves { display: flex; gap: 4px; }
#report-profile-root .report-cartouche-move {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--tx);
  font: inherit;
  cursor: pointer;
}
#report-profile-root .report-cartouche-move:hover:not(:disabled) { background: var(--accent-soft); }
#report-profile-root .report-cartouche-move:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#report-profile-root .report-cartouche-move:disabled { opacity: .4; cursor: default; }

#report-profile-root .report-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Preview */
#report-profile-root .report-preview {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line-card);
  border-radius: var(--r);
  background: var(--paper);
}
#report-profile-root .report-preview-body { min-width: 0; }
#report-profile-root .report-preview-state { margin: 0; color: var(--tx-3); font-size: 12.5px; }
#report-profile-root .report-preview-state.is-error { color: var(--err); }
#report-profile-root .report-preview-page {
  display: grid;
  gap: 10px;
  min-height: 360px;
  padding: 0 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  box-shadow: var(--sh);
  font-size: 12px;
  overflow: hidden;
}
#report-profile-root .report-preview-band {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 14px;
}
#report-profile-root .report-preview-logo { max-height: 32px; max-width: 96px; object-fit: contain; }
#report-profile-root .report-preview-name { font-size: 14px; font-weight: 700; }
#report-profile-root .report-preview-header { margin-left: auto; font-size: 11px; opacity: .9; text-align: right; }
#report-profile-root .report-preview-classification {
  justify-self: start;
  margin: 0 14px;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
#report-profile-root .report-preview-heading { margin: 0 14px; font-size: 15px; font-weight: 700; }
#report-profile-root .report-preview-cartouche { margin: 0 14px; border-collapse: collapse; font-size: 11.5px; }
#report-profile-root .report-preview-cartouche th,
#report-profile-root .report-preview-cartouche td { padding: 4px 8px; border: 1px solid currentColor; text-align: left; vertical-align: top; }
#report-profile-root .report-preview-cartouche th { width: 38%; font-weight: 650; }
#report-profile-root .report-preview-cartouche tr.is-approval td { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0, 0, 0, .04) 6px 12px); }
#report-profile-root .report-preview-notice { margin: 0 14px; font-size: 10.5px; font-style: italic; opacity: .8; }
#report-profile-root .report-preview-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: auto 14px 0;
  padding-top: 8px;
  border-top: 1px solid currentColor;
  font-size: 10.5px;
  opacity: .85;
}
#report-profile-root .report-preview-approval {
  margin: 0;
  padding: 8px 10px;
  border-left: 3px solid var(--accent);
  background: var(--card);
  color: var(--tx-2);
  font-size: 12.5px;
  line-height: 1.45;
}

/* Conflict */
#report-profile-root .report-conflict {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--warn-line);
  border-radius: var(--r);
  background: var(--warn-bg);
  color: var(--tx);
}
#report-profile-root .report-conflict p { margin: 0; font-size: 13px; }
#report-profile-root .report-conflict-scroll { overflow-x: auto; }
#report-profile-root .report-conflict-table { width: 100%; border-collapse: collapse; font-size: 12.5px; background: var(--card); }
#report-profile-root .report-conflict-table th,
#report-profile-root .report-conflict-table td { padding: 6px 8px; border: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }

@media (max-width: 980px) {
  #report-profile-root .report-layout { grid-template-columns: 1fr; }
  #report-profile-root .report-preview { position: static; }
}
@media (max-width: 560px) {
  #report-profile-root .report-colors-grid { grid-template-columns: 1fr; }
  #report-profile-root .report-group { padding: 12px; }
  #report-profile-root .report-cartouche-item { grid-template-columns: auto minmax(0, 1fr); }
  #report-profile-root .report-cartouche-moves { grid-column: 1 / -1; justify-content: flex-end; }
}
#report-profile-root .report-color-field { align-content: start; }

/* Lot E follow-ups (27/09/2026): the versions, with their date and author. */
#report-profile-root .report-history { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line-card); border-radius: var(--r); background: var(--card); }
#report-profile-root .report-history-title { margin: 0; font-size: 14px; font-weight: 650; color: var(--tx); }
#report-profile-root .report-history-body { display: grid; gap: 8px; }
#report-profile-root .report-history-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
#report-profile-root .report-history-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--tx); font-size: 13px; overflow-wrap: anywhere; }
#report-profile-root .report-history-active { padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-soft-ink); font-size: 11.5px; font-weight: 650; }
#report-profile-root .report-history-restore { margin-left: 8px; }
#report-profile-root .report-history-more { justify-self: start; }
/* Recette 27/09/2026: a chosen font the computer does not have is said, not hidden. */
#report-profile-root .report-preview-font-note {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-left: 3px solid var(--warn);
  border-radius: var(--r-xs);
  background: var(--paper);
  color: var(--tx-2);
  font-size: 12px;
  line-height: 1.45;
}
