/* Mail, replies and staff pages (build plan 2026-11-07, A6): Input queue, Compose,
   Import, Manage, Runs, Knowledge, Discount exceptions, Parties, Trouble tickets,
   Broa notices and Company mailboxes. Tokens only (desk.css); the scripts set no
   inline style. */

/* app.css gives `.note` a bar and padding for the pages not yet moved; on these pages
   a note is the Front Office's grey line (desk.css). */
#view-queue .note, #view-import .note, #view-compose .note, #view-manage .note, #view-runs .note,
#view-knowledge .note, #view-exceptions .note, #view-party .note, #view-tickets .note,
#view-notices .note, #view-mailboxes .note { border-left: 0; padding: 0; margin: var(--s-2) 0 0; line-height: inherit; }

/* Input queue */
.qstate { display: flex; gap: var(--s-2); align-items: center; margin-bottom: var(--s-3); }
.qstate select { max-width: 20rem; }
.qheader { margin: 0; overflow-wrap: anywhere; }
#qpvheaders { margin-top: var(--s-4); }

/* Import */
#view-import fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
#view-import fieldset legend { font-weight: 600; margin-bottom: var(--s-1); }
.implist { margin: var(--s-3) 0; max-width: 40rem; }
.implist .num, #import-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.implist .cut, #import-table .cut { max-width: 28rem; }

/* Compose */
.cmpform { display: grid; gap: var(--s-3); max-width: 40rem; }
.cmpform .field + .field { margin-top: 0; }
.cmpform textarea { width: 100%; }
.cmpstages { margin-top: var(--s-2); }

/* Trouble tickets */
#tkbody { display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
.tktable { width: 100%; }
.tktable td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tkmeta { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin: 0; color: var(--ink-2); }
.tkdesc { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.tkhistory { margin: 0; padding-left: var(--s-5); display: grid; gap: var(--s-2); }
.tkhistory p { margin: var(--s-1) 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tkreply { display: grid; gap: var(--s-3); max-width: 40rem; }
.tkreply .field + .field { margin-top: 0; }
.tkreply textarea { width: 100%; }

/* Broa notices */
#ntbody { display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
.nttable { width: 100%; }
.nttable td { vertical-align: top; }
.ntcheck { display: flex; gap: var(--s-2); align-items: center; }
.ntform { display: grid; gap: var(--s-3); max-width: 40rem; }
.ntform .field + .field, .ntform .field + .field[hidden] { margin-top: 0; }
.ntform textarea { width: 100%; }
.ntlist { display: grid; gap: var(--s-1); max-height: 16rem; overflow: auto; padding: var(--s-2);
  border: 1px solid var(--line); border-radius: var(--radius); }
.ntpick { display: flex; gap: var(--s-2); align-items: center; }
.ntlook { display: grid; gap: var(--s-2); }
.ntpreview { min-height: var(--s-6); }

/* Parties */
.ptbar { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin: var(--s-3) 0; }
.ptadd, .ptform { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: flex-end; margin: var(--s-3) 0; }
.ptadd .field, .ptform .field { margin: 0; }
.ptadd .field + .field, .ptform .field + .field { margin-top: 0; }
.ptadd .actions, .ptform .actions { margin: 0; }
.ptcontacts { width: 100%; }
#ptdetail { display: grid; gap: var(--s-3); padding: var(--s-3) 0; }

/* Runs */
#runstable .runmsg { display: block; max-width: 28rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
