/* Visas — Command Center-native queue, empty state and lodgement drawer. */


.visa-empty {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
  border-style: dashed;
  box-shadow: none;
}
.visa-empty-icon,
.visa-doc-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--gold-3);
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
}

.visa-list .visa-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: start;
}
.visa-list .visa-row:last-child { border-bottom: 0; }
.visa-list .visa-row:hover { background: var(--surface-2); }
.visa-row-main { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; gap: 4px; }
.visa-row-meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
.visa-row-meta > span + span::before { content: '·'; margin-inline-end: 8px; color: var(--ink-4); }
.visa-row-service { display: flex; flex: 0 0 190px; flex-direction: column; align-items: flex-end; gap: 2px; }

.visa-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 12px;
  margin-bottom: 14px;
}
.visa-alert--error { color: var(--bad-ink); background: var(--bad-bg); border: 1px solid #f0cfcb; }
.visa-alert--warn { color: var(--warn-ink); background: var(--warn-bg); border: 1px solid var(--gold-line); margin: 10px 0 0; }

.visa-drawer-body { display: flex; flex-direction: column; gap: 14px; background: var(--bg); }
.visa-loading { min-height: 220px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.visa-loading .boot-ring { position: static; width: 28px; height: 28px; }
.visa-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-xs); overflow: hidden; }
.visa-section-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.visa-section-body { padding: 14px; }

.visa-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.visa-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.visa-field-v {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-align: start;
}
.visa-field-v:hover { border-color: var(--gold-2); background: var(--gold-soft); }
.visa-field-v .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visa-field-missing { min-height: 38px; display: flex; align-items: center; padding: 8px 10px; border: 1px dashed var(--line); border-radius: var(--r-sm); color: var(--ink-3); font-size: 12px; }

.visa-doc-row { min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.visa-doc-row:last-of-type { border-bottom: 0; }
.visa-doc-icon { width: 34px; height: 34px; }
.visa-doc-meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visa-access-list { display: flex; flex-direction: column; }
.visa-access-row { display: grid; grid-template-columns: 130px minmax(100px, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-3); font-size: 11px; }
.visa-access-row:last-child { border-bottom: 0; }
.visa-case-actions { flex-wrap: wrap; align-items: center; }

@media (max-width: 760px) {
  .visa-row-service { display: none; }
  .visa-row-meta { flex-wrap: wrap; gap: 3px 8px; }
  .visa-fields { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .visa-empty { min-height: 116px; justify-content: flex-start; }
  .visa-list .visa-row { padding: 13px 12px; }
  .visa-list .avatar { width: 30px; height: 30px; }
  .visa-row-meta > span:last-child { flex-basis: 100%; }
  .visa-row-meta > span:last-child::before { display: none; }
  .visa-drawer-body { padding: 12px 12px 24px; }
  .visa-section-h, .visa-section-body { padding: 12px; }
  .visa-doc-row { align-items: flex-start; flex-wrap: wrap; }
  .visa-doc-row .btn { margin-inline-start: 44px; }
  .visa-access-row { grid-template-columns: 1fr auto; }
  .visa-access-row > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .visa-case-actions .btn, .visa-case-actions label.btn { flex: 1 1 100%; }
}
