
    /* ===== CSS Variables ===== */
    :root {
      --primary: #1e5ba8;
      --primary-dark: #164e8a;
      --accent: #0ea5e9;
      --success: #059669;
      --danger: #dc2626;
      
      --bg-primary: #ffffff;
      --bg-secondary: #f8fafc;
      --bg-tertiary: #f1f5f9;
      
      --text-primary: #1f2937;
      --text-secondary: #6b7280;
      --text-muted: #9ca3af;
      
      --border-light: #e5e7eb;
      --border-primary: #d1d5db;
      
      --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
      --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      background-color: var(--bg-secondary);
      color: var(--text-primary);
      font-size: 16px;
      line-height: 1.6;
    }

    .wrap {
      max-width: 1200px;
      margin: 0 auto;
      padding: 24px;
    }

    @media (max-width: 768px) {
      .wrap {
        padding: 16px;
      }
    }

       /* ===== Header ===== */
    .header {
      text-align: center;
      margin-bottom: 32px;
      padding: 24px 0;
    }

    .header h1 {
      font-size: 32px;
      font-weight: 700;
      color: var(--primary);
      margin-bottom: 8px;
    }

    .header .subtitle {
      font-size: 16px;
      color: var(--text-primary);
      margin-bottom: 8px;
    }

    .header .description {
      font-size: 15px;
      color: var(--text-secondary);
        max-width: 700px;
       margin: 0 auto;
    }
    
    header nav a {
      text-decoration: none;
      color: #1e5ba8;
   }
   
   header a {
  text-decoration: none;
  color: #1e5ba8;
}

    @media (max-width: 768px) {
      .header h1 {
        font-size: 24px;
      }
      .header .subtitle {
        font-size: 15px;
      }
    }
    

/* Header container */
.site-header {
  text-align: center;
  padding: 24px 0 12px;
  margin-bottom: 0px;
}

/* Title */
.site-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

/* Subtitle */
.site-header .subtitle {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

/* Simple inline navigation */
.main-nav {
  font-size: 18px;
}

.main-nav a {
  margin: 0 12px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  padding: 4px 6px;
}

.main-nav a:hover {
  text-decoration: underline;
}

/* Description text */
.site-header .description {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 12px auto 8px;
}

/* Responsive scaling */
@media (max-width: 768px) {
  .site-header h1 {
    font-size: 26px;
  }

  .main-nav a {
    margin: 0 8px;
    font-size: 14px;
  }
}
    
    
    /* Version */
    
    .version {
  font-style: italic;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-size: 15px;
}

    .update-history {
  font-style: italic;
  text-align: left;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-size: 15px;
   padding: 12px;
      border-bottom: 2px solid var(--border-light);
      margin-bottom: 16px;
      background: var(--bg-primary);
      border-radius: 12px;
      border: 1px solid var(--border-light);
}


      

  .update-history details[open] {
  padding: .5em;
  }
  
  
  .update-history details {
  border: 1px solid #aaa;
  border-radius: 5px;
}

    /* ===== Status ===== */
    .status {
      font-size: 13px;
      color: var(--text-muted);
      text-align: center;
      margin-bottom: 20px;
    }


/* Status banner */
.status-banner {

  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-light, #e5e7eb);
  background: #f1f5f9;           /* default info */
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}

/* Variants */
.status-info   { background:#e0f2fe; color:#0c4a6e; border-color:#bae6fd; }   /* blue */
.status-success{ background:#dcfce7; color:#065f46; border-color:#bbf7d0; }   /* green */
.status-error  { background:#fee2e2; color:#7f1d1d; border-color:#fecaca; }   /* red */

/* Spinner shown while importing */
.status-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.1);
  border-top-color: currentColor;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Make text readable and announceable */
#statusText { font-size: 14px; font-weight: 600; }


    /* ===== Trust Section ===== */
.trust-section {
  background: #D1FAE5;
  border: 1px solid var(--border-primary);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 32px;
}

.trust-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-primary);
}

    /* ===== Trust Section ===== */
    .trust-section {
      background: #D1FAE5;
      border: 1px solid var(--border-primary);
      border-radius: 10px;
      padding: 20px;
      margin-bottom: 32px;
    }

    .trust-section h2 {
      font-size: 16px;
      font-weight: 600;
      color: var(--success);
      margin: 0 0 12px;
    }

    .trust-list {
      list-style: none;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 12px;
    }

    .trust-list li {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      color: var(--text-primary);
    }

    .trust-list li::before {
      content: "✓";
      color: var(--success);
      font-weight: 700;
    }


    /* ===== Section Container ===== */
    .section {
      background: var(--bg-primary);
      border: 1px solid var(--border-light);
      border-radius: 12px;
      padding: 24px;
      margin-bottom: 24px;
      box-shadow: var(--shadow-sm);
    }

    .section h2 {
      font-size: 18px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 2px solid var(--border-light);
    }
    
      .codes-section {
      background: var(--bg-primary);
      border: 1px solid var(--border-light);
      border-radius: 12px;
      padding: 12px;
      margin-bottom: 50px;
      box-shadow: var(--shadow-sm);
      overflow-y: scroll;
      max-height: 585px;
      color: var(--text-primary);
    }
    
      .support-section {
      background: var(--bg-primary);
      border: 1px solid var(--border-light);
      border-radius: 12px;
      padding: 24px;
      margin-bottom: 24px;
      box-shadow: var(--shadow-sm);
      display: contents;
      text-align: center;
      font-size: 14px;
      color: var(--text-secondary);
    }
    
    
        .info-section {
      background: var(--bg-primary);
      border: 1px solid var(--border-light);
      border-radius: 12px;
      padding: 12px;
      margin-bottom: 24px;
      box-shadow: var(--shadow-sm);
    }

    .info-section h2 {
      font-size: 18px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 2px solid var(--border-light);
    }

    /* ===== Search Section ===== */
/* Search wrapper and results - FIXED POSITIONING */
.search-wrapper {
  position: relative;
  display: flex;
  gap: 8px;
}

.search-bar input {
  flex: 1;
  padding: 14px 16px;
  font-size: 16px;
  border: 1.5px solid var(--border-primary);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all 0.2s;
  min-height: 44px;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.search-results {
  position: absolute;  /* THIS IS KEY */
  top: 100%;           /* Position directly below input */
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 1000;      /* INCREASED z-index to ensure it's on top */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);  /* Better shadow for visibility */
  margin-top: 0;      /* No gap between input and results */
}

.search-results.show {
  display: block;
}

.search-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.search-item:hover {
  background: var(--bg-tertiary);
}

.search-item:last-child {
  border-bottom: none;
}

.search-item .code {
  font-weight: 700;
  color: var(--primary);
  min-width: 60px;
  flex-shrink: 0;
}

.search-item .desc {
  color: var(--text-secondary);
  font-size: 13px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-bar {
  display: contents;
}

@media (max-width: 768px) {
  .search-item .desc {
    white-space: normal;
    line-height: 1.4;
  }
}


    .helper-text {
      font-size: 13px;
      color: var(--text-muted);
      margin-top: 10px;
    }

    /* ===== Form Grid - Single Column ===== */
    .form-group {
      display: flex;
      flex-direction: column;
      margin-bottom: 16px;
    }

    .form-group label {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 8px;
    }

    .form-group input,
    .form-group select {
      padding: 12px 14px;
      font-size: 16px;
      border: 1.5px solid var(--border-primary);
      border-radius: 8px;
      background: var(--bg-primary);
      color: var(--text-primary);
      transition: all 0.2s;
      min-height: 44px;
    }

    .form-group input:focus,
    .form-group select:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    }

    /* ===== Service Item Container ===== */
    .service-item {
      background: var(--bg-tertiary);
      border: 1px solid var(--border-light);
      border-radius: 10px;
      padding: 20px;
      margin-bottom: 20px;
      position: relative;
    }

    .service-item-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 2px solid var(--border-light);
    }

    .service-item-header h3 {
      font-size: 16px;
      font-weight: 600;
      color: var(--primary);
      margin: 0;
    }

    .service-item-header .code {
      font-size: 18px;
      font-weight: 700;
      color: var(--primary);
    }

    .btn-remove-service {
      background: none;
      border: 1px solid var(--danger);
      color: var(--danger);
      padding: 6px 12px;
      border-radius: 6px;
      cursor: pointer;
      font-size: 13px;
      font-weight: 500;
      transition: all 0.2s;
      min-height: 32px;
    }

    .btn-remove-service:hover {
      background: rgba(220, 38, 38, 0.05);
    }
    
     /* ===== Notification ===== */
    .toast{
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 2000;
  max-width: 92vw;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-light,#e5e7eb);
  background: #e0f2fe;
  color: #0c4a6e;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity .20s ease, transform .20s ease;
}
.toast.show{ opacity: 1; transform: translateY(0); }
.toast-info   { background:#e0f2fe; color:#0c4a6e; border-color:#bae6fd; }
.toast-success{ background:#dcfce7; color:#065f46; border-color:#bbf7d0; }
.toast-error  { background:#fee2e2; color:#7f1d1d; border-color:#fecaca; }

.inline-metric{
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light,#e5e7eb);
  background: var(--bg-secondary);
  color: var(--text-secondary,#334155);
}

@media (prefers-reduced-motion: reduce){
  .toast{ transition: none; }
}

#servicesContainer { scroll-margin-top: 16px; }



    /* ===== Buttons ===== */
    .btn {
      padding: 12px 24px;
      border: none;
      border-radius: 8px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      min-height: 44px;
      display: inline-block;
      text-align: center;
      margin: 5px 0;
    }

    .btn-primary {
      background: var(--primary);
      color: white;
      width: 100%;
    }

    .btn-primary:hover {
      background: var(--primary-dark);
      box-shadow: var(--shadow-md);
    }

    .btn-secondary {
      background: var(--accent);
      color: white;
      padding: 10px 16px;
      font-size: 14px;
    }

    .btn-secondary:hover {
      background: #0284c7;
    }

    /* ===== Results Table ===== */
    .results-section {
      display: none;
    }

    .results-section.show {
      display: block;
      animation: slideIn 0.3s ease-out;
    }

details {
    
    border-radius: 5px;
  
    font-size: 15px;
}


details[open] {
    padding: .5em;
    width: fit-content;
}



details[open] summary {
    margin-bottom: .5em;
}

summary {
  cursor: pointer;
  border-radius: 5px;
  padding: .5em .5em;
  position: sticky;
  background: #fff;
  top: 0;
}

.codes-section p:nth-child(2n+1) {
  background-color: var(--bg-secondary);
}

.codes-section p {
  padding: 4px;
}
    
    @keyframes slideIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .results-section h2 {
      margin-bottom: 20px;
    }

    .table-wrapper {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      border-radius: 8px;
      border: 1px solid var(--border-light);
    }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 14px;
    }

    thead {
      background: var(--bg-tertiary);
    }

    thead th {
      padding: 12px 5px;
      text-align: right;
      font-weight: 600;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--text-secondary);
      border-bottom: 2px solid var(--border-primary);
      position: sticky;
      background: #F1F5F9;
      top: 0;
    }
    

    
    
    
    .codes-section thead th {
      border: 1px solid #ccc;
    }

    thead th:first-child {
      text-align: left;
    }

    tbody tr {
      border-bottom: 1px solid var(--border-light);
      transition: background 0.15s;
      text-wrap: balance;
    }
    
    
    

    tbody tr:hover {
      background: var(--bg-tertiary);
    }
    
    

    tbody td {
      padding: 12px 5px;
      text-align: right;
      color: var(--text-primary);
      font-weight: 500;
      text-wrap: balance;
    }
    
    tbody th {
    border: 1px solid #ccc;
  text-align: left;
  color: var(--primary);
  font-weight: 700;
  background: var(--bg-secondary);
  padding: 12px 5px;
  position: sticky;
  background: #F8FAFC;
  left: 0;
    }
    
    .codes-section tbody td {
      border: 1px solid #ccc;
    }

    tbody td:first-child {
      text-align: left;
      color: var(--primary);
      font-weight: 700;
    }

    tfoot tr {
      background: var(--bg-tertiary);
      border-top: 2px solid var(--border-primary);
      font-weight: 700;
    }

    tfoot td {
      padding: 14px 5px;
      text-align: right;
      color: var(--text-primary);
      border: none;
    }

    tfoot td:first-child {
      text-align: left;
    }
    


    /* ===== Footer ===== */
    .footer {
      background: var(--bg-primary);
      border-top: 1px solid var(--border-light);
      padding: 1rem;
      margin-top: 40px;
      font-size: 12px;
      color: var(--text-muted);
      text-align: center;
    }

    .footer a {
      color: var(--primary);
      text-decoration: none;
    }

    .footer a:hover {
      text-decoration: underline;
    }
    
      .notice {
      background: var(--bg-secondary);
            font-size: 12px;
      color: var(--text-muted);
      text-align: center;
      margin-bottom: 10px;
      margin-top: 8px;
    }

