/* The Outlook pane: the case app at Outlook's pane width (320 px). It keeps the full app's warm canvas,
   hairlines, pills and type from app.css, so it reads as the same product in a narrow column.
   Sections are divided by hairlines; lists are full-width row bands, never cards. */

html, body { height: 100%; }
body { overflow: hidden; background: var(--canvas); }
.pn { display: flex; flex-direction: column; height: 100%; }

.pn-bar { flex: none; display: flex; align-items: center; gap: 2px; height: 42px; padding: 0 6px 0 8px; border-bottom: 1px solid var(--line); }
.pn-bar-title { flex: 1; min-width: 0; padding-left: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pn-bar .iconbtn.on { background: var(--tint-2); color: var(--text); }
.pn-body { flex: 1; min-height: 0; overflow: auto; }

.tag.stage-purchasing { background: #e4f5f7; color: #11707f; }
.tag.stage-delivered { background: var(--green-soft); color: var(--green); }

.pn-flash { display: flex; align-items: center; gap: 8px; margin: 12px 16px 0; padding: 8px 12px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 12.5px; font-weight: 500; }
.pn-flash i { flex: none; font-size: 16px; }

/* A case: where it stands now, its facts, what is open, then its emails. */
.pn-head { padding: 16px 16px 14px; border-bottom: 1px solid var(--line); }
.pn-co { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.pn-co .ellipsis { min-width: 0; }
.pn-id { flex: none; margin-left: auto; color: var(--text-3); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pn-title { margin-top: 8px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.pn-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pn-now { margin-top: 12px; font-size: 13.5px; line-height: 1.5; }
.pn-src { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--text-3); font: 12px var(--font); text-align: left; cursor: pointer; }
.pn-src i { font-size: 13px; }
.pn-src:hover { color: var(--accent-text); }

.pn-sec { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pn-sec.flush { padding-bottom: 0; border-bottom: 0; }
.pn-sec h2 { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12.5px; font-weight: 600; }
.pn-sec h2 .n { color: var(--text-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.pn-badge { min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 600; }

.pn-facts { margin: 0; }
.pn-fact { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; margin: 0 -8px; padding: 5px 8px; border-radius: 8px; cursor: pointer; }
.pn-fact:hover { background: var(--tint); }
.pn-fact dt { color: var(--text-3); font-size: 12.5px; }
.pn-fact dd { margin: 0; font-size: 13px; }
.pn-was { display: block; color: var(--text-3); font-size: 12px; }

.pn-open { margin: 0; padding: 0; list-style: none; }
.pn-open li { position: relative; margin: 0 -8px; padding: 6px 8px 6px 24px; border-radius: 8px; cursor: pointer; }
.pn-open li::before { content: ''; position: absolute; left: 11px; top: 14px; width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
.pn-open li:hover { background: var(--tint); }
.pn-open .t { display: block; font-size: 13px; }
.pn-open .s { display: block; margin-top: 1px; color: var(--text-3); font-size: 11.5px; }
.pn-empty { color: var(--text-3); font-size: 12.5px; }

/* Row bands: a case's emails, the own list and the case picker. */
.pn-rows { margin: 0 -16px; border-top: 1px solid var(--line); }
.pn-row { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; width: 100%; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--line); background: var(--row); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pn-row:hover { background: var(--row-hover); }
.pn-row-main { display: block; min-width: 0; }
.pn-row-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.pn-row-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.pn-time { flex: none; color: var(--text-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.pn-row-sub { display: block; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: 12px; }
.pn-row-text { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.pn-box { display: inline-block; height: 18px; margin-top: 5px; padding: 0 6px; border-radius: 5px; background: var(--tint-2); color: var(--text-3); font-size: 11px; font-weight: 500; line-height: 18px; }

/* A suggestion or a new request: one question and its answers. */
.pn-ask { padding: 18px 16px; }
.pn-kicker { color: var(--text-3); font-size: 12px; font-weight: 500; }
.pn-q { margin-top: 4px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.pn-cand { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; margin: 14px -16px 0; padding: 12px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--row); }
.pn-cand[data-case] { cursor: pointer; }
.pn-cand[data-case]:hover { background: var(--row-hover); }
.pn-cand b { display: block; font-size: 13.5px; font-weight: 600; }
.pn-cand .pn-row-sub { margin-top: 2px; }
.pn-cand .tag { margin-top: 8px; }
.pn-why { margin-top: 12px; font-size: 13px; line-height: 1.5; }
.pn-why.muted { margin-top: 6px; font-size: 12.5px; }
.pn-ask .pn-co { margin-top: 8px; }
.pn-ask .pn-facts { margin-top: 12px; }
.pn-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pn-other { margin-top: 14px; }

.pn-note { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 12.5px; }

.pn-pick { padding: 12px 16px; }
.pn-pick .filter { width: 100%; }
.pn-pick .pn-rows { margin-top: 12px; }

/* An email read inside the pane, for the ones that sit in another mailbox. */
.pn-read { padding: 16px; }
.pn-read-subj { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.pn-read-from { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 12px; }
.pn-read-from b { display: block; font-size: 13px; font-weight: 600; }
.pn-read-to { margin-top: 8px; color: var(--text-3); font-size: 12px; }
.pn-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pn-file { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 26px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--row); color: var(--text-2); font-size: 12px; }
.pn-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-read-body { margin-top: 14px; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
