/* ==========================================================================
   CLANKA PERSONNEL & OPERATIONS CONSOLE
   Industrial, high-density, solid-state command interface.
   Zero neon drop-shadows. Zero hollow transparent boxes. Zero emojis.
   ========================================================================== */

:root {
  --bg-canvas: #050505;
  --bg-surface: #0a0a0a;
  --bg-surface-raised: #121212;
  --bg-surface-hover: #1c1c1c;

  --border-muted: #1a1a1a;
  --border-subtle: #262626;
  --border-active: #555555;

  --text-primary: #f0f0f0;
  --text-secondary: #888888;
  --text-muted: #555555;
  --text-inverse: #050505;

  --indicator-active: #3fb950;
  --indicator-pending: #d29922;
  --indicator-danger: #f85149;
  --indicator-blue: #388bfd;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── Top Navigation Bar ─────────────────────────────────────────────────── */
.portal-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 1.5rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-badge {
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 3px;
}

.brand-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.brand-sub {
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--font-mono);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px 3px 5px;
  border-radius: 4px;
}

.user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  display: block;
}

.user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Solid Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.12s, border-color 0.12s;
}

.btn-primary {
  background-color: #f0f6fc;
  color: #0d1117;
  border-color: #f0f6fc;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #ffffff;
  border-color: #ffffff;
}

.btn-secondary {
  background-color: var(--bg-surface-raised);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-active);
}

.btn-success {
  background-color: #238636;
  color: #ffffff;
  border-color: #2ea043;
}

.btn-success:hover {
  background-color: #2ea043;
}

.btn-danger {
  background-color: #da3633;
  color: #ffffff;
  border-color: #f85149;
}

.btn-danger:hover {
  background-color: #f85149;
}

.btn:disabled, .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Mode Switcher Bar ──────────────────────────────────────────────────── */
.mode-toggle-group {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2px;
}

.mode-toggle-group .btn {
  padding: 3px 9px;
  font-size: 11px;
  border: none;
}

/* ── Badges & Hardware Indicators ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.badge-dot.active { background-color: var(--indicator-active); }
.badge-dot.pending { background-color: var(--indicator-pending); }
.badge-dot.danger  { background-color: var(--indicator-danger); }
.badge-dot.blue    { background-color: var(--indicator-blue); }

.badge-active {
  background: var(--bg-surface-raised);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.badge-loa {
  background: var(--bg-surface-raised);
  border-color: var(--border-subtle);
  color: var(--indicator-pending);
}

.badge-danger {
  background: var(--bg-surface-raised);
  border-color: var(--border-subtle);
  color: var(--indicator-danger);
}

/* ── Main Container & Workstation Grid ──────────────────────────────────── */
.portal-main {
  flex: 1;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.workstation-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 980px) {
  .workstation-layout {
    grid-template-columns: 1fr;
  }
}

/* ── Universal Lookup Bar ───────────────────────────────────────────────── */
.lookup-strip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 1.25rem;
}

.lookup-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lookup-prefix {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.lookup-input {
  flex: 1;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 10px;
  outline: none;
}

.lookup-input:focus {
  border-color: var(--border-active);
}

/* ── Personnel Dossier Header ───────────────────────────────────────────── */
.dossier-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.dossier-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dossier-avatar {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.dossier-titles h2 {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dossier-titles p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.dossier-stats {
  display: flex;
  gap: 1.5rem;
}

.stat-item {
  text-align: right;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-end;
}

/* ── Department Grid & Cards ────────────────────────────────────────────── */
.section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1rem;
}

.dept-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

.dept-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-muted);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.dept-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.dept-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.dept-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dept-rank-box {
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: 0.75rem;
}

.rank-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
}

.current-rank {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
}

.next-rank-target {
  font-size: 11px;
  color: var(--text-secondary);
}

/* ── Progress Tracks (Solid State, No Neon) ─────────────────────────────── */
.progress-group {
  margin-top: 0.5rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  margin-bottom: 3px;
}

.progress-header span:first-child {
  color: var(--text-secondary);
}

.progress-val {
  color: var(--text-primary);
  font-weight: 600;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-muted);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--indicator-blue);
  transition: width 0.25s ease-out;
}

.progress-fill.complete {
  background-color: var(--indicator-active);
}

.progress-fill.striped-na {
  width: 100% !important;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.45) 0px,
    rgba(255, 255, 255, 0.45) 3px,
    rgba(255, 255, 255, 0.08) 3px,
    rgba(255, 255, 255, 0.08) 10px
  );
  border: none;
}

/* ── Roster Telemetry Loading Indicator ─────────────────────────────────── */
.portal-loading-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--border-active);
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.loading-spinner-bar {
  width: 160px;
  height: 4px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-muted);
  border-radius: 2px;
  margin: 0 auto 1.25rem auto;
  overflow: hidden;
  position: relative;
}

.loading-spinner-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: var(--indicator-active);
  animation: radar-sweep 1.2s infinite ease-in-out;
}

@keyframes radar-sweep {
  0% { left: -35%; }
  50% { left: 100%; }
  100% { left: -35%; }
}

.portal-loading-card .loading-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.portal-loading-card .loading-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Tabular Data Rows ──────────────────────────────────────────────────── */
.dept-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 3px 0;
  border-bottom: 1px solid var(--border-muted);
}

.dept-row:last-child {
  border-bottom: none;
}

.dept-row-label {
  color: var(--text-secondary);
}

.dept-row-value {
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.dept-actions {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-muted);
  background: var(--bg-surface-raised);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.dept-actions-status {
  display: flex;
  align-items: center;
  margin-right: auto;
  min-width: max-content;
}

.dept-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Registry Sidebar Ledger ────────────────────────────────────────────── */
.registry-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

.registry-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.registry-list {
  list-style: none;
}

.registry-item {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.registry-item:last-child {
  border-bottom: none;
}

.registry-dept-tag {
  font-weight: 600;
  font-size: 12px;
  color: var(--text-primary);
}

.registry-dept-rules {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Modals (Solid Overlay) ─────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 17, 23, 0.85);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  max-width: 480px;
  width: 92%;
  padding: 1.25rem 1.5rem;
}

.modal-header {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-group {
  margin-bottom: 0.85rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.form-control {
  width: 100%;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 10px;
  outline: none;
}

input.form-control:read-only,
textarea.form-control:read-only,
.form-control:disabled,
.form-control[readonly],
.form-control-muted {
  background-color: var(--bg-surface-sunken, #12151a) !important;
  color: var(--text-muted, #768390) !important;
  border-color: var(--border-muted, #373e47) !important;
  cursor: not-allowed !important;
  opacity: 0.65;
  user-select: none;
  pointer-events: none;
}

select.form-control {
  background-color: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary) !important;
  cursor: pointer;
  opacity: 1 !important;
  pointer-events: auto !important;
  padding: 5px 28px 5px 10px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
}

select.form-control:focus {
  border-color: var(--border-active);
}

select.form-control option {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  padding: 6px 10px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 1.25rem;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.portal-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-muted);
  padding: 0.85rem 1.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Live Presence & Admin Directory ─────────────────────────────────────── */
@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(63, 185, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(63, 185, 80, 0);
  }
}

.live-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--indicator-active, #3fb950);
  display: inline-block;
  animation: pulse-green 2s infinite;
  vertical-align: middle;
}

.user-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.user-avatar-online-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  background-color: var(--indicator-active, #3fb950);
  border-radius: 50%;
  border: 2px solid var(--bg-surface-raised);
}

.active-users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.active-user-card {
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.12s;
}

.active-user-card:hover {
  border-color: var(--border-active);
}

.active-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.active-user-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-user-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-table th {
  text-align: left;
  padding: 8px 12px;
  background: var(--bg-surface-raised);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.admin-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-muted);
  color: var(--text-primary);
  vertical-align: middle;
  white-space: nowrap;
}

.admin-table tr:hover td {
  background: var(--bg-surface-raised);
}

.quota-exempt-row {
  opacity: 0.65;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS  (≤ 768px / ≤ 480px)
   ========================================================================== */

/* ── Header / Nav ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .portal-header {
    height: auto;
    padding: 10px 1rem;
    flex-wrap: wrap;
    gap: 8px;
  }

  .brand-section {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* Hide the text-only sub-label on small screens */
  .brand-sub {
    display: none;
  }

  .brand-title {
    font-size: 12px;
  }

  .nav-user {
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    justify-content: flex-end;
  }

  /* Shrink the nav toggle group so all buttons fit */
  .mode-toggle-group .btn {
    font-size: 10px;
    padding: 3px 7px;
  }

  /* Shrink logout button */
  .nav-user > a.btn {
    font-size: 10px;
    padding: 3px 8px;
  }

  /* User badge: hide username label, keep avatar + role badge */
  .user-name {
    display: none;
  }

  /* ── Emulation banner ───────────────────────────────────────────────────── */
  .emulation-banner {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px;
    padding: 10px 1rem !important;
  }

  /* ── Main content padding ───────────────────────────────────────────────── */
  .portal-main {
    padding: 1rem 0.75rem;
  }

  /* ── Lookup strip ───────────────────────────────────────────────────────── */
  .lookup-form {
    flex-wrap: wrap;
  }

  .lookup-prefix {
    display: none;
  }

  .lookup-input {
    min-width: 0;
  }

  /* ── Personnel dossier card ─────────────────────────────────────────────── */
  .dossier-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .dossier-stats {
    width: 100%;
    gap: 1rem;
    justify-content: flex-start;
  }

  .stat-item {
    text-align: left;
  }

  .stat-value {
    justify-content: flex-start;
  }

  /* ── Dept card grid ─────────────────────────────────────────────────────── */
  .dept-grid {
    grid-template-columns: 1fr;
  }

  /* ── Dept actions bar: stack vertically ────────────────────────────────── */
  .dept-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .dept-actions-status {
    margin-right: 0;
  }

  .dept-action-buttons {
    width: 100%;
    flex-wrap: wrap;
  }

  /* ── Registry sidebar (workstation layout already stacks at 980px) ──────── */

  /* ── Admin console tab bar: horizontal scroll ───────────────────────────── */
  .dept-card > div[style*="overflow-x: auto"] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  /* ── Admin tables: horizontal scroll wrapper ────────────────────────────── */
  .admin-table {
    min-width: 600px;
  }

  /* Wrap any container holding admin-table to allow scrolling */
  .dept-card .dept-body,
  .dept-card > div {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ── Active users grid: single column on mobile ─────────────────────────── */
  .active-users-grid {
    grid-template-columns: 1fr;
  }

  /* ── Modal: full-width on mobile ────────────────────────────────────────── */
  .modal-box {
    width: 96%;
    padding: 1rem;
  }

  /* ── Footer ─────────────────────────────────────────────────────────────── */
  .portal-footer {
    font-size: 10px;
    padding: 0.65rem 0.75rem;
    word-spacing: -1px;
  }
}

/* ── Very small screens (≤ 480px) ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .brand-badge {
    font-size: 9px;
    padding: 2px 5px;
  }

  /* Stack mode toggle group buttons vertically if needed */
  .mode-toggle-group {
    flex-wrap: wrap;
  }

  /* Dossier avatar: slightly smaller */
  .dossier-avatar {
    width: 36px;
    height: 36px;
  }

  /* Stat values smaller */
  .stat-value {
    font-size: 13px;
  }

  /* Make action buttons full-width */
  .dept-action-buttons .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  /* Lookup: stack submit button below input */
  .lookup-form {
    flex-direction: column;
    align-items: stretch;
  }

  .lookup-form .btn {
    width: 100%;
    justify-content: center;
  }
}
