* {
      box-sizing: border-box;
    }
.acs-tool-alt-codes-table {
      margin: 0;
      padding: 24px;
      font-family: Arial, sans-serif;
      background: #f4f7fb;
      color: #111827;
    }

    .altcodes-wrapper {
      max-width: 1450px;
      margin: auto;
      background: #ffffff;
      border-radius: 22px;
      padding: 26px;
      box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    }

    .altcodes-header {
      text-align: center;
      margin-bottom: 24px;
    }

    .altcodes-header h1 {
      margin: 0 0 8px;
      color: #1d4ed8;
      font-size: 34px;
    }

    .altcodes-header p {
      margin: 0;
      color: #475569;
      font-size: 16px;
      line-height: 1.6;
    }

    .altcodes-controls {
      display: grid;
      grid-template-columns: 1fr 260px 260px;
      gap: 14px;
      margin-bottom: 18px;
    }

    .altcodes-search-wrap {
      position: relative;
      width: 100%;
    }

    .altcodes-search-wrap .altcodes-search {
      padding-right: 42px;
    }

    .altcodes-search-clear {
      position: absolute;
      top: 50%;
      right: 10px;
      transform: translateY(-50%);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      padding: 0;
      border: none;
      border-radius: 999px;
      background: #e2e8f0;
      color: #0f172a;
      cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    }

    .altcodes-search-clear:hover,
    .altcodes-search-clear:focus-visible {
      background: #e2e8f0;
      color: #0f172a;
      transform: translateY(-50%) scale(1.12);
      outline: none;
    }

    .acs-tool-alt-codes-table .altcodes-search,
    .altcodes-search {
      width: 100%;
      min-height: 48px;
      border: 1px solid #cbd5e1;
      border-radius: 13px;
      padding: 13px 14px;
      font-size: 15px;
      line-height: 1.5;
      outline: none;
      background: #ffffff;
    }

    .acs-tool-alt-codes-table .altcodes-select {
      width: 100%;
      min-height: 48px;
      height: auto;
      border: 1px solid #cbd5e1;
      border-radius: 13px;
      padding: 10px 36px 10px 14px;
      font-size: 15px;
      line-height: 1.5;
      outline: none;
      background: #ffffff;
      color: #111827;
      appearance: auto;
      -webkit-appearance: menulist;
      cursor: pointer;
      vertical-align: middle;
    }

    .acs-tool-alt-codes-table .altcodes-search:focus,
    .altcodes-search:focus,
    .acs-tool-alt-codes-table .altcodes-select:focus {
      border-color: #2563eb;
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    }

    .altcodes-summary {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 22px;
    }

    .summary-pill {
      background: #eff6ff;
      color: #1e40af;
      border: 1px solid #bfdbfe;
      border-radius: 999px;
      padding: 8px 12px;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      user-select: none;
      transition: 0.2s ease;
    }

    .summary-pill:hover {
      background: #dbeafe;
      border-color: #93c5fd;
    }

    .summary-pill.active {
      background: #1d4ed8;
      color: #ffffff;
      border-color: #1d4ed8;
    }

    .category-section {
      margin-bottom: 30px;
      border: 1px solid #e2e8f0;
      border-radius: 18px;
      overflow: visible;
      background: #ffffff;
    }

    .category-title {
      margin: 0;
      padding: 15px 18px;
      background: linear-gradient(135deg, #2563eb, #1e40af);
      color: #ffffff;
      font-size: 20px;
      border-radius: 18px 18px 0 0;
      text-align: center;
    }

    .table-scroll {
      width: 100%;
      overflow-x: auto;
      overflow-y: visible;
    }

    .altcodes-table {
      width: 100%;
      border-collapse: collapse;
      min-width: 850px;
    }

    .altcodes-table th,
    .altcodes-table td {
      padding: 13px 14px;
      border-bottom: 1px solid #e5e7eb;
      text-align: left;
      font-size: 14px;
      vertical-align: middle;
      overflow: visible;
    }

    .altcodes-table th {
      background: #f8fafc;
      color: #334155;
      letter-spacing: 0.4px;
      font-size: 12px;
    }

    .altcodes-table tbody tr:hover {
      background: #f8fafc;
    }

    .symbol-box {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 58px;
      height: 54px;
      background: #f1f5f9;
      border: 1px solid #cbd5e1;
      border-radius: 13px;
      font-size: 32px;
      font-family: "Times New Roman", serif;
      font-weight: 700;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
      position: relative;
      z-index: 1;
    }

    .symbol-box:hover {
      transform: scale(1.55);
      background: #dbeafe;
      border-color: #2563eb;
      box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
      z-index: 10;
    }

    .symbol-box.small-text {
      font-family: Arial, sans-serif;
      font-size: 13px;
    }

    .alt-code {
      display: inline-block;
      background: #eef2ff;
      color: #1e3a8a;
      border-radius: 999px;
      padding: 7px 11px;
      font-weight: 700;
      white-space: nowrap;
    }

    .category-badge {
      display: inline-block;
      background: #dcfce7;
      color: #166534;
      border-radius: 999px;
      padding: 7px 10px;
      font-size: 12px;
      font-weight: 700;
      white-space: nowrap;
    }

    .copy-btn {
      border: none;
      background: #2563eb;
      color: #ffffff;
      border-radius: 9px;
      padding: 7px 10px;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      transition: 0.2s ease;
      margin-right: 5px;
      margin-bottom: 5px;
      white-space: nowrap;
    }

    .copy-btn:hover {
      background: #1e40af;
    }

    .copy-btn.green {
      background: #16a34a;
    }

    .copy-btn.green:hover {
      background: #166534;
    }

    .mobile-only {
      display: none;
    }

    .details-col {
      width: 50px;
      max-width: 50px;
      text-align: center;
      vertical-align: middle;
    }

    .details-toggle {
      width: 36px;
      height: 36px;
      min-width: 36px;
      max-width: 36px;
      min-height: 36px;
      max-height: 36px;
      padding: 0;
      border: none;
      border-radius: 50%;
      background: #2563eb;
      color: #ffffff;
      font-size: 22px;
      font-weight: 700;
      line-height: 1;
      cursor: pointer;
      transition: 0.2s ease;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      box-sizing: border-box;
    }

    .acs-tool-alt-codes-table .details-toggle {
      width: 36px;
      height: 36px;
      min-width: 36px;
      max-width: 36px;
      min-height: 36px;
      max-height: 36px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .details-toggle:hover {
      background: #1e40af;
      transform: scale(1.08);
    }

    .details-row {
      display: none;
    }

    .details-panel {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 14px;
      padding: 14px;
      display: grid;
      gap: 10px;
    }

    .details-line {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      color: #334155;
      font-size: 14px;
      line-height: 1.5;
    }

    .details-label {
      font-weight: 700;
      color: #1e293b;
      min-width: 80px;
    }

    .details-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding-top: 4px;
    }

    .no-results {
      background: #fef2f2;
      border: 1px solid #fecaca;
      color: #991b1b;
      border-radius: 14px;
      padding: 16px;
      font-size: 15px;
      line-height: 1.6;
    }

    @media (max-width: 950px) {
.acs-tool-alt-codes-table {
        padding: 15px;
      }

      .altcodes-wrapper {
        padding: 16px;
        border-radius: 18px;
      }

      .altcodes-header h1 {
        font-size: 27px;
      }

      .altcodes-header p {
        font-size: 14px;
      }

      .altcodes-controls {
        grid-template-columns: 1fr;
      }

      .table-scroll {
        overflow-x: visible;
      }

      .altcodes-table {
        min-width: 0;
        width: 100%;
        table-layout: fixed;
      }

      .altcodes-table th,
      .altcodes-table td {
        padding: 10px 8px;
        font-size: 13px;
      }

      .desktop-only {
        display: none !important;
      }

      .mobile-only {
        display: table-cell;
      }

      .details-row.is-open {
        display: table-row;
      }

      .symbol-col {
        width: 74px;
      }

      .name-col {
        width: auto;
      }

      .alt-col {
        width: 118px;
      }

      .details-col {
        width: 50px;
        max-width: 50px;
        text-align: center;
        vertical-align: middle;
        padding-left: 6px;
        padding-right: 6px;
      }

      .symbol-box {
        width: 50px;
        height: 48px;
        font-size: 27px;
      }

      .symbol-box:hover {
        transform: scale(1.25);
      }

      .alt-code {
        padding: 6px 8px;
        font-size: 12px;
      }

      .details-panel {
        margin: 4px 0 8px;
      }

      .category-title {
        font-size: 17px;
        padding: 13px 14px;
      }
    }

    @media (max-width: 520px) {
.acs-tool-alt-codes-table {
        padding: 10px;
      }

      .altcodes-wrapper {
        padding: 12px;
      }

      .altcodes-table th,
      .altcodes-table td {
        padding: 9px 6px;
        font-size: 12px;
      }

      .symbol-col {
        width: 62px;
      }

      .alt-col {
        width: 104px;
      }

      .details-col {
        width: 44px;
        max-width: 44px;
      }

      .symbol-box {
        width: 44px;
        height: 42px;
        font-size: 24px;
      }

      .details-toggle,
      .acs-tool-alt-codes-table .details-toggle {
        width: 32px;
        height: 32px;
        min-width: 32px;
        max-width: 32px;
        min-height: 32px;
        max-height: 32px;
        font-size: 20px;
      }

      .copy-btn {
        width: 100%;
        margin-right: 0;
      }
    }