@import url('doc-shared.css');

.dashboard-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.dashboard-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-navy);
  margin: 0 0 4px;
}

.dashboard-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.dashboard-meta {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

.dashboard-meta strong { color: var(--text-secondary); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
}

.status-pill.live { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.status-pill.mock { background: var(--brand-orange-light); color: #9A3412; border: 1px solid #FFD4C2; }
.status-pill.offline { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.kpi-card {
  background: white;
  border: 1px solid var(--border-brand);
  border-radius: 10px;
  padding: 1rem;
}

.kpi-card.alert { border-color: #FECACA; background: #FFFBFB; }

.kpi-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1;
}

.kpi-card.alert .kpi-value { color: #DC2626; }

.kpi-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel {
  background: white;
  border: 1px solid var(--border-brand);
  border-radius: 12px;
  overflow: hidden;
}

.panel-head {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-brand);
  background: var(--brand-wash);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.panel-head h2 {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-navy);
  margin: 0;
  border: none;
  padding: 0;
}

.panel-head .count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.panel-body { padding: 0; }

.queue-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.queue-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  background: #FAFAFA;
  border-bottom: 1px solid var(--border-brand);
}

.queue-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #F3F4F6;
  color: var(--text-secondary);
  vertical-align: middle;
}

.queue-table tr:last-child td { border-bottom: none; }

.queue-table tr:hover td { background: var(--brand-wash); }

.customer-link {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: none;
}

.customer-link:hover { text-decoration: underline; }

.risk-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.risk-chip.high { background: #FEE2E2; color: #991B1B; }
.risk-chip.medium { background: #FFF4EF; color: #C2410C; }
.risk-chip.low { background: #DCFCE7; color: #166534; }

.action-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  background: var(--brand-wash);
  color: var(--brand-navy);
}

.str-preview {
  padding: 1rem;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.str-preview .str-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand-navy);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-brand);
}

.str-field {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  margin-bottom: 6px;
}

.str-field label {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 11px;
}

.str-actions {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-brand);
}

.btn-sm {
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-sm.primary { background: var(--brand-blue); color: white; }
.btn-sm.secondary { background: white; color: var(--brand-navy); border: 1px solid var(--border-brand); }
.btn-sm.muted { background: #F3F4F6; color: var(--text-muted); cursor: default; }

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.activity-list li {
  padding: 10px 12px;
  border-bottom: 1px solid #F3F4F6;
  font-size: 12.5px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.activity-list li:last-child { border-bottom: none; }

.activity-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.activity-icon.kyc { background: #E8F4FD; }
.activity-icon.sanctions { background: #F5F3FF; }
.activity-icon.aml { background: #FFF4EF; }

.activity-body { flex: 1; min-width: 0; }

.activity-body strong { color: var(--text-primary); font-size: 12px; }

.activity-body span { display: block; color: var(--text-muted); font-size: 11px; margin-top: 2px; }

.empty-state {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.demo-banner {
  background: var(--brand-wash);
  border: 1px solid var(--border-brand);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.demo-banner a { color: var(--brand-blue); font-weight: 600; }

@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
}
