/* Applying with documents (jobs/apply.html), the carrier's document viewer
   (employer/_application_docs.html) and the driver's saved documents
   (driver/documents.html). Same dispatch-sheet rules as app.css. */

/* What the post asks for, above the Apply button. */
.apply-needs { display: grid; gap: 6px; }
.apply-needs ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.apply-needs li { padding: 6px 0; border-bottom: 1px solid var(--rule-soft); font-weight: 620; }
.apply-needs li::before { content: "\25A1\00a0\00a0"; color: var(--ink-2); }

/* The apply page: ruled sections, the send button last. */
.apply-form { gap: 0; }
.apply-sec { padding: 22px 0; border-top: 2px solid var(--ink); display: grid; gap: 12px; }
.apply-sec h2 { margin: 0; font-size: 1.2rem; display: flex; gap: 8px; align-items: center; }
.apply-sec h2 label { font: inherit; margin: 0; }
.apply-form > .apply-sec:first-of-type { border-top: 0; padding-top: 4px; }
.apply-sec textarea { width: 100%; font: inherit; line-height: 1.5; }
.doc-slot { border: 1px solid var(--rule); padding: 12px 14px 14px; margin: 0; display: grid; gap: 8px; min-width: 0; }
.doc-slot legend { font-weight: 750; padding: 0 6px; margin-left: -6px; }
.doc-slot.has-error { border: 2px solid var(--bad); }
.doc-choice { align-items: center; }
.doc-choice strong { overflow-wrap: anywhere; }
.doc-file { max-width: 100%; }
.apply-send { padding: 22px 0 8px; border-top: 2px solid var(--ink); display: grid; gap: 10px; justify-items: start; }

/* The carrier's viewer: tabs of files, the file, then open and download. */
.doc-viewer { display: grid; gap: 12px; }
.doc-viewer h2 { margin: 0; font-size: 1.2rem; }
.doc-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--ink); }
.doc-tabs a { display: grid; gap: 2px; padding: 8px 14px; border: 1px solid var(--rule); border-bottom: 0; margin-right: -1px;
              color: var(--ink); text-decoration: none; font-weight: 650; background: var(--paper); }
.doc-tabs a .small { font-weight: 450; color: var(--ink-2); }
.doc-tabs a[aria-current="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.doc-tabs a[aria-current="true"] .small { color: var(--on-ink); }
.doc-stage { border: 1px solid var(--rule); background: var(--paper-2); min-height: 200px; }
.doc-frame { display: block; width: 100%; height: min(80vh, 1000px); border: 0; background: #FFFFFF; }
.doc-img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.doc-nopdf { padding: 28px 20px; display: grid; gap: 12px; justify-items: start; }
.doc-nopdf p { margin: 0; }
.doc-actions .small { overflow-wrap: anywhere; }

/* The driver's saved documents. */
.doc-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.doc-list li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
.doc-list li > div { display: grid; gap: 2px; min-width: 0; }
.doc-list a strong { overflow-wrap: anywhere; }
