:root {
  --iv-bg: #f3f7fb;
  --iv-panel: #ffffff;
  --iv-ink: #0d3347;
  --iv-muted: #6f8195;
  --iv-line: #dbe5ef;
  --iv-soft-line: #edf2f7;
  --iv-blue: #3975ff;
  --iv-orange: #ff7b2c;
  --iv-red: #f0444a;
  --iv-green: #27b45d;
  --iv-shadow: 0 10px 25px rgba(25, 54, 82, 0.06);
}

#imageValidationRoot {
  transition: margin-left 120ms ease, width 120ms ease;
}

body.iv-image-validation-route .sidebarLayoutContainer .ant-menu-item,
body.iv-image-validation-route .sidebarLayoutContainer .ant-menu-item:hover,
body.iv-image-validation-route .sidebarLayoutContainer .ant-menu-item-active,
body.iv-image-validation-route .sidebarLayoutContainer .ant-menu-item-selected,
body.iv-image-validation-route .sidebarLayoutContainer .menuItemSelected {
  color: #0d3347 !important;
  background: #ffffff !important;
  border-right: 0 !important;
}

body.iv-image-validation-route .sidebarLayoutContainer .iv-sidebar-selected,
body.iv-image-validation-route .sidebarLayoutContainer .iv-sidebar-selected:hover,
body.iv-image-validation-route .sidebarLayoutContainer .ant-menu-item.iv-sidebar-selected,
body.iv-image-validation-route .sidebarLayoutContainer .ant-menu-item.iv-sidebar-selected.ant-menu-item-active,
body.iv-image-validation-route .sidebarLayoutContainer .ant-menu-item.iv-sidebar-selected.ant-menu-item-selected,
body.iv-image-validation-route .sidebarLayoutContainer .ant-menu-item.iv-sidebar-selected.menuItemSelected {
  color: #00747c !important;
  background: linear-gradient(90deg, #d5f6f8 0%, #f5fdfd 100%) !important;
  border-right: 2px solid #00747c !important;
}

body.iv-image-validation-route .sidebarLayoutContainer .iv-sidebar-selected a,
body.iv-image-validation-route .sidebarLayoutContainer .iv-sidebar-selected .anticon {
  color: #00747c !important;
}

.iv-page {
  min-height: calc(100vh - 5rem);
  padding: 24px 22px;
  color: #17233c;
  background: var(--iv-bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.iv-page * {
  box-sizing: border-box;
}

.iv-title-row {
  min-height: 42px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.iv-title-row h1 {
  margin: 0;
  color: var(--iv-ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

.iv-filters {
  display: grid;
  grid-template-columns: 166px 166px 1fr 74px;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.iv-page label {
  display: block;
  margin-bottom: 6px;
  color: var(--iv-muted);
  font-size: 12px;
  font-weight: 700;
}

.iv-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.iv-page select,
.iv-page input {
  width: 100%;
  height: 36px;
  color: #1d2a3d;
  background: white;
  border: 1px solid #cad8e7;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
}

.iv-page select {
  padding: 0 34px 0 12px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #8aa0b7 50%),
    linear-gradient(135deg, #8aa0b7 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 15px,
    calc(100% - 12px) 15px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.iv-page input {
  padding: 0 14px;
}

.iv-total {
  width: 74px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b1730;
  background: #f8fbff;
  border: 1px solid var(--iv-line);
  border-radius: 9px;
  font-size: 20px;
  font-weight: 800;
  box-shadow: var(--iv-shadow);
}

.iv-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.iv-kpi {
  min-height: 96px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  background: white;
  border: 2px solid currentColor;
  border-radius: 14px;
  box-shadow: var(--iv-shadow);
}

.iv-kpi.blue { color: var(--iv-blue); }
.iv-kpi.orange { color: var(--iv-orange); }
.iv-kpi.red { color: var(--iv-red); }
.iv-kpi.green { color: var(--iv-green); }

.iv-kpi-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
}

.iv-kpi.blue .iv-kpi-icon { background: #eff6ff; }
.iv-kpi.orange .iv-kpi-icon { background: #fff7ed; }
.iv-kpi.red .iv-kpi-icon { background: #fef2f2; }
.iv-kpi.green .iv-kpi-icon { background: #f0fdf4; }

.iv-kpi-svg {
  width: 20px;
  height: 20px;
  display: block;
}

.iv-kpi-count {
  color: #0b1730;
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
}

.iv-kpi-label {
  grid-column: 1 / -1;
  align-self: end;
  color: #64758a;
  font-size: 13px;
  font-weight: 800;
}

.iv-table-card {
  overflow: hidden;
  min-height: 515px;
  background: white;
  border: 1px solid var(--iv-line);
  border-radius: 12px;
  box-shadow: var(--iv-shadow);
}

.iv-api-note {
  margin: 14px 14px 0;
  padding: 10px 12px;
  color: #8a4b00;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.iv-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--iv-line);
}

.iv-search-wrap {
  max-width: 295px;
  flex: 0 1 295px;
}

.iv-results-count {
  color: #71839a;
  font-size: 13px;
  font-weight: 800;
}

.iv-refresh-button {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 0 14px;
  color: #526274;
  background: white;
  border: 1px solid var(--iv-line);
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.iv-refresh-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.iv-refresh-icon {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.iv-refresh-button.loading .iv-refresh-icon {
  animation: iv-spin 800ms linear infinite;
}

@keyframes iv-spin {
  to {
    transform: rotate(360deg);
  }
}

.iv-page table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.iv-page th,
.iv-page td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--iv-soft-line);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

.iv-page th {
  color: var(--iv-ink);
  background: #f7fafd;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.iv-page th button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.iv-sort {
  color: #9aabba;
  font-size: 13px;
}

.iv-page td {
  color: #1f293b;
  font-weight: 650;
}

.iv-pcn {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0;
}

.iv-pcn-link {
  color: #0d5ecf;
  text-decoration: underline;
  text-underline-offset: 3px;
  font: inherit;
  font-weight: 800;
}

.iv-pcn-link:hover,
.iv-pcn-link:focus {
  color: #2bd4dc;
}

.iv-empty {
  padding: 34px 16px;
  color: var(--iv-muted);
  text-align: center;
  font-weight: 700;
}

.iv-dash {
  color: #c5d0dc;
  font-weight: 800;
}

.iv-detail-layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: start;
}

.iv-subnav {
  padding: 12px 8px;
  background: white;
  border-right: 1px solid var(--iv-line);
  min-height: calc(100vh - 130px);
}

.iv-subnav a {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: var(--iv-ink);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.iv-subnav-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #6f8195;
  position: relative;
}

.iv-subnav-icon.pcn {
  display: grid;
  grid-template-columns: repeat(2, 5px);
  grid-template-rows: repeat(2, 5px);
  gap: 3px;
}

.iv-subnav-icon.pcn::before,
.iv-subnav-icon.pcn::after {
  content: "";
  border: 2px solid currentColor;
  border-radius: 2px;
}

.iv-subnav-icon.pcn::before {
  grid-column: 1;
  grid-row: 1;
  box-shadow: 8px 0 0 -2px white, 8px 0 0 0 currentColor, 0 8px 0 -2px white, 0 8px 0 0 currentColor;
}

.iv-subnav-icon.pcn::after {
  display: none;
}

.iv-subnav-icon.detail::before {
  width: 12px;
  height: 14px;
  position: absolute;
  inset: 1px 2px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 2px;
}

.iv-subnav-icon.detail::after {
  width: 6px;
  height: 2px;
  position: absolute;
  left: 5px;
  top: 5px;
  content: "";
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

.iv-subnav a.active {
  color: #0d3347;
  background: #edf6ff;
}

.iv-subnav a.active .iv-subnav-icon {
  color: #2bd4dc;
}

.iv-detail-main {
  display: grid;
  gap: 16px;
}

.iv-detail-card {
  padding: 18px;
  background: white;
  border: 1px solid #f2b6c0;
  border-radius: 12px;
  box-shadow: var(--iv-shadow);
}

.iv-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.iv-detail-card h2 {
  margin: 0 0 14px;
  color: var(--iv-ink);
  font-size: 15px;
  font-weight: 800;
}

.iv-detail-header h2 {
  margin: 0;
}

.iv-mode-badge {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.iv-mode-badge.edit {
  color: #8a4b00;
  background: #fff3df;
}

.iv-mode-badge.read {
  color: #33613f;
  background: #e8f7ec;
}

.iv-detail-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.iv-detail-fields label span {
  display: block;
  margin-bottom: 6px;
  color: var(--iv-muted);
  font-size: 12px;
  font-weight: 800;
}

.iv-detail-fields input[readonly] {
  color: #526274;
  background: #f7fafd;
}

.iv-evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 18px 16px;
}

.iv-evidence-tile {
  min-width: 0;
  color: #64758a;
  background: transparent;
  font: inherit;
}

.iv-evidence-open {
  width: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.iv-evidence-icon {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.72), rgba(255,255,255,0.14)),
    linear-gradient(135deg, #e8f7f8 0%, #f5f7ff 48%, #eef4fa 100%);
  border: 1px solid var(--iv-soft-line);
  border-radius: 8px;
}

.iv-evidence-icon::before,
.iv-evidence-icon::after {
  position: absolute;
  content: "";
}

.iv-evidence-icon::before {
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(43, 212, 220, 0.42) 0 10%, transparent 11%),
    linear-gradient(135deg, transparent 0 56%, rgba(39, 180, 93, 0.25) 57% 66%, transparent 67%),
    linear-gradient(25deg, transparent 0 49%, rgba(57, 117, 255, 0.18) 50% 58%, transparent 59%);
}

.iv-evidence-icon::after {
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  color: #0d3347;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(13, 51, 71, 0.08);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  content: attr(data-format);
}

.iv-evidence-picture-icon {
  width: 44px;
  height: 38px;
  position: relative;
  z-index: 1;
  display: block;
  background: white;
  border: 3px solid #111827;
  border-radius: 5px;
  box-shadow: 0 8px 18px rgba(13, 51, 71, 0.12);
}

.iv-evidence-picture-icon::before {
  width: 8px;
  height: 8px;
  position: absolute;
  top: 7px;
  right: 7px;
  content: "";
  border: 3px solid #111827;
  border-radius: 50%;
}

.iv-evidence-picture-icon::after {
  width: 26px;
  height: 18px;
  position: absolute;
  left: 6px;
  bottom: 5px;
  content: "";
  background:
    linear-gradient(135deg, transparent 0 44%, #111827 45% 54%, transparent 55%),
    linear-gradient(45deg, transparent 0 48%, #111827 49% 58%, transparent 59%);
}

.iv-evidence-name {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  color: #71839a;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iv-decision-mark {
  width: 24px;
  height: 24px;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(13, 51, 71, 0.18);
}

.iv-decision-mark.accepted {
  background: #16a34a;
}

.iv-decision-mark.rejected {
  background: #dc2626;
}

.iv-letter-tag {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #0d3347;
  font-size: 12px;
  font-weight: 800;
}

.iv-letter-tag input {
  width: 14px;
  height: 14px;
}

.iv-letter-tag.disabled {
  color: #a4b3c3;
}

.iv-letter-rule,
.iv-letter-selection-count,
.iv-review-warning {
  margin: -4px 0 14px;
  color: var(--iv-muted);
  font-size: 12px;
  font-weight: 800;
}

.iv-letter-selection-count {
  margin: 16px 0 0;
  color: #0d3347;
}

.iv-review-warning {
  margin: 10px 0 0;
  color: #8a4b00;
}

.iv-evidence-error {
  padding: 20px;
  color: #8a4b00;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
}

.iv-evidence-error p {
  margin: 0 0 12px;
}

.iv-evidence-retry {
  height: 34px;
  padding: 0 16px;
  color: #0d3347;
  background: #fff;
  border: 1px solid var(--iv-border);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.iv-no-evidence {
  padding: 26px 12px;
  color: var(--iv-muted);
  background: #f7fafd;
  border: 1px dashed var(--iv-line);
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
}

.iv-back-link {
  display: inline-flex;
  margin-bottom: 14px;
  color: #0d5ecf;
  font-weight: 800;
}

.iv-image-count,
.iv-case-action-message {
  color: var(--iv-muted);
  font-size: 12px;
  font-weight: 800;
}

.iv-case-message {
  padding: 12px 14px;
  color: #166534;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-weight: 800;
}

.iv-case-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.iv-case-accept,
.iv-case-reject {
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.iv-case-accept:disabled,
.iv-case-reject:disabled,
.iv-case-reject-group select:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.iv-case-accept {
  color: white;
  background: #c8102e;
}

.iv-case-reject {
  color: #c8102e;
  background: white;
  border: 1px solid var(--iv-line);
}

.iv-case-reject-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.iv-case-reject-group select {
  height: 38px;
  min-width: 210px;
  padding: 0 34px 0 12px;
  color: #526274;
  background: white;
  border: 1px solid var(--iv-line);
  border-radius: 8px;
  font-weight: 800;
}

.iv-case-action-message.error {
  color: #b42318;
}

.iv-case-result-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 23, 48, 0.44);
}

.iv-case-result-modal {
  width: min(360px, 92vw);
  padding: 24px;
  background: white;
  border: 1px solid var(--iv-line);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(11, 23, 48, 0.28);
  text-align: center;
}

.iv-case-result-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  color: white;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 900;
}

.iv-case-result-icon.approved {
  background: #16a34a;
}

.iv-case-result-icon.rejected {
  background: #dc2626;
}

.iv-case-result-modal h2 {
  margin: 0;
  color: var(--iv-ink);
  font-size: 18px;
  font-weight: 900;
}

.iv-case-result-modal p {
  margin: 10px 0 18px;
  color: var(--iv-muted);
  font-size: 13px;
  font-weight: 800;
}

.iv-case-result-modal button {
  height: 38px;
  padding: 0 22px;
  color: white;
  background: #c8102e;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.iv-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(430px, 43vh, 520px) 24px 24px;
  background: rgba(11, 23, 48, 0.58);
}

.iv-modal {
  width: min(680px, 94vw);
  max-height: 92vh;
  overflow: auto;
  padding: 0;
  position: relative;
  background: white;
  border: 2px solid #3b82f6;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(11, 23, 48, 0.28);
}

.iv-modal-header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--iv-soft-line);
}

.iv-modal-header h2 {
  margin: 0;
  color: #17233c;
  font-size: 16px;
  font-weight: 900;
}

.iv-modal-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #8aa0b7;
  font-size: 14px;
  font-weight: 800;
}

.iv-modal-close {
  width: 28px;
  height: 28px;
  color: #8aa0b7;
  background: transparent;
  border: 0;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.iv-modal-stage-row {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 12px;
  align-items: center;
  padding: 18px 18px 0;
}

.iv-modal-stage {
  position: relative;
}

.iv-modal-arrow {
  width: 34px;
  height: 34px;
  justify-self: center;
  color: #526274;
  background: white;
  border: 1px solid var(--iv-line);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.iv-modal-toolbar {
  height: 36px;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 9px;
  color: #526274;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--iv-line);
  border-radius: 999px;
  box-shadow: var(--iv-shadow);
  font-size: 12px;
  font-weight: 800;
}

.iv-modal-toolbar button {
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  color: #526274;
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.iv-zoom-out-icon,
.iv-zoom-in-icon {
  position: relative;
  width: 24px;
}

.iv-zoom-out-icon::before,
.iv-zoom-out-icon::after,
.iv-zoom-in-icon::before,
.iv-zoom-in-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.iv-zoom-out-icon::before,
.iv-zoom-in-icon::before {
  width: 10px;
  height: 10px;
  top: 4px;
  left: 4px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.iv-zoom-out-icon::after,
.iv-zoom-in-icon::after {
  width: 7px;
  height: 2px;
  top: 15px;
  left: 15px;
  background: currentColor;
  transform: rotate(45deg);
}

.iv-zoom-out-icon span,
.iv-zoom-in-icon span {
  display: none;
}

.iv-zoom-out-icon {
  background:
    linear-gradient(currentColor, currentColor) 8px 10px / 6px 2px no-repeat;
}

.iv-zoom-in-icon {
  background:
    linear-gradient(currentColor, currentColor) 8px 10px / 6px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 10px 8px / 2px 6px no-repeat;
}

.iv-rotate-icon {
  display: grid;
  place-items: center;
  padding-bottom: 1px;
  font-size: 22px;
  line-height: 1;
}

.iv-modal-preview {
  min-height: 330px;
  position: relative;
  display: grid;
  place-content: center;
  gap: 10px;
  color: #0d3347;
  background:
    linear-gradient(135deg, rgba(43, 212, 220, 0.18), rgba(57, 117, 255, 0.16)),
    repeating-linear-gradient(45deg, #f7fafd 0 14px, #eef4fa 14px 28px);
  border: 1px solid var(--iv-line);
  border-radius: 10px;
  text-align: center;
  overflow: hidden;
}

.iv-modal-image-shell {
  width: 150px;
  height: 122px;
  display: grid;
  place-items: center;
  transition: transform 120ms ease;
}

.iv-modal-image-shell.has-real-image {
  width: auto;
  height: auto;
}

.iv-modal-real-image {
  max-width: min(520px, 68vw);
  max-height: 315px;
  object-fit: contain;
  border-radius: 6px;
}

.iv-modal-image-shell .iv-evidence-picture-icon {
  width: 92px;
  height: 78px;
}

.iv-modal-image-shell .iv-evidence-picture-icon::before {
  width: 14px;
  height: 14px;
}

.iv-modal-image-shell .iv-evidence-picture-icon::after {
  width: 58px;
  height: 42px;
}

.iv-modal-current-mark {
  width: 34px;
  height: 34px;
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 4;
  display: grid;
  place-items: center;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(13, 51, 71, 0.18);
}

.iv-modal-current-mark.accepted {
  background: #16a34a;
}

.iv-modal-current-mark.rejected {
  background: #dc2626;
}

.iv-modal-thumbs {
  display: flex;
  gap: 8px;
  padding: 14px 20px 0;
  overflow-x: auto;
}

.iv-modal-thumb {
  width: 76px;
  height: 62px;
  position: relative;
  flex: 0 0 76px;
  display: grid;
  place-items: center;
  background: #f7fafd;
  border: 2px solid var(--iv-line);
  border-radius: 8px;
  cursor: pointer;
}

.iv-modal-thumb.active {
  border-color: #3b82f6;
}

.iv-modal-thumb .iv-evidence-picture-icon {
  width: 34px;
  height: 28px;
  border-width: 2px;
}

.iv-modal-thumb .iv-evidence-picture-icon::before {
  width: 6px;
  height: 6px;
  top: 4px;
  right: 4px;
  border-width: 2px;
}

.iv-modal-thumb .iv-evidence-picture-icon::after {
  width: 19px;
  height: 13px;
  left: 4px;
  bottom: 4px;
  border-width: 2px;
}

.iv-modal-thumb .iv-decision-mark {
  width: 18px;
  height: 18px;
  top: -7px;
  right: -7px;
  font-size: 12px;
}

.iv-modal-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 14px 20px 18px;
}

.iv-modal-actions button {
  height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

.iv-accept-button {
  color: white;
  background: #c8102e;
  border: 0;
}

.iv-reject-button {
  color: #526274;
  background: white;
  border: 1px solid var(--iv-line);
}

.iv-undo-button,
.iv-done-button {
  color: #526274;
  background: #f4f7fb;
  border: 1px solid var(--iv-line);
}

.iv-done-button {
  margin-left: auto;
  color: #526274;
}

@media (max-width: 920px) {
  .iv-page {
    padding: 16px;
  }

  .iv-title-row {
    justify-content: flex-start;
  }

  .iv-filters,
  .iv-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .iv-total-block {
    grid-column: 1 / -1;
  }

  .iv-detail-layout {
    grid-template-columns: 1fr;
  }

  .iv-subnav {
    min-height: auto;
    display: flex;
    gap: 8px;
    border-right: 0;
  }

  .iv-detail-fields {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .iv-page {
    padding: 14px;
  }

  .iv-filters,
  .iv-kpis {
    grid-template-columns: 1fr;
  }

  .iv-table-card {
    overflow-x: auto;
  }

  .iv-page table {
    min-width: 900px;
  }

  .iv-detail-fields,
  .iv-evidence-grid {
    grid-template-columns: 1fr;
  }

  .iv-modal-preview {
    min-height: 260px;
  }
}
