/* ── Base ── */
body {
  margin: 0;
  background: #020617;
  color: #f1f5f9;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.bg-slate-950 { background: #020617; }
.text-slate-100 { color: #f1f5f9; }
.min-h-screen { min-height: 100vh; }

.text-right { text-align: right; }
.inline { display: inline; }
.font-medium { font-weight: 600; }
.text-white { color: #fff; }

/* ── Layout shell ── */
.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.main-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.content-area {
  flex: 1;
  width: 100%;
  max-width: 72rem;
  padding: 1rem;
}

@media (min-width: 640px) {
  .content-area { padding: 1.5rem; }
}

@media (min-width: 1024px) {
  .content-area { padding: 2rem; }
}

/* ── Sidebar ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 40;
  backdrop-filter: blur(2px);
}

.sidebar-overlay.visible {
  display: block;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  height: 100vh;
  width: 16rem;
  background: #0f172a;
  border-right: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.25s ease, width 0.25s ease;
  overflow: hidden;
}

.sidebar.mobile-open {
  transform: translateX(0);
}

.sidebar-header {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  border-bottom: 1px solid #1e293b;
  flex-shrink: 0;
}

.sidebar-brand {
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-brand-accent { color: #60a5fa; }

.sidebar-close-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid #1e293b;
  flex-shrink: 0;
}

.sidebar-user {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Desktop: sidebar always visible */
@media (min-width: 1024px) {
  .sidebar {
    position: sticky;
    transform: translateX(0);
    flex-shrink: 0;
  }

  .sidebar-close-mobile { display: none; }

  .sidebar.collapsed {
    width: 5rem;
  }

  .sidebar.collapsed .sidebar-brand,
  .sidebar.collapsed .sidebar-text,
  .sidebar.collapsed .sidebar-user {
    opacity: 0;
    width: 0;
    overflow: hidden;
  }

  .sidebar.collapsed .nav-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  .sidebar.collapsed .sidebar-footer form {
    display: flex;
    justify-content: center;
  }
}

/* ── Top bar ── */
.topbar {
  height: 4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  border-bottom: 1px solid #1e293b;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 30;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .topbar { padding: 0 1.5rem; }
}

.topbar-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  background: #1e293b;
  color: #e2e8f0;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}

.sidebar-toggle:hover { background: #334155; }

.sidebar-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ── Navigation ── */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  color: #94a3b8;
  font-size: 0.875rem;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  margin-bottom: 0.25rem;
  white-space: nowrap;
}

.nav-link:hover { background: #1e293b; color: #f1f5f9; }

.nav-link.active {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  font-weight: 600;
}

.nav-icon {
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* ── Page toolbar ── */
.page-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .page-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.page-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Responsive grids ── */
.grid-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-stats { grid-template-columns: repeat(3, 1fr); }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
}

.form-grid-full {
  grid-column: 1 / -1;
}

.company-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  max-height: 16rem;
  overflow-y: auto;
}

@media (min-width: 640px) {
  .company-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tables ── */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 1rem;
  overflow: hidden;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead { background: #1e293b; }

th {
  text-align: left;
  padding: 0.875rem 1rem;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

td {
  padding: 0.875rem 1rem;
  border-top: 1px solid #1e293b;
  color: #cbd5e1;
  vertical-align: middle;
}

.td-actions {
  white-space: nowrap;
  text-align: right;
}

.td-actions .btn-sm { margin-left: 0.25rem; }

/* Mobile card fallback for very small screens - optional stacked cells */
@media (max-width: 639px) {
  .table-wrap.mobile-cards table,
  .table-wrap.mobile-cards thead {
    display: none;
  }

  .table-wrap.mobile-cards tbody,
  .table-wrap.mobile-cards tr,
  .table-wrap.mobile-cards td {
    display: block;
    width: 100%;
  }

  .table-wrap.mobile-cards tr {
    padding: 1rem;
    border-top: 1px solid #1e293b;
  }

  .table-wrap.mobile-cards td {
    padding: 0.25rem 0;
    border: none;
    text-align: left !important;
  }

  .table-wrap.mobile-cards td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.125rem;
  }

  .table-wrap.mobile-cards .td-actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #1e293b;
  }
}

/* ── Form elements ── */
.label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 0.375rem;
}

.input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid #334155;
  background: #0f172a;
  color: #f1f5f9;
  font-size: 0.875rem;
  box-sizing: border-box;
}

.input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.checkbox {
  width: 1rem;
  height: 1rem;
  accent-color: #3b82f6;
  flex-shrink: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover { opacity: 0.92; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 0.875rem;
  border: 1px solid #334155;
  text-decoration: none;
}

.btn-secondary:hover { background: #334155; }

.btn-sm {
  display: inline-flex;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 0.75rem;
  border: 1px solid #334155;
  cursor: pointer;
  text-decoration: none;
}

.btn-sm:hover { background: #334155; }

.btn-danger { color: #fca5a5; border-color: rgba(239, 68, 68, 0.3); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.1); }

.stat-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 1rem;
  padding: 1.25rem;
}

@media (min-width: 640px) {
  .stat-card { padding: 1.5rem; }
}

.stat-label {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: white;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-green { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.badge-blue { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
.badge-gray { background: rgba(100, 116, 139, 0.15); color: #94a3b8; }

.form-section {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 1rem;
  padding: 1rem;
}

@media (min-width: 640px) {
  .form-section { padding: 1.5rem; }
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #475569; border-radius: 999px; }

.text-emerald-400 { color: #34d399; }

.company-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #cbd5e1;
  padding: 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
}

.company-option:hover { background: rgba(30, 41, 59, 0.5); }

.opacity-50 { opacity: 0.5; }

.content-area-wide {
  max-width: 88rem;
}

.dashboard-search-wrap {
  margin-bottom: 1.5rem;
}

.dashboard-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
}

.dashboard-search-field {
  flex: 1;
  min-width: 14rem;
  max-width: 32rem;
}

.dashboard-refresh-form {
  margin: 0;
}

.dashboard-search {
  width: 100%;
}

.search-hint {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0.5rem 0 0;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
}

.language-switcher-btn {
  appearance: none;
  border: 1px solid #334155;
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.35rem 0.55rem;
  border-radius: 0.375rem;
  cursor: pointer;
}

.language-switcher-btn:hover {
  color: #e2e8f0;
  border-color: #475569;
}

.language-switcher-btn.is-active {
  background: #1d4ed8;
  border-color: #2563eb;
  color: #fff;
}

.sidebar-lang {
  margin-bottom: 0.75rem;
}

.dashboard-quick-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.875rem;
}

.dashboard-quick-filters-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.25rem;
}

.filter-chip {
  appearance: none;
  border: 1px solid #334155;
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.filter-chip:hover {
  border-color: #475569;
  color: #f8fafc;
}

.filter-chip-active {
  background: #1d4ed8;
  border-color: #2563eb;
  color: #fff;
}

.company-section {
  margin-bottom: 2.5rem;
}

.company-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #1e293b;
}

.company-section-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.company-section-toggle:hover .company-section-title {
  color: #93c5fd;
}

.company-chevron {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.45rem;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.company-section-collapsed .company-chevron {
  transform: rotate(-45deg);
  margin-top: 0.55rem;
}

.company-section-collapsed .company-body {
  display: none;
}

.company-section-heading {
  flex: 1;
  min-width: 0;
}

.company-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.25rem;
  transition: color 0.15s ease;
}

.company-section-meta {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
}

.company-summary-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0.625rem 0 0;
  padding: 0;
}

.company-summary-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0;
}

.company-summary-item dt {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin: 0;
}

.company-summary-item dd {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0;
}

.company-summary-item-total dd {
  color: #93c5fd;
}

.company-empty {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0;
}

.euf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .euf-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .euf-grid { grid-template-columns: repeat(3, 1fr); }
}

.euf-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 1rem;
  padding: 1.25rem;
  transition: border-color 0.15s ease;
}

.euf-card:hover {
  border-color: #334155;
}

.euf-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.euf-nid {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #93c5fd;
}

.euf-name {
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0;
  line-height: 1.4;
}

.euf-amounts {
  margin: 0.75rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.euf-amount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  font-size: 0.8125rem;
}

.euf-amount-row dt {
  margin: 0;
  color: #64748b;
  font-weight: 500;
}

.euf-amount-row dd {
  margin: 0;
  color: #e2e8f0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.euf-amount-row-total {
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #334155;
}

.euf-amount-row-total dt,
.euf-amount-row-total dd {
  color: #fbbf24;
  font-weight: 700;
}

.euf-invoices {
  font-size: 1.125rem;
  font-weight: 700;
  color: #34d399;
  white-space: nowrap;
}

.euf-invoices-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
}

.euf-invoices-dual {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.euf-invoices-manage {
  color: #34d399;
}

.euf-invoices-local {
  color: #fbbf24;
  font-size: 0.9375rem;
}

.euf-manage-sync-note {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #94a3b8;
}

.euf-card-actions {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #1e293b;
}

.euf-card-actions .btn-resync-history {
  width: 100%;
  justify-content: center;
}

.euf-history-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: #93c5fd;
}

.euf-mismatch {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #1e293b;
}

.euf-mismatch-text {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: #fbbf24;
  line-height: 1.4;
}

.btn-resync-history {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-resync-history:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(59, 130, 246, 0.55);
}

.btn-resync-history:disabled {
  opacity: 0.6;
  cursor: wait;
}

.euf-nid-link {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: #93c5fd;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.euf-nid-link:hover {
  color: #bfdbfe;
}

.euf-sync-warning-text {
  color: #f87171;
}

.euf-mismatch-auto .euf-mismatch-text {
  color: #93c5fd;
}

body.modal-open {
  overflow: hidden;
}

.invoice-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.invoice-modal[hidden] {
  display: none !important;
}

.invoice-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(2px);
}

.invoice-modal-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(85vh, 900px);
  display: flex;
  flex-direction: column;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

.invoice-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #1e293b;
}

.invoice-modal-title {
  margin: 0;
  font-size: 1.125rem;
  color: #f8fafc;
}

.invoice-modal-meta {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.invoice-modal-close {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.125rem 0.375rem;
}

.invoice-modal-close:hover {
  color: #f8fafc;
}

.invoice-modal-body {
  flex: 1;
  overflow: auto;
  padding: 0.75rem 1.25rem;
}

.invoice-modal-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid #1e293b;
}

.invoice-pager-info {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.invoice-modal-loading,
.invoice-modal-empty,
.invoice-modal-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 0;
}

.invoice-modal-error {
  color: #f87171;
}

.invoice-table-wrap {
  overflow-x: auto;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.invoice-table th,
.invoice-table td {
  padding: 0.5rem 0.625rem;
  border-bottom: 1px solid #1e293b;
  text-align: left;
  vertical-align: top;
}

.invoice-table th {
  color: #94a3b8;
  font-weight: 600;
  white-space: nowrap;
}

.invoice-table code {
  font-size: 0.75rem;
  color: #e2e8f0;
}

.btn-sm {
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
}

.euf-details {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.euf-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
}

.euf-detail-row dt {
  color: #64748b;
  margin: 0;
}

.euf-detail-row dd {
  color: #cbd5e1;
  margin: 0;
  text-align: right;
}

/* Dashboard async loading */
.fetch-banner {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.35), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  animation: fetch-banner-pulse 2s ease-in-out infinite;
}

.fetch-banner-done {
  animation: none;
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.35), rgba(15, 23, 42, 0.95));
}

.fetch-banner-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.fetch-banner-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
}

.fetch-banner-desc {
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.fetch-banner-desc a {
  color: #93c5fd;
}

.fetch-progress {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.fetch-spinner {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border: 3px solid rgba(148, 163, 184, 0.25);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: fetch-spin 0.8s linear infinite;
}

.fetch-spinner-sm {
  width: 1.25rem;
  height: 1.25rem;
  border-width: 2px;
}

.company-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #64748b;
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

@keyframes fetch-spin {
  to { transform: rotate(360deg); }
}

@keyframes fetch-banner-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
  50% { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12); }
}

[hidden] {
  display: none !important;
}

