 :root {
      --bg: #f6f8fc;
      --card: #ffffff;
      --primary: #159DAB;
      --primary-light: #159DAB ;
      --secondary: #F4B401d;
      --text: #1f2937;
      --muted: #6b7280;
      --border: #e5e7eb;
      --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
      --head: #0f172a;
      --hover: #f8fbff;
      --principal: #7c3aed;
      --tgt: #2563eb;
      --prt: #16a34a;
      --pprt: #f15921;
    }


    .page {
      max-width: 1400px;
      margin: 0 auto;
      padding: 24px;
    }

    .card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 20px;
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .hero {
      position: relative;
      margin-bottom: 18px;
      background: linear-gradient(135deg, #ffffff, #f8fbff);
    }

    .hero::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 5px;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
    }

    .hero-inner {
      padding: 28px;
      display: flex;
      justify-content: space-between;
      gap: 18px;
      align-items: center;
      flex-wrap: wrap;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 16px;
      flex: 1;
      min-width: 280px;
    }

    .logo {
      width: 68px;
      height: 68px;
      border-radius: 18px;
      display: grid;
      place-items: center;
      font-weight: 800;
      color: white;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
      flex-shrink: 0;
    }

    .hero-text h1 {
      margin: 0;
      color: var(--head);
      font-size: clamp(1.5rem, 3vw, 2.4rem);
      line-height: 1.15;
    }

    .hero-text h2 {
      margin: 6px 0 8px;
      color: #3a3b3d;
      font-size: 25px;
      font-weight: 600;
    }

    .hero-text p {
      margin: 2px 0;
      color: var(--muted);
      line-height: 1.55;
      font-size: 0.95rem;
    }

    .tag {
      padding: 12px 16px;
      border-radius: 999px;
      background: var(--primary-light);
      color:white;
      border: 1px solid #dbeafe;
      font-weight: 700;
      white-space: nowrap;
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 16px;
      margin-bottom: 18px;
    }

    .stat {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 18px;
      box-shadow: var(--shadow);
      padding: 18px;
    }

    .stat .label {
      color: var(--muted);
      font-size: 0.92rem;
      margin-bottom: 8px;
    }

    .stat .value {
      font-size: 1.7rem;
      font-weight: 800;
      color: var(--primary);
      line-height: 1.1;
    }

    .toolbar {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      align-items: center;
      padding: 16px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 18px;
      box-shadow: var(--shadow);
      margin-bottom: 18px;
    }

    .toolbar .left,
    .toolbar .right {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      align-items: center;
    }

    .field {
      min-width: 260px;
      padding: 13px 16px;
      border-radius: 12px;
      border: 1px solid var(--border);
      outline: none;
      font-size: 0.95rem;
      background: #fff;
      color: var(--text);
    }

    .field:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    }

    .btn {
      border: none;
      cursor: pointer;
      padding: 12px 16px;
      border-radius: 12px;
      font-weight: 700;
      font-size: 0.95rem;
      transition: 0.2s ease;
      white-space: nowrap;
    }

    .btn:hover {
      transform: translateY(-1px);
    }

    .btn-primary {
      background: var(--primary);
      color: white;
    }

    .btn-primary:hover {
      background: #1d4ed8;
    }

    .btn-secondary {
      background: #f8fafc;
      color: var(--text);
      border: 1px solid var(--border);
    }

    .btn-secondary:hover {
      background: #eef4ff;
    }

    .table-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 20px;
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .table-top {
      padding: 18px 20px;
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      background: #fbfdff;
    }

    .table-top h3 {
      margin: 0;
      font-size: 1.05rem;
      color: var(--head);
    }

    .table-top p {
      margin: 4px 0 0;
      color: var(--muted);
      font-size: 0.9rem;
    }

    .result-info {
      color: var(--muted);
      font-size: 0.92rem;
    }

    .table-wrap {
      width: 100%;
      overflow-x: auto;
    }

    table {
      width: 100%;
      min-width: 860px;
      border-collapse: collapse;
    }

    thead th {
      position: sticky;
      top: 0;
      z-index: 1;
      background: var(--head);
      color: white;
      text-align: left;
      padding: 15px 18px;
      font-size: 0.92rem;
      white-space: nowrap;
    }

    tbody td {
      padding: 15px 18px;
      border-bottom: 1px solid var(--border);
      font-size: 0.95rem;
      color: #334155;
    }

    tbody tr:nth-child(even) {
      background: #fbfdff;
    }

    tbody tr:hover {
      background: var(--hover);
    }

    tbody tr:last-child td {
      border-bottom: none;
    }

    .slno {
      font-weight: 800;
      color: var(--primary);
      width: 80px;
    }

    .name-cell {
      font-weight: 600;
      color: #111827;
    }

    .pill {
      display: inline-block;
      padding: 6px 10px;
      border-radius: 999px;
      font-size: 0.82rem;
      font-weight: 700;
      white-space: nowrap;
      border: 1px solid transparent;
    }

    .pill.principal {
      background: rgba(124, 58, 237, 0.12);
      color: var(--principal);
      border-color: rgba(124, 58, 237, 0.18);
    }

    .pill.tgt {
      background: rgba(37, 99, 235, 0.12);
      color: var(--tgt);
      border-color: rgba(37, 99, 235, 0.18);
    }

    .pill.prt {
      background: rgba(22, 163, 74, 0.12);
      color: var(--prt);
      border-color: rgba(22, 163, 74, 0.18);
    }

    .pill.pprt {
      background: rgba(245, 158, 11, 0.14);
      color: #b45309;
      border-color: rgba(245, 158, 11, 0.22);
    }

    .empty {
      display: none;
      padding: 42px 20px;
      text-align: center;
      color: var(--muted);
    }

    .empty h3 {
      margin: 0 0 8px;
      color: var(--head);
    }

    .footer-note {
      margin-top: 14px;
      color: var(--muted);
      font-size: 0.9rem;
      text-align: center;
    }

    @media (max-width: 1100px) {
      .stats {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 700px) {
      .page {
        padding: 16px;
      }

      .hero-inner,
      .toolbar {
        padding: 16px;
      }

      .card,
      .hero,
      .toolbar {
        border-radius: 16px;
      }

      .brand {
        align-items: flex-start;
      }

      .stats {
        grid-template-columns: 1fr;
      }

      .toolbar {
        flex-direction: column;
        align-items: stretch;
      }

      .toolbar .left,
      .toolbar .right {
        width: 100%;
      }

      .field {
        width: 100%;
        min-width: 100%;
      }

      .btn {
        width: 100%;
      }

      .table-top {
        align-items: flex-start;
      }
    }

    @media print {
      body {
        background: #fff;
      }

      .toolbar,
      .stats,
      .footer-note {
        display: none !important;
      }

      .page {
        max-width: none;
        padding: 0;
      }

      .card {
        box-shadow: none;
        border: none;
        border-radius: 0;
      }

      thead th {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
      }
    }