/* Approved soft labels share their geometry and semantic palette. */
.portal-status {
  --status-tone: #5d6b7e;
  --status-fill: #f0f2f5;
  --status-edge: #d6dde6;
  --status-width: 242px;
}
.portal-status,
.case-list .case-status.portal-status {
  display: inline-grid;
  grid-template-columns: 15px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: var(--status-width);
  max-width: 100%;
  min-width: 0;
  min-height: 32px;
  box-sizing: border-box;
  padding: 5px 9px;
  border: 1px solid var(--status-edge);
  border-radius: 7px;
  background: var(--status-fill);
  color: var(--status-tone);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
  white-space: normal;
  vertical-align: middle;
  animation: ip-kan-status-glow 2600ms ease-in-out 1;
}
.portal-status[data-status-tone="red"] { --status-tone: #a4303b; --status-fill: #fff0f1; --status-edge: #edc6cb; }
.portal-status[data-status-tone="amber"] { --status-tone: #825609; --status-fill: #fff6e1; --status-edge: #e9d5a7; }
.portal-status[data-status-tone="green"] { --status-tone: #1c713f; --status-fill: #ebf7ef; --status-edge: #b9dfc7; }
.portal-status[data-status-tone="blue"] { --status-tone: #245ca8; --status-fill: #eaf2fd; --status-edge: #c8d9f0; }
.portal-status--staff { --status-width: 142px; }
.portal-status--verification { --status-width: 190px; }
.portal-status--passport { --status-width: 242px; }
.portal-status--account { --status-width: 260px; }
.portal-status--comparison { --status-width: 198px; }
.portal-status--job { --status-width: 260px; }
.portal-status .portal-status-icon { grid-column: 1; grid-row: 1; display: block; width: 15px; height: 15px; flex: none; }
.portal-status .portal-status-text { grid-column: 2; grid-row: 1; min-width: 0; text-align: center; overflow-wrap: anywhere; }
.portal-status[data-status-icon="loader"] .portal-status-icon { animation: ip-kan-status-spin 1500ms linear infinite; }
.portal-status:before { content: none; }
.verification-heading { flex-wrap: wrap; }
.case-status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.registry-page .registry-state { margin-top: 16px; }
.registry-page .registry-status.portal-status { font-size: 14px; font-weight: 500; line-height: 20px; color: var(--status-tone); }
.registry-page .registry-status.portal-status:before { content: none; }
.registry-page #registry-egrn-confirmed { min-width: 0; max-width: 100%; }
.upload-page .upload-document-state.portal-status { margin: 8px 0 0; font-size: 14px; line-height: 20px; color: var(--status-tone); }
.upload-page [data-document-state] { margin: 0; }
/* Administrative tables scroll within their frame instead of crushing labels. */
.staff-list-table { min-width: 1120px; }
.staff-list-table th:first-child, .staff-list-table td:first-child { min-width: 180px; }
.staff-list-table th:nth-child(2), .staff-list-table td:nth-child(2) { min-width: 90px; }
.staff-list-table th:nth-child(3), .staff-list-table td:nth-child(3) { min-width: 145px; }
.staff-list-table th:nth-child(4), .staff-list-table td:nth-child(4) { min-width: 272px; }
.staff-list-table th:nth-child(5), .staff-list-table td:nth-child(5) { min-width: 172px; }
.staff-list-table th:last-child, .staff-list-table td:last-child { min-width: 238px; }
.access-list-table { min-width: 1060px; }
.access-list-table th:first-child, .access-list-table td:first-child { min-width: 220px; overflow-wrap: anywhere; }
.access-list-table th:nth-child(2), .access-list-table td:nth-child(2) { min-width: 220px; }
.access-list-table th:nth-child(3), .access-list-table td:nth-child(3) { min-width: 290px; }
.access-list-table th:last-child, .access-list-table td:last-child { min-width: 330px; }
@keyframes ip-kan-status-glow {
  0%, 100% { border-color: var(--status-edge); box-shadow: 0 0 0 0 transparent; }
  38% { border-color: var(--status-tone); box-shadow: 0 0 0 3px color-mix(in srgb, var(--status-tone) 14%, transparent); }
  68% { border-color: var(--status-tone); }
}
@keyframes ip-kan-status-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .portal-status, .case-list .case-status.portal-status, .portal-status .portal-status-icon { animation: none !important; }
}
