.reports-unified-hub {
  gap: 14px;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.reports-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 0.78rem;
}

.reports-breadcrumb-link,
.reports-drawer-back {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.reports-catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) minmax(180px, 0.55fr) minmax(180px, 0.55fr);
  gap: 12px;
  align-items: end;
}

.reports-catalog-toolbar .field span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.reports-catalog-toolbar input,
.reports-catalog-toolbar select {
  min-height: 42px;
  border-color: rgba(148, 163, 184, 0.34);
  background: #fff;
}

.reports-hub-tabs {
  display: grid;
  gap: 18px;
  overflow: visible;
  padding: 0;
}

.reports-catalog-group {
  display: grid;
  gap: 10px;
}

.reports-catalog-group h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #0f172a;
  font-size: 0.9rem;
}

.reports-catalog-group h4 span {
  color: #2563eb;
  font-size: 1rem;
}

.reports-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.reports-catalog-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.reports-catalog-card:hover,
.reports-catalog-card:focus-visible {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.reports-catalog-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 1.3rem;
  font-weight: 900;
}

.reports-catalog-copy {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.reports-catalog-copy > span {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.reports-catalog-copy strong { font-size: 0.9rem; }
.reports-catalog-copy small { color: #64748b; line-height: 1.35; }
.reports-catalog-copy b { color: #2563eb; font-size: 0.76rem; }
.reports-catalog-copy em {
  padding: 3px 7px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 800;
}

.reports-catalog-empty,
.reports-inline-empty,
.reports-table-empty {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 130px;
  color: #64748b;
  text-align: center;
}

.reports-inline-empty { min-height: 110px; }
.reports-inline-empty strong,
.reports-table-empty strong,
.reports-catalog-empty strong { color: #0f172a; }
.reports-inline-empty > div { display: flex; gap: 8px; }

.reports-quote-engagement-filters {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  padding: 10px;
  border-color: rgba(148, 163, 184, 0.25);
  background: #f8fafc;
}

.reports-engagement-funnel article {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
}

.reports-engagement-funnel article i {
  grid-row: 1 / 4;
  color: #2563eb;
  font-size: 1.4rem;
  font-style: normal;
}

.reports-engagement-funnel article strong { grid-column: 2; }
.reports-engagement-funnel article small { grid-column: 2; }

.reports-agent-workload {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.reports-agent-workload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 0;
}

.reports-agent-workload-head h4 { margin: 3px 0 0; }
.reports-workload-table { min-width: 1320px; }
.reports-workload-table th,
.reports-workload-table td { padding: 9px 10px; }
.reports-workload-table td small { display: block; margin-top: 3px; color: #64748b; }
.reports-workload-table tfoot th { background: #eff6ff; color: #0f172a; }

.reports-workload-link,
.reports-table-entity {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.reports-table-entity strong,
.reports-table-entity small { display: block; }
.reports-table-entity strong { color: #0f172a; }
.reports-table-entity small { margin-top: 4px; color: #2563eb; }

.reports-capacity {
  display: grid;
  grid-template-columns: auto minmax(70px, 1fr);
  align-items: center;
  gap: 7px;
}

.reports-capacity > i {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.reports-capacity > i > em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #84cc16);
}

.reports-unified-table { min-width: 1500px; }
.reports-unified-table th,
.reports-unified-table td { padding: 10px; vertical-align: top; }
.reports-evidence-ok { color: #15803d; }
.reports-evidence-pending { color: #c2410c; }
.reports-recovery-action { min-width: 126px; }
.reports-recovery-action:disabled { opacity: 0.65; }

.reports-evidence-warning .ghost-button {
  border-color: rgba(245, 158, 11, 0.4);
  background: #fff;
  color: #92400e;
}

.reports-unified-state { min-height: 330px; }
.reports-state-panel {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 320px;
  padding: 28px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 16px;
  background: #f8fbff;
  color: #1e40af;
  text-align: center;
}

.reports-state-panel.is-error {
  border-color: rgba(239, 68, 68, 0.2);
  background: #fff8f8;
  color: #b91c1c;
}

.reports-state-panel h4,
.reports-state-panel p { margin: 0; }
.reports-state-panel p { max-width: 520px; color: #475569; }
.reports-state-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 3px solid currentColor;
  border-radius: 18px;
  font-size: 1.6rem;
  font-weight: 900;
}

.reports-unified-metric.is-loading span,
.reports-unified-metric.is-loading strong,
.reports-workload-skeleton span {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, #e2e8f0 20%, #f8fafc 50%, #e2e8f0 80%);
  background-size: 240% 100%;
  animation: reports-shimmer 1.4s linear infinite;
}

.reports-unified-metric.is-loading span { width: 60%; height: 9px; }
.reports-unified-metric.is-loading strong { width: 42%; height: 20px; }
.reports-workload-skeleton { display: grid; gap: 9px; padding: 0 14px; }
.reports-workload-skeleton span { height: 30px; }
.reports-state-progress { margin: 0 0 12px; color: #64748b; text-align: center; }
.reports-loading-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #bfdbfe;
  border-top-color: #2563eb;
  border-radius: 999px;
  animation: reports-spin 0.8s linear infinite;
}

@keyframes reports-shimmer { to { background-position: -240% 0; } }
@keyframes reports-spin { to { transform: rotate(360deg); } }

.reports-drawer-backdrop {
  position: fixed;
  z-index: 218;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(1.5px);
}

.reports-quote-detail-drawer {
  z-index: 220;
  top: 0;
  right: 0;
  width: min(580px, 100vw);
  max-height: 100vh;
  height: 100vh;
  padding: 18px;
  border: 0;
  border-left: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 0;
  box-shadow: -24px 0 72px rgba(15, 23, 42, 0.22);
}

.reports-quote-detail-drawer:has(.reports-workload-drilldown-table) { width: min(900px, 100vw); }
.reports-quote-detail-body { display: grid; grid-template-columns: 1fr; gap: 14px; }
.reports-drawer-section { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.reports-drawer-section h5,
.reports-drawer-section p { margin: 0; }
.reports-drawer-section > p { color: #64748b; font-size: 0.78rem; }
.reports-drawer-section-head { display: flex; justify-content: space-between; gap: 10px; }
.reports-drawer-facts,
.reports-drawer-two-column,
.reports-audit-grid,
.reports-workload-drawer-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.reports-audit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reports-audit-grid article strong { font-size: 0.72rem; overflow-wrap: anywhere; }

.reports-lifecycle {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.reports-lifecycle li { display: grid; place-items: center; gap: 5px; color: #94a3b8; text-align: center; }
.reports-lifecycle li i { display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid currentColor; border-radius: 999px; font-style: normal; }
.reports-lifecycle li.is-complete { color: #15803d; }
.reports-lifecycle time,
.reports-lifecycle span { color: #64748b; font-size: 0.68rem; }
.reports-evidence-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin: 0; padding: 0; color: #334155; font-size: 0.78rem; list-style: none; }
.reports-evidence-list li::first-letter { color: #16a34a; }

.reports-drawer-timeline { display: grid; }
.reports-drawer-timeline article { display: grid; grid-template-columns: 110px 120px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 0.74rem; }
.reports-drawer-timeline time,
.reports-drawer-timeline span { color: #64748b; }

.reports-drawer-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.reports-drawer-actions > :last-child:nth-child(3) { grid-column: 1 / -1; }
.reports-drawer-actions a,
.reports-drawer-actions button { justify-content: center; text-align: center; text-decoration: none; }
.reports-drawer-safety { margin: 0; padding: 10px; border: 1px solid #dbeafe; border-radius: 10px; background: #eff6ff; color: #1d4ed8; font-size: 0.75rem; }

.reports-workload-drawer-title { display: flex; align-items: center; gap: 8px; }
.reports-workload-drawer-title span { color: #64748b; }
.reports-workload-drawer-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reports-workload-drawer-metrics article { min-height: 80px; }
.reports-workload-drawer-metrics article.is-highlight { border-color: #2563eb; }
.reports-workload-drawer-metrics article.is-highlight strong { color: #2563eb; }
.reports-workload-drilldown-table { min-width: 820px; }
.reports-workload-drilldown-table td small { display: block; color: #64748b; }
.reports-workload-drawer-pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.reports-workload-drawer-pagination > div { display: flex; gap: 7px; }
.reports-drawer-loading { display: grid; place-items: center; gap: 10px; min-height: 260px; color: #475569; }
.reports-lead-portfolio { border: 1px solid #dbeafe; border-radius: 12px; padding: 12px; background: #f8fbff; }
.reports-lead-portfolio p { margin: 4px 0 0; color: #475569; }
.reports-drawer-warning { margin-top: 8px !important; padding: 8px 10px; border-radius: 8px; background: #fff7ed; color: #9a3412 !important; }
.reports-drawer-actions .is-danger { border-color: #fecaca; color: #b91c1c; }
.reports-action-toast { position: fixed; right: 22px; bottom: 22px; z-index: 3000; padding: 11px 14px; border-radius: 10px; background: #0f766e; color: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2); font-size: 0.82rem; }
.reports-action-toast.is-error { background: #b91c1c; }
.reports-cancel-quote-dialog { width: min(520px, calc(100vw - 32px)); border: 0; border-radius: 16px; padding: 0; box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28); }
.reports-cancel-quote-dialog::backdrop { background: rgba(15, 23, 42, 0.42); }
.reports-cancel-quote-form { display: grid; gap: 14px; padding: 22px; color: #0f172a; }
.reports-cancel-quote-form h3 { margin: 0; font-size: 1.15rem; }
.reports-cancel-quote-form p { margin: 0; color: #475569; line-height: 1.5; }
.reports-cancel-quote-form label { display: grid; gap: 6px; font-size: 0.8rem; font-weight: 700; }
.reports-cancel-quote-form select,
.reports-cancel-quote-form textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 9px; padding: 9px 10px; font: inherit; font-weight: 400; box-sizing: border-box; }

@media (max-width: 1200px) {
  .reports-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reports-quote-engagement-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .reports-catalog-toolbar,
  .reports-catalog-grid { grid-template-columns: 1fr; }
  .reports-quote-engagement-filters { grid-template-columns: 1fr; }
  .reports-drawer-facts,
  .reports-drawer-two-column,
  .reports-audit-grid,
  .reports-evidence-list { grid-template-columns: 1fr; }
  .reports-lifecycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reports-drawer-timeline article { grid-template-columns: 1fr; }
}
