:root {
  --ial-blue: #0a4074;
  --ial-blue-dark: #07335e;
  --ial-teal: #0d8f9d;
  --ial-gold: #d9a441;
  --ial-text: #111827;
  --ial-muted: #5f6b7a;
  --ial-border: #dce5ec;
  --ial-soft: #f7fafc;
  --ial-row: #eef6fb;
}

.ial-page {
  margin: 12px 0 36px;
  color: var(--ial-text);
  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
}

.ial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--ial-border);
  border-left: 6px solid var(--ial-gold);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(10, 64, 116, .07);
}

.ial-heading span,
.ial-section-title span,
.ial-results-header span {
  display: block;
  margin-bottom: 8px;
  color: var(--ial-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.ial-heading h1 {
  margin: 0 0 9px;
  color: var(--ial-blue) !important;
  font-size: 22px !important;
  font-weight: 800;
  line-height: 1.3;
}

.ial-heading p {
  max-width: 820px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px dotted #b7cddd;
  color: var(--ial-muted);
  font-size: 14px;
  line-height: 1.62;
}

.ial-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.ial-hero-links a,
.ial-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ial-hero-links a {
  border: 1px solid #cfe2ed;
  background: var(--ial-soft);
  color: var(--ial-blue) !important;
}

.ial-hero-links a:hover {
  border-color: #b7d3e2;
  background: #fff;
  box-shadow: 0 6px 14px rgba(10, 64, 116, .1);
}

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

.ial-stat-card {
  padding: 16px;
  border: 1px solid var(--ial-border);
  border-top: 3px solid var(--ial-gold);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(10, 64, 116, .05);
}

.ial-stat-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--ial-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.ial-stat-card strong {
  display: block;
  color: var(--ial-blue);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.ial-message,
.ial-filter-panel,
.ial-results-panel {
  margin-bottom: 18px;
  border: 1px solid var(--ial-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(10, 64, 116, .05);
}

.ial-message {
  padding: 13px 15px;
  border-left: 5px solid var(--ial-gold);
  color: #8a4b00;
  font-size: 14px;
  line-height: 1.5;
}

.ial-filter-panel,
.ial-results-panel {
  padding: 20px;
}

.ial-section-title {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ial-border);
}

.ial-section-title h2,
.ial-results-header h2 {
  margin: 0;
  color: var(--ial-blue);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.ial-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.ial-filter-grid label {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--ial-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.ial-control {
  width: 100%;
  height: 40px;
  padding: 8px 10px;
  border: 1px solid #cbd9e3;
  border-radius: 7px;
  background: #fff;
  color: var(--ial-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  text-transform: none;
}

.ial-control:focus {
  border-color: var(--ial-teal);
  box-shadow: 0 0 0 3px rgba(13, 143, 157, .13);
  outline: none;
}

.ial-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.ial-button {
  border: 1px solid transparent;
  cursor: pointer;
}

.ial-button-primary {
  border-color: var(--ial-blue);
  background: var(--ial-blue);
  color: #fff;
}

.ial-button-primary:hover {
  border-color: var(--ial-blue-dark);
  background: var(--ial-blue-dark);
  box-shadow: 0 8px 16px rgba(10, 64, 116, .16);
}

.ial-button-secondary {
  border-color: #cfe2ed;
  background: var(--ial-soft);
  color: var(--ial-blue);
}

.ial-button-secondary:hover {
  background: #fff;
}

.ial-results-header {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ial-border);
}

.ial-result-count {
  display: inline-flex;
  padding: 8px 11px;
  border: 1px solid #cfe2ed;
  border-radius: 999px;
  background: var(--ial-soft);
  color: var(--ial-blue);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.ial-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #d8e7f0;
  border-radius: 8px;
}

.ial-table {
  width: 100%;
  min-width: 760px;
  margin: 0;
  border-collapse: collapse;
  color: var(--ial-text);
  font-size: 12.5px;
}

.ial-table th {
  padding: 11px 12px;
  border-bottom: 3px solid var(--ial-gold);
  background: var(--ial-blue);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  vertical-align: top;
}

.ial-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #dce8ef;
  color: var(--ial-text);
  font-size: 12.5px;
  line-height: 1.45;
  vertical-align: middle;
}

.ial-table tr:nth-child(even) td {
  background: var(--ial-row);
}

.ial-table tr:last-child td {
  border-bottom: 0;
}

.ial-record-id,
.ial-muted {
  display: block;
  margin-top: 3px;
  color: var(--ial-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.ial-record-id {
  margin: 0 0 6px;
  color: var(--ial-teal);
  font-weight: 800;
}

.ial-main-text {
  display: block;
  color: var(--ial-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.42;
}

.ial-badge {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eaf7f7;
  color: #006f78;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.ial-action-head,
.ial-action-cell {
  width: 112px;
  text-align: center !important;
}

.ial-detail-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--ial-blue);
  border-radius: 7px;
  background: var(--ial-blue);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(10, 64, 116, .16);
}

.ial-detail-button i {
  font-size: 13px;
  font-weight: 400;
}

.ial-detail-button:hover {
  border-color: var(--ial-blue-dark);
  background: var(--ial-blue-dark);
}

.ial-pagination {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 0;
}

.ial-pagination-summary {
  color: var(--ial-text);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.4;
}

.ial-pagination-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
}

.ial-page-nav,
.ial-page-number {
  display: inline-flex;
  min-width: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--ial-text);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none !important;
}

.ial-page-nav:hover,
.ial-page-number:hover {
  border-color: #b7c6d0;
  background: #f3f6f8;
  color: var(--ial-blue);
}

.ial-page-number.is-active {
  border-color: #9da8b0;
  background: #e8e8e8;
  color: var(--ial-text);
}

.ial-page-nav.is-disabled {
  color: #98a2ad;
  cursor: default;
  pointer-events: none;
}

.ial-modal-open {
  overflow: hidden;
}

.ial-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ial-modal.is-open {
  display: flex;
}

.ial-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 38, .58);
}

.ial-modal-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(10, 24, 38, .28);
}

.ial-modal-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 17px 18px;
  border-left: 6px solid var(--ial-gold);
  background: var(--ial-blue);
  color: #fff;
}

.ial-modal-header span {
  display: block;
  margin-bottom: 6px;
  color: #d7f4f7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.ial-modal-header h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.ial-modal-close {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.ial-modal-body {
  padding: 18px;
}

.ial-modal-primary {
  margin-bottom: 14px;
  padding: 15px;
  border: 1px solid var(--ial-border);
  border-radius: 8px;
  background: var(--ial-soft);
}

.ial-modal-primary h3 {
  margin: 0 0 7px;
  color: var(--ial-blue);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.ial-modal-primary p {
  margin: 0;
  color: var(--ial-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.ial-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.ial-detail-grid div,
.ial-detail-block {
  padding: 12px;
  border: 1px solid var(--ial-border);
  border-radius: 8px;
  background: #fff;
}

.ial-detail-grid span,
.ial-detail-block span {
  display: block;
  margin-bottom: 6px;
  color: var(--ial-teal);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.ial-detail-grid strong,
.ial-detail-block p {
  margin: 0;
  color: var(--ial-text);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
}

.ial-detail-block {
  margin-top: 10px;
}

@media (max-width: 1100px) {
  .ial-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ial-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ial-page {
    margin: 8px 0 28px;
  }

  .ial-hero,
  .ial-results-header {
    grid-template-columns: 1fr;
  }

  .ial-hero {
    display: block;
    padding: 16px;
  }

  .ial-hero-links {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .ial-filter-panel,
  .ial-results-panel {
    padding: 16px;
  }

  .ial-filter-grid,
  .ial-stats {
    grid-template-columns: 1fr;
  }

  .ial-heading h1 {
    font-size: 20px !important;
  }

  .ial-results-header {
    display: block;
  }

  .ial-result-count {
    margin-top: 10px;
  }

  .ial-pagination {
    display: block;
  }

  .ial-pagination-links {
    justify-content: flex-start;
    margin-top: 10px;
  }

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

  .ial-modal {
    padding: 12px;
  }

  .ial-modal-header,
  .ial-modal-body {
    padding: 15px;
  }
}
