/* Licences & Documents (/documents, scripts/documents.js): the document wallet and the qualification history.
   The status items and form fields are the Currency page's (pro-cards.css: .cur-item, .cur-pill, .cur-fields). */

.doc-due { margin-top: 12px; }
.doc-due:empty { display: none; }

/* The wallet's tabs, one for each kind it holds */
.doc-tabs { margin-bottom: 12px; }
.doc-tabs span { font-weight: 600; opacity: 0.7; }
.doc-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; margin-bottom: 6px; }
.doc-item.editing { border-color: var(--blue); }
.doc-icon { font-size: 20px; flex: none; }
.doc-main { flex: 1 1 auto; min-width: 0; }
.doc-main b { display: block; overflow-wrap: anywhere; }
.doc-meta { color: var(--muted); font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.doc-buttons { display: flex; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }

.doc-form { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.doc-form h3 { margin: 0; font-size: 13px; }
.doc-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.doc-form label.hidden { display: none; }
.doc-file input[type=file] { font-size: 12px; color: var(--text); }
/* A medical certificate's class, and whether it's the medical on the Deadlines (the Medical card's) */
.doc-medical { display: flex; flex-direction: column; gap: 10px; }
.doc-medical.hidden, .doc-medical .hidden { display: none; }
.doc-form label.doc-check { flex-direction: row; align-items: flex-start; gap: 8px; color: var(--text); }
.doc-check input { margin-top: 2px; flex: none; }
.doc-current { color: var(--green); font-weight: 600; }
.doc-actions { display: flex; gap: 8px; }
.doc-actions .hidden { display: none; }
.doc-footnote { margin: 14px 4px 0; }
.doc-footnote a { color: var(--cyan); }

.qual-history { list-style: none; margin: 8px 0 0; padding: 0 0 0 12px; border-left: 2px solid var(--line-light); display: flex; flex-direction: column; gap: 6px; }
.qual-entry { font-size: 12px; color: var(--muted); }
.qual-entry b { color: var(--text); font-weight: 600; }
.qual-entry .doc-buttons { display: inline-flex; margin-left: 6px; vertical-align: middle; }
.qual-entry button.sm { padding: 2px 8px; font-size: 12px; }
.qual-evidence { color: var(--cyan); background: none; border: 0; padding: 0; cursor: pointer; font-size: 12px; text-decoration: underline; }

.doc-viewer { max-width: 900px; }
.doc-viewer-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.doc-viewer-head h3 { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.doc-viewer img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 6px; }
.doc-viewer iframe { width: 100%; height: 70vh; border: 0; border-radius: 6px; background: #fff; }

.toast-notification { position: fixed; bottom: 20px; right: 20px; padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 12px;
  border: 1px solid; z-index: 2000; }
.toast-notification.hidden { display: none; }

@media (max-width: 640px) {
  .doc-item { flex-wrap: wrap; }
  .doc-buttons { width: 100%; justify-content: flex-start; }
}

/* At a Glance: the date on the top line, beside the name */
.doc-due-when { flex: 1 1 auto; margin-left: 12px; font-size: 13px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

/* The wallet's Medical button, and what's on the Deadlines now */
.doc-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 14px; }
.doc-quick .desc { flex: 1 1 220px; margin: 0; }
