/* Spec sheet links (FR-73): the "Spec sheet" row in a unit's Properties
   (ui.js), the Quote tab's small "Spec" link beside a line's model, Admin >
   Spec sheets (specSheetsAdmin.js), the link form it and Platform > Items
   share (specSheetEditor.js), and the Export Package's words about them.
   Colours are the app's tokens (styles.css), so both themes follow. */

.spec-sheet-cell, .spec-link-cell { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.spec-sheet-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.spec-sheet-link:hover, .spec-sheet-link:focus-visible { color: var(--accent-hover); }
.spec-sheet-checked { font-size: 11px; }

/* Quote: beside the model number, on its own line under it. */
.quote-spec-link {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: normal;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.quote-spec-link:hover, .quote-spec-link:focus-visible { color: var(--accent-hover); }

/* Admin > Spec sheets: the link column wraps a long address. */
.spec-sheets-table td.spec-sheets-link-cell { white-space: normal; min-width: 200px; max-width: 420px; }
.spec-sheets-link-cell .items-team-badge { margin-left: 8px; }
#spec-sheets-summary:empty { display: none; }
#spec-sheets-summary .export-package-docs-link { margin-left: 4px; }

/* The link form: the address takes the room, the day and words beside it. */
.spec-editor .items-field input[type="date"] { width: 140px; }
.spec-editor .items-field input[type="text"] { width: 180px; }
.spec-editor .items-field.wide input { width: 100%; }
/* Its buttons on a line of their own, at the left, however wide the
   table it's in (Platform > Items' is wider than the page). */
.spec-editor .items-editor-actions { flex-basis: 100%; }
.spec-editor-status { flex-basis: 100%; margin: 0; }
.spec-editor-status:empty { display: none; }
.spec-editor-status.error { color: var(--danger-text); }
.spec-box .items-editor { border: 0; padding: 0; background: none; }
/* Platform > Items' editor sits in a table cell that doesn't wrap. */
.spec-box .acc-hint, .spec-box .spec-editor-status { white-space: normal; max-width: 720px; }

/* The Export Package: the ZIP's counts and missing models, and the way to
   add them. */
.export-package-spec { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.export-package-spec .hint { margin: 2px 0 0; overflow-wrap: anywhere; }
.export-package-spec.is-off { display: none; }
.export-package-spec .hidden { display: none; }
