/* Documents / POD: the list and the upload dialog. */

.missing-pod { align-items: center; }
.missing-list { display: flex; gap: 4px 12px; flex-wrap: wrap; font-size: 12.5px; margin-top: 2px; }
.missing-list a { color: inherit; font-weight: 600; }
.doc-cell { display: flex; gap: 10px; align-items: flex-start; min-width: 220px; }
.doc-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--muted-bg); color: var(--text2); display: flex; align-items: center; justify-content: center; flex: none; }
.doc-icon.info { background: var(--info-bg); color: var(--navy); }
.doc-icon.warn { background: var(--warn-bg); color: var(--warn); }
.doc-icon.good { background: var(--good-bg); color: var(--good); }
.doc-name { min-width: 0; overflow-wrap: anywhere; }
.doc-name .link { text-align: left; font-weight: 700; color: var(--text); }
.table td.doc-actions { padding-top: 6px; padding-bottom: 6px; }
.doc-actions .row { justify-content: flex-end; gap: 2px; }
.icon-btn.danger { color: var(--bad); }
.icon-btn.danger:hover { background: var(--bad-bg); color: var(--bad); }

.kind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.kind-choice { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 10px; padding: 9px 12px; font-weight: 600; text-align: left; cursor: pointer; }
.kind-choice:hover { background: var(--muted-bg); }
.kind-choice.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.kind-choice[disabled] { opacity: .6; cursor: not-allowed; }
.drop-zone { border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.drop-zone.over { border-color: var(--blue); background: var(--info-bg); }
.pick-row { display: flex; gap: 8px; width: 100%; }
.pick-tile { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 68px; justify-content: center; border: 0; border-radius: 12px; background: var(--info-bg); color: var(--navy); font-weight: 700; cursor: pointer; }
.pick-tile:hover { background: #D6E2F8; }
.pick-tile[disabled] { opacity: .55; cursor: not-allowed; }
.upload-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; }
.upload-item { display: flex; gap: 10px; align-items: center; padding: 8px 10px; }
.upload-item + .upload-item { border-top: 1px solid var(--line); }
.upload-thumb { width: 48px; height: 48px; border-radius: 9px; background: var(--muted-bg); color: var(--text2); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-name { display: block; font-weight: 600; overflow-wrap: anywhere; }
.progress { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 40%; background: var(--navy); animation: doc-progress 1s ease-in-out infinite alternate; }
@keyframes doc-progress { from { margin-left: 0; } to { margin-left: 60%; } }
/* On a phone the open, download and delete buttons stay in view; when and how big are left out. */
@media (max-width: 700px) { .table .doc-hide-sm { display: none; } .doc-cell { min-width: 0; } }
