.midsure-checks-page {
  background: #edf5f1;
  color: #0f172a;
}

.midsure-check-demo-main {
  background: #edf5f1;
}

.midsure-check-demo-section {
  min-height: 100vh;
  padding: 132px 24px 56px;
}

.midsure-check-demo-shell {
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --accent: #0e1d2f;
  --accent-hover: #152b45;
  --accent-light: #f2f7f4;
  --bg: #f4f6f8;
  --bg-elevated: #ffffff;
  --bg-muted: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --success: #16a34a;
  --error: #dc2626;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --text-inverse: #ffffff;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 18px 55px rgba(15, 23, 42, .05);
  --motion-fast: 150ms;
  --motion-ease-out: cubic-bezier(.16, 1, .3, 1);
  display: block;
  width: 100%;
  max-width: 1120px;
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #dbe7e1;
  border-radius: 10px;
  background: var(--bg);
  box-shadow: 0 28px 80px rgba(15, 23, 42, .13);
  color: var(--text-primary);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

.midsure-check-demo-shell *,
.midsure-check-demo-shell *:before,
.midsure-check-demo-shell *:after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.midsure-demo-inner-system {
  padding: 24px;
}

.midsure-check-demo-shell .page-header {
  margin-bottom: var(--space-5);
}

.midsure-check-demo-shell .page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.midsure-check-demo-shell .list-detail-title {
  margin: 0 0 6px;
  color: #111827;
  font-family: Inter, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.02;
}

.midsure-check-demo-shell .list-detail-description {
  max-width: 58rem;
  margin: 0;
  color: #475569;
  font-size: .95rem;
  line-height: 1.65;
}

.midsure-check-demo-shell .list-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
}

.midsure-demo-run-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #0e1d2f;
  border-radius: 12px;
  background: #0e1d2f;
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .18);
  font-family: Inter, Arial, sans-serif;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.midsure-demo-run-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.midsure-demo-run-button:hover,
.midsure-demo-run-button:focus-visible {
  outline: none;
  background: #152b45;
  border-color: #152b45;
  box-shadow: 0 0 0 4px rgba(59, 183, 101, .18), 0 18px 38px rgba(14, 29, 47, .22);
}

.midsure-demo-run-button:active {
  transform: translateY(1px);
}

.midsure-demo-run-button:disabled {
  cursor: progress;
  opacity: .86;
}

.midsure-demo-run-button.is-glowing {
  animation: midsureDemoButtonGlow 1800ms ease-in-out infinite;
}

.midsure-check-demo-shell .toolbar-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 74px;
  margin-bottom: var(--space-4);
  overflow: hidden;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
}

.midsure-check-demo-shell .registration-toolbar {
  height: 74px;
  min-height: 74px;
}

.midsure-check-demo-shell .toolbar-main-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  min-height: 44px;
  transition: opacity 160ms ease, transform 160ms ease;
}

.midsure-check-demo-shell .toolbar-search {
  display: flex;
  flex: 1;
  align-items: center;
  gap: var(--space-3);
  min-width: 220px;
}

.midsure-check-demo-shell .toolbar-search svg {
  flex: 0 0 16px;
  color: var(--text-tertiary);
}

.midsure-check-demo-shell .toolbar-filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  min-width: fit-content;
  flex-wrap: wrap;
}

.midsure-check-demo-shell .form-input {
  width: 100%;
  min-height: 3rem;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: Inter, Arial, sans-serif;
  font-size: .875rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.midsure-check-demo-shell .form-input:focus {
  outline: none;
  border-color: #3bb765;
  box-shadow: 0 0 0 4px rgba(59, 183, 101, .16);
}

.midsure-check-demo-shell .form-input:disabled,
.midsure-check-demo-shell .form-input[readonly] {
  color: var(--text-secondary);
  opacity: 1;
}

.midsure-check-demo-shell .text-secondary {
  color: var(--text-secondary);
  font-size: .875rem;
}

.midsure-check-demo-shell .text-tertiary {
  color: var(--text-tertiary);
  font-size: .75rem;
}

.midsure-check-demo-shell .checkbox {
  position: relative;
  top: -1px;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  accent-color: var(--accent);
  cursor: pointer;
  vertical-align: middle;
}

.midsure-check-demo-shell .batch-actions,
.midsure-check-demo-shell .progress-panel {
  border-radius: 10px;
  background: #f8fafc;
}

.midsure-check-demo-shell .registration-toolbar .batch-actions,
.midsure-check-demo-shell .registration-toolbar .progress-panel {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  z-index: 2;
  min-height: 48px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(-50% + 4px));
  transition: opacity 160ms ease, transform 160ms ease;
}

.midsure-check-demo-shell .registration-toolbar .progress-panel {
  display: none;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, .8fr) auto;
  align-items: center;
  gap: var(--space-3);
}

.midsure-check-demo-shell .registration-toolbar.has-progress .toolbar-main-row {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.midsure-check-demo-shell .registration-toolbar.has-progress .progress-panel {
  display: grid;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%);
}

.midsure-check-demo-shell .table-state-summary,
.midsure-check-demo-shell .table-state-actions,
.midsure-check-demo-shell .table-progress-copy {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.midsure-check-demo-shell .table-state-summary {
  color: var(--text-secondary);
  font-size: .88rem;
  font-weight: 600;
}

.midsure-check-demo-shell .table-state-actions {
  justify-content: flex-end;
}

.midsure-check-demo-shell .progress-bar {
  height: 6px;
  margin: 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.midsure-check-demo-shell .progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #121414;
  transition: width .3s ease;
}

.midsure-check-demo-shell .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: var(--space-2) var(--space-4);
  border: 0;
  border-radius: var(--radius);
  font-family: Inter, Arial, sans-serif;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
}

.midsure-check-demo-shell .btn-sm {
  min-height: 2rem;
  padding: var(--space-1) var(--space-3);
  font-size: .8125rem;
}

.midsure-check-demo-shell .btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
}

.midsure-check-demo-shell .btn-secondary {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.midsure-check-demo-shell .btn-danger {
  background: var(--error);
  color: var(--text-inverse);
}

.midsure-check-demo-shell .btn:disabled {
  cursor: default;
  opacity: .65;
}

.midsure-check-demo-shell .registrations-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.midsure-check-demo-shell .reg-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 76px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.midsure-check-demo-shell .midsure-demo-registration-row.is-selected {
  background: #f2f7f4;
}

.midsure-check-demo-shell tr.midsure-demo-registration-row.is-selected td {
  background: #f2f7f4;
}

.midsure-check-demo-shell .reg-card.midsure-demo-registration-row.is-selected {
  border-color: rgba(59, 183, 101, .32);
  background: #f2f7f4;
}

.midsure-check-demo-shell .reg-card-checkbox,
.midsure-check-demo-shell .reg-card-actions {
  flex-shrink: 0;
}

.midsure-check-demo-shell .reg-card-content {
  flex: 1;
  min-width: 0;
}

.midsure-check-demo-shell .reg-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.midsure-check-demo-shell .reg-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.midsure-check-demo-shell .midsure-demo-table-container {
  display: none;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.midsure-check-demo-shell table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

.midsure-check-demo-shell th {
  padding: 7px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(248, 250, 252, .88);
  color: var(--text-secondary);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  text-transform: none;
}

.midsure-check-demo-shell td {
  padding: 5px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.midsure-check-demo-shell tr:hover td {
  background: #f8fafc;
}

.midsure-check-demo-shell tr:last-child td {
  border-bottom: 0;
}

.midsure-check-demo-shell .vehicle-identity {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  vertical-align: middle;
}

.midsure-check-demo-shell .vehicle-description {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.midsure-check-demo-shell .plate {
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  inline-size: 90px;
  min-width: 90px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid #e6c653;
  border-radius: 6px;
  background: #ffe275;
  color: #000000;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.midsure-check-demo-shell .badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}

.midsure-check-demo-shell .badge-success {
  border-color: #b8e8c7;
  background: #edf8f0;
  color: #176239;
}

.midsure-check-demo-shell .badge-error {
  border-color: #fecaca;
  background: #fee2e2;
  color: var(--error);
}

.midsure-check-demo-shell .badge-checking {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
}

.midsure-check-demo-shell .badge-neutral {
  border-color: #e2e8f0;
  background: #f5f5f5;
  color: #475569;
}

.midsure-check-demo-shell .status-glyph-badge {
  display: inline-grid;
  place-items: center;
  inline-size: 22px;
  width: 22px;
  min-width: 22px;
  min-height: 22px;
  height: 22px;
  padding: 0;
  border-radius: 999px;
  vertical-align: middle;
}

.midsure-check-demo-shell .status-symbol {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
}

.midsure-check-demo-shell .status-symbol svg {
  width: 14px;
  height: 14px;
  overflow: visible;
  stroke: currentColor;
  stroke-width: 2.4;
}

.midsure-check-demo-shell .status-symbol path,
.midsure-check-demo-shell .status-symbol circle {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.midsure-check-demo-shell .status-glyph-badge.badge-error {
  border-color: #f43f5e;
  background: #fee2e2;
  color: #9f1239;
  box-shadow: 0 0 0 1px rgba(159, 18, 57, .06);
}

.midsure-check-demo-shell .status-glyph-badge.is-attention-result {
  animation: status-not-insured-attention 2600ms ease-in-out infinite;
}

.midsure-check-demo-shell .status-glyph-badge.is-fresh-result {
  animation: status-badge-pop 520ms cubic-bezier(.16, 1, .3, 1);
}

.midsure-check-demo-shell .status-glyph-badge.is-fresh-result.is-attention-result {
  animation: status-badge-pop 520ms cubic-bezier(.16, 1, .3, 1), status-not-insured-attention 2600ms ease-in-out 620ms infinite;
}

.midsure-check-demo-shell .status-glyph-badge.is-fresh-result .status-symbol path,
.midsure-check-demo-shell .status-glyph-badge.is-fresh-result .status-symbol circle {
  stroke-dasharray: 42;
  stroke-dashoffset: 42;
  animation: status-path-draw 620ms cubic-bezier(.16, 1, .3, 1) forwards;
}

.midsure-check-demo-shell .checking-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(99, 102, 241, .3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.midsure-check-demo-shell .live-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #10b981;
  vertical-align: middle;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.midsure-check-demo-shell .row-action-cell {
  width: 44px;
  text-align: right;
}

.midsure-check-demo-shell .row-action-stack {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 32px;
}

.midsure-check-demo-shell .row-check-action {
  display: inline-grid;
  place-items: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: transform var(--motion-fast) var(--motion-ease-out), border-color var(--motion-fast) ease, background-color var(--motion-fast) ease, color var(--motion-fast) ease;
}

.midsure-check-demo-shell .row-check-action svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
}

.midsure-check-demo-shell .row-check-action.is-checking {
  color: #475569;
  background: #f8fafc;
}

.midsure-check-demo-shell .midsure-demo-registration-row {
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.midsure-check-demo-shell tr.midsure-demo-registration-row.reg-checking td,
.midsure-check-demo-shell .reg-card.midsure-demo-registration-row.reg-checking {
  background: var(--accent-light);
  animation: pulse-row 2s ease-in-out infinite;
}

.midsure-check-demo-shell tr.midsure-demo-registration-row.is-not-insured td {
  background: transparent;
  box-shadow: none;
}

.midsure-check-demo-shell .reg-card.midsure-demo-registration-row.is-not-insured {
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.midsure-check-demo-shell tr.midsure-demo-registration-row.is-not-insured.is-selected td,
.midsure-check-demo-shell .reg-card.midsure-demo-registration-row.is-not-insured.is-selected {
  background: #f2f7f4;
}

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

@keyframes midsureDemoButtonGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(59, 183, 101, .24), 0 14px 32px rgba(15, 23, 42, .18);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(59, 183, 101, .12), 0 20px 42px rgba(14, 29, 47, .25);
  }
}

@keyframes status-path-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes status-badge-pop {
  0% {
    opacity: 0;
    transform: scale(.72);
  }
  55% {
    opacity: 1;
    transform: scale(1.12);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes status-not-insured-attention {
  0%, 100% {
    background: #fee2e2;
    border-color: #f43f5e;
    color: #9f1239;
    box-shadow: 0 0 0 1px rgba(159, 18, 57, .06);
  }
  50% {
    background: #fecdd3;
    border-color: #be123c;
    color: #7f1d1d;
    box-shadow: 0 0 0 4px rgba(190, 18, 60, .1);
  }
}

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

@keyframes pulse-row {
  0%, 100% {
    background-color: var(--accent-light);
  }
  50% {
    background-color: rgba(59, 183, 101, .14);
  }
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: .5;
    transform: scale(.8);
  }
}

@media (min-width: 768px) {
  .midsure-check-demo-shell .registrations-list {
    display: none;
  }

  .midsure-check-demo-shell .midsure-demo-table-container {
    display: block;
  }
}

@media (max-width: 820px) {
  .midsure-check-demo-shell .registration-toolbar {
    height: 112px;
    min-height: 112px;
  }

  .midsure-check-demo-shell .toolbar-main-row {
    align-items: stretch;
    flex-direction: column;
  }

  .midsure-check-demo-shell .toolbar-search {
    width: 100%;
    flex-basis: auto;
  }

  .midsure-check-demo-shell .toolbar-filters {
    width: 100%;
    justify-content: space-between;
  }

  .midsure-check-demo-shell .registration-toolbar .progress-panel {
    grid-template-columns: 1fr;
    align-content: center;
  }
}

@media screen and (max-width: 767px) {
  .midsure-check-demo-section {
    padding: 96px 16px 40px;
  }

  .midsure-demo-inner-system {
    padding: 16px;
  }

  .midsure-check-demo-shell .page-header-row {
    flex-direction: column;
  }

  .midsure-check-demo-shell .list-detail-actions,
  .midsure-demo-run-button {
    width: 100%;
  }

  .midsure-check-demo-shell .reg-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .midsure-check-demo-shell .vehicle-identity {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .midsure-check-demo-shell .vehicle-description {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .midsure-demo-run-button.is-glowing,
  .midsure-check-demo-shell .status-glyph-badge.is-attention-result,
  .midsure-check-demo-shell .status-glyph-badge.is-fresh-result,
  .midsure-check-demo-shell .status-glyph-badge.is-fresh-result .status-symbol path,
  .midsure-check-demo-shell .status-glyph-badge.is-fresh-result .status-symbol circle,
  .midsure-check-demo-shell .checking-spinner,
  .midsure-check-demo-shell .live-indicator,
  .midsure-check-demo-shell tr.midsure-demo-registration-row.reg-checking td,
  .midsure-check-demo-shell .reg-card.midsure-demo-registration-row.reg-checking {
    animation: none;
  }
}
