﻿.risk-wrap {
  padding: 18px;
}

.risk-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.risk-head h2 {
  margin: 0;
  font-size: 28px;
}

.risk-head p {
  margin: 4px 0 0;
  color: #64748b;
}

.risk-summary-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(110px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.risk-card {
  border-radius: 14px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.risk-card div {
  font-size: 12px;
  color: #64748b;
}

.risk-card strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.risk-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.risk-toolbar button,
.risk-toolbar input,
.risk-toolbar select {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 9px 11px;
  background: #ffffff;
}

.risk-toolbar input {
  min-width: 320px;
}

.risk-table-wrap {
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
}

.risk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.risk-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.risk-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: top;
  white-space: nowrap;
}

.risk-table td small {
  display: block;
  color: #64748b;
  font-size: 11px;
  margin-top: 2px;
}

.risk-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-weight: 800;
  font-size: 11px;
}

.risk-superadmin {
  background: #ede9fe !important;
  color: #4c1d95;
}

.risk-high {
  background: #fee2e2 !important;
  color: #991b1b;
}

.risk-medium {
  background: #fef3c7 !important;
  color: #92400e;
}

.risk-low {
  background: #dcfce7 !important;
  color: #166534;
}

.risk-reasons {
  white-space: normal !important;
  min-width: 220px;
}

.risk-reasons span {
  display: inline-flex;
  margin: 2px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
}

.risk-empty {
  padding: 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.risk-error {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 1300px) {
  .risk-summary-grid {
    grid-template-columns: repeat(4, minmax(110px, 1fr));
  }
}

@media (max-width: 800px) {
  .risk-summary-grid {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
  }

  .risk-toolbar input {
    min-width: 100%;
  }
}
