:root {
  --app-bg: #eef1f4;
  --app-border: #dee2e6;
  --app-text: #212529;
}

html,
body {
  background: var(--app-bg);
}

.navbar {
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.card,
.rounded {
  border-color: var(--app-border);
  border-radius: 8px !important;
}

.table {
  background: #fff;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  display: grid;
  gap: 0.35rem;
  min-height: 128px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.accent-ticket::before {
  background: #0d6efd;
}

.accent-success::before {
  background: #198754;
}

.accent-quote::before {
  background: #6f42c1;
}

.accent-branches::before {
  background: #0dcaf0;
}

.stat-card span,
.stat-card small {
  color: #6c757d;
}

.stat-card strong {
  color: #212529;
  font-size: 1.7rem;
  line-height: 1.1;
}

.summary-list {
  display: grid;
  gap: 0.75rem;
}

.summary-list div {
  align-items: center;
  border-bottom: 1px solid var(--app-border);
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.75rem;
}

.summary-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.portal-hero {
  align-items: center;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  min-height: 132px;
  padding: 1.5rem;
}

.portal-kicker {
  color: #6c757d;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.action-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  color: var(--app-text);
  display: grid;
  gap: 1rem;
  grid-template-columns: 56px 1fr auto;
  min-height: 112px;
  padding: 1.25rem;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.action-card:hover {
  border-color: #9ec5fe;
  box-shadow: 0 12px 28px rgba(13, 110, 253, 0.12);
  color: var(--app-text);
  transform: translateY(-2px);
}

.action-card strong,
.action-card small {
  display: block;
}

.action-card strong {
  font-size: 1rem;
}

.action-card small {
  color: #6c757d;
  margin-top: 0.25rem;
}

.action-icon {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 1.45rem;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.action-arrow {
  color: #6c757d;
  font-size: 1.8rem;
}

.chart-box {
  height: 260px;
  position: relative;
}

.chart-box-wide {
  height: 320px;
}

.metric-strip {
  align-items: center;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 1rem;
}

.metric-strip span {
  color: #6c757d;
}

.metric-strip strong {
  color: var(--app-text);
  font-size: 1.35rem;
}

.upload-progress-indeterminate {
  min-width: 100%;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  border-left: 3px solid #0d6efd;
  padding-left: 1rem;
}

.audit-user-agent {
  max-width: 280px;
  overflow-wrap: anywhere;
}

.audit-metadata {
  background: #f8f9fa;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  color: #495057;
  font-size: 0.78rem;
  margin-top: 0.35rem;
  max-width: 360px;
  overflow: auto;
  padding: 0.5rem;
  white-space: pre-wrap;
}

.evidence-file-info {
  flex: 1 1 240px;
  min-width: 0;
}

@media (max-width: 575.98px) {
  .action-card {
    grid-template-columns: 48px 1fr;
  }

  .action-arrow {
    display: none;
  }

  .action-icon {
    height: 48px;
    width: 48px;
  }
}
