/* Document Send pages: pgp-ui tokens (pgp-tokens.css, copied from
   PGPIT/pgp-ui src/tokens.css) plus the older shared pgp.css layout.
   Montserrat is served from here, not Google. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/assets/montserrat-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/assets/montserrat-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

[hidden] { display: none !important; }

:root {
  /* @pgp/ui's muted grey #7d7d7d fails WCAG AA for small text (4.1:1); the
     estate's accessible value, as pgp-contracts uses. */
  --pgp-ink-muted: #5f5f5f;
}

/* Every form control looks like @pgp/ui's Input / Select, wherever it sits. */
main select, main input:not([type=checkbox]):not([type=radio]), main textarea,
dialog select, dialog input:not([type=checkbox]):not([type=radio]), dialog textarea {
  box-sizing: border-box; font-family: var(--pgp-font-sans); font-size: var(--pgp-text-sm);
  color: var(--pgp-ink); background-color: var(--pgp-surface);
  padding: 9px 12px; border: 1px solid var(--pgp-border); border-radius: var(--pgp-radius-control);
  transition: border-color var(--pgp-motion), box-shadow var(--pgp-motion); min-height: 40px;
}
main select, dialog select {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23144733' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px;
}
main select:hover, main input:not([type=checkbox]):hover, main textarea:hover { border-color: var(--pgp-ink-muted); }
main select:focus, main input:not([type=checkbox]):focus, main textarea:focus,
dialog select:focus, dialog input:not([type=checkbox]):focus, dialog textarea:focus {
  outline: none; border-color: var(--pgp-green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pgp-green) 16%, transparent);
}
main input::placeholder, main textarea::placeholder { color: var(--pgp-ink-muted); }
main input[type=checkbox] { accent-color: var(--pgp-green); width: 18px; height: 18px; }
/* Controls inside pgp.css's .field .box keep that component's own frame. */
.field .box select, .field .box input, .field .box textarea { border: 0; box-shadow: none; min-height: 0; padding-left: 0; }
.field .box select { padding-right: 28px; background-position: right 4px center; }
table.list select { min-width: 260px; }

main { max-width: 1180px; margin: 0 auto; padding: 24px 24px 64px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 8px 0 18px; flex-wrap: wrap; }
.head h1 { margin: 2px 0 0; font-size: 26px; font-weight: 600; }
.dept { margin-bottom: 28px; }
.dept > h2, .dept-head h2 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--g); margin: 0 0 10px; }
.dept-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dept-head h2 { margin: 0 0 10px; }
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 14px; }
.type { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.type h3 { margin: 0; font-size: 15px; }
.type p { margin: 0; font-size: 13px; color: var(--muted); }
.type .row { display: flex; gap: 8px; align-items: center; margin-top: auto; flex-wrap: wrap; }
.type input, .type select { width: auto; max-width: 210px; }
.type .last { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.type .card-msg .notice { margin: 0; font-size: 12.5px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
table.list { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; font-size: 13px; }
table.list th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--alt); }
table.list td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr:last-child td { border-bottom: 0; }
table.list tr.click { cursor: pointer; }
table.list tr.click:hover td { background: var(--tint2); }
table.list tr.sel td { background: var(--tint); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { padding: 18px; color: var(--muted); background: #fff; border: 1px dashed var(--line2); border-radius: var(--radius-card); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 12px 14px; }
.stat small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat b { display: block; font-size: 22px; color: var(--ink); font-weight: 600; margin-top: 2px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 22px 0 12px; }
.tabs button { font: inherit; font-weight: 600; background: none; border: 0; padding: 10px 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button[aria-selected=true] { color: var(--g); border-bottom-color: var(--g); }
.exc { margin: 4px 0 0; padding-left: 18px; font-size: 12px; color: var(--amber); }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.mono { font-family: Consolas, ui-monospace, monospace; font-size: 12px; }
.small { font-size: 12px; }
.rv-intro { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
dialog.reviewer { width: min(1180px, 96vw); height: 94vh; max-height: 94vh; display: none; flex-direction: column; overflow: hidden; }
dialog.reviewer[open] { display: flex; }
.rv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 14px 18px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rv-head h2 { margin: 0 0 2px; font-size: 18px; font-weight: 600; }
.rv-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-exc { margin: 8px 18px 0; }
.rv-docs { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 18px 0; }
.rv-doctab { font: inherit; font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-doctab[aria-selected=true] { background: var(--g); border-color: var(--g); color: #fff; }
.rv-doc .notice { margin: 0; }
.rv-doc { flex: 1; min-height: 0; padding: 10px 18px; background: var(--alt); }
.rv-doc iframe { width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.rv-table { height: 100%; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 8px; }
.rv-table table td, .rv-table table th { white-space: nowrap; }
.rv-table table th { text-transform: none; letter-spacing: 0; font-size: 12px; }
.rv-foot { border-top: 1px solid var(--line); padding: 10px 18px 14px; display: flex; flex-direction: column; gap: 8px; }
.rv-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rv-meta pre { white-space: pre-wrap; font: 12px/1.5 var(--sans); background: var(--alt); border: 1px solid var(--line); border-radius: 4px; padding: 10px; max-height: 140px; overflow: auto; margin: 6px 0 0; }
.rv-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-act textarea { flex: 1 1 320px; min-height: 40px; }
.rv-act textarea.need { border-color: var(--red, #b3123b); box-shadow: 0 0 0 2px rgba(179,18,59,.15); }
@media (max-width: 720px) { table.list .hide-sm { display: none; } dialog.reviewer { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; } }

/* Access gate (signed in, no access yet) on the @pgp/ui shell. */
.gate-card { text-align: left; background: var(--pgp-surface); border-radius: var(--pgp-radius-card);
  padding: var(--pgp-space-6); box-shadow: var(--pgp-shadow); }
.gate-card .pgp-select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23144733' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.gate-done { margin: 0; color: var(--pgp-ink); font-size: var(--pgp-text-sm); }
.gate-note { color: var(--pgp-danger); font-size: var(--pgp-text-xs); min-height: 1em; margin-top: 8px; }
.gate-link { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; text-decoration: underline; }

/* Steps: who did each, and the one thing a run waits for (2026-10-14 workflow review) */
.stepper li .step-note { display: block; font-size: 11px; font-weight: 400; color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-line { margin: 10px 0 0; }
.stepper { margin-bottom: 4px; }
