@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Courier+Prime:wght@400;700&display=swap');

    body {
      font-family: 'Inter', sans-serif;
      background-color: #f1f5f9;
      color: #0f172a;
    }

    /* Latar papan catur halus untuk preview TTD transparan */
    .checkerboard-bg {
      background-color: #f8fafc;
      background-image:
        linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
        linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
      background-size: 14px 14px;
      background-position: 0 0, 0 7px, 7px -7px, -7px 0;
    }

    /* Bingkai dash-dot resmi sesuai gambar referensi */
    .poster-frame {
      border: 4px dashed #111827;
      background: #ffffff;
      position: relative;
      transform-origin: top left;
      box-sizing: border-box;
    }
    .poster-frame::after {
      content: "";
      position: absolute;
      inset: 6px;
      border: 2px solid #111827;
      pointer-events: none;
      z-index: 5;
    }

    .org-box {
      border: 2px solid #111827;
      background: #ffffff;
      box-shadow: 0 2px 4px rgba(0,0,0,0.08);
      transition: transform 0.15s ease, box-shadow 0.15s ease;
      cursor: pointer;
      position: relative;
      z-index: 2;
    }
    .org-box:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 14px rgba(220, 38, 38, 0.24);
    }
    .org-box-header {
      background: #dc2626;
      color: #ffffff;
      font-weight: 800;
      font-size: 11px;
      letter-spacing: 0.03em;
      text-align: center;
      padding: 5px 6px;
      border-bottom: 2px solid #111827;
      text-transform: uppercase;
      line-height: 1.2;
    }
    .org-box-body {
      min-height: 40px;
      padding: 7px 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      font-weight: 700;
      font-size: 11.5px;
      color: #111827;
      text-align: center;
      line-height: 1.35;
      background: #ffffff;
      overflow: visible;
    }
    .org-box-name {
      display: block;
      line-height: 1.35;
      padding: 1px 0;
      word-break: break-word;
      overflow: visible;
    }

    /* Tema Poster Merah Putih Garuda */
    .poster-frame.theme-garuda-redwhite {
      border: 6px solid #b91c1c;
      border-radius: 26px;
      background: radial-gradient(circle at 50% 48%, #ffffff 42%, #fff7ed 78%, #fee2e2 100%);
      overflow: hidden;
    }
    .poster-frame.theme-garuda-redwhite::after {
      inset: 7px;
      border: 2.5px solid #d97706;
      border-radius: 19px;
    }
    .poster-frame.theme-custom-bg {
      border: 4px solid #991b1b;
      border-radius: 20px;
      background-size: cover;
      background-position: center;
      overflow: hidden;
    }
    .poster-frame.theme-custom-bg::after {
      inset: 6px;
      border: 2px solid #f59e0b;
      border-radius: 14px;
    }

    /* Kartu Pengurus Foto Samping (Proporsi Presisi & Teks Jelas) */
    .org-box.card-side-photo {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 7px 10px;
      min-height: 86px;
      border: 2px solid #991b1b;
      border-radius: 12px;
      background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
      box-shadow: 0 3px 8px rgba(153, 27, 27, 0.14);
      text-align: left;
    }
    .org-box.card-side-photo .side-photo-box {
      width: 56px;
      height: 72px;
      min-width: 56px;
      min-height: 72px;
      border-radius: 7px;
      border: 1.5px solid #d97706;
      background: #dc2626;
      overflow: hidden;
      flex-shrink: 0;
    }
    .org-box.card-side-photo .side-photo-box img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center center;
      display: block;
    }
    .org-box.card-side-photo .side-photo-placeholder {
      width: 56px;
      height: 72px;
      min-width: 56px;
      min-height: 72px;
      border-radius: 7px;
      border: 1.5px dashed #cbd5e1;
      background: #f8fafc;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      font-weight: 800;
      color: #94a3b8;
      flex-shrink: 0;
    }
    .org-box.card-side-photo .side-info {
      min-width: 0;
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .org-box.card-side-photo .side-num {
      display: inline-block;
      font-size: 11px;
      font-weight: 900;
      color: #b45309;
      line-height: 1.1;
      letter-spacing: 0.03em;
    }
    .org-box.card-side-photo .side-role {
      font-size: 10.5px;
      font-weight: 900;
      color: #dc2626;
      text-transform: uppercase;
      line-height: 1.2;
      margin-top: 2px;
      letter-spacing: 0.01em;
    }
    .org-box.card-side-photo .side-name {
      font-size: 12.5px;
      font-weight: 900;
      color: #0f172a;
      line-height: 1.25;
      margin-top: 4px;
      word-break: break-word;
    }

    .garuda-title-plaque {
      background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
      border: 3px solid #fbbf24;
      border-radius: 18px;
      box-shadow: 0 8px 20px rgba(153, 27, 27, 0.3);
      padding: 36px 24px 14px 24px;
      color: #ffffff;
      position: relative;
      z-index: 10;
    }
    .garuda-motto-ribbon {
      background: linear-gradient(90deg, #d97706 0%, #fcd34d 50%, #d97706 100%);
      border: 2px solid #991b1b;
      border-radius: 999px;
      color: #450a0a;
      font-weight: 900;
      font-size: 12px;
      letter-spacing: 0.14em;
      padding: 4px 22px;
      box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    }
    .garuda-footer-ribbon {
      background: linear-gradient(90deg, #7f1d1d 0%, #dc2626 50%, #7f1d1d 100%);
      border: 2.5px solid #fbbf24;
      border-radius: 999px;
      color: #fef08a;
      font-weight: 900;
      font-size: 14px;
      letter-spacing: 0.1em;
      padding: 6px 30px;
      box-shadow: 0 4px 12px rgba(127, 29, 29, 0.3);
    }

    /* Dokumen A4 Formulir & Lampiran */
    .a4-sheet {
      width: 210mm;
      min-height: 297mm;
      background: #ffffff;
      color: #000000;
      padding: 13mm 18mm;
      margin: 0 auto 24px auto;
      box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
      box-sizing: border-box;
      position: relative;
    }

    .form-mono {
      font-family: 'Courier Prime', 'Courier New', Courier, monospace;
      font-size: 11pt;
      line-height: 1.38;
      color: #000000;
    }

    @media print {
      * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
      }
      html, body {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
      }
      .no-print {
        display: none !important;
      }
      body:not(.printing-poster-mode) > *:not(main),
      body:not(.printing-poster-mode) main > *:not(#tab-cetak),
      body:not(.printing-poster-mode) #tab-cetak > *:not(#printPreviewContainer) {
        display: none !important;
      }
      body:not(.printing-poster-mode) main {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
      }
      .print-only-container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
        overflow: visible !important;
      }
      .a4-sheet {
        margin: 0 auto !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: 194mm !important;
        height: auto !important;
        min-height: 270mm !important;
        max-height: none !important;
        padding: 8mm 10mm !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        page-break-after: always;
        break-after: page;
      }
      .a4-sheet:last-child {
        page-break-after: auto;
        break-after: auto;
      }
      .a4-sheet .poster-frame.theme-garuda-redwhite {
        background: #fffcf7 !important;
        border-radius: 0 !important;
        overflow: visible !important;
      }
      .a4-sheet .poster-frame.theme-garuda-redwhite::after {
        border-radius: 0 !important;
      }
      .a4-sheet svg, .a4-sheet img {
        filter: none !important;
      }
      .poster-print-area {
        box-shadow: none !important;
        margin: 0 auto !important;
      }

      /* Mode Cetak Bagan 1 Halaman Penuh (Muat Portrait ISO A4s & Landscape) */
      html.printing-poster-html,
      body.printing-poster-mode {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
      }
      body.printing-poster-mode > *:not(main),
      body.printing-poster-mode main > *:not(#tab-bagan),
      body.printing-poster-mode #tab-bagan > *:not(#posterScrollWrapper) {
        display: none !important;
      }
      body.printing-poster-mode #posterScrollWrapper {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #ffffff !important;
        z-index: 99999 !important;
      }
      body.printing-poster-mode #posterScaleHolder {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
      }
      body.printing-poster-mode #posterCaptureArea {
        flex-shrink: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        transform-origin: center center !important;
      }
    }
      .no-scrollbar::-webkit-scrollbar { display: none; }
    .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
    button, select, input, label { touch-action: manipulation; }
  
    @keyframes ip555LedSpin {
      0% { transform: translate(-50%, -50%) rotate(0deg); }
      100% { transform: translate(-50%, -50%) rotate(360deg); }
    }
    .tab-btn {
      position: relative;
      z-index: 1;
    }
    .tab-led-active {
      overflow: hidden;
      background: #7f1d1d !important;
      color: #ffffff !important;
      box-shadow: 0 0 12px rgba(239, 68, 68, 0.55), 0 0 4px rgba(251, 191, 36, 0.45);
    }
    .tab-led-active::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: 240%;
      aspect-ratio: 1 / 1;
      background: conic-gradient(
        from 0deg,
        transparent 0deg 200deg,
        #ef4444 255deg,
        #fbbf24 315deg,
        #ffffff 345deg,
        #ef4444 360deg
      );
      animation: ip555LedSpin 2.2s linear infinite;
      z-index: -2;
      pointer-events: none;
    }
    .tab-led-active::after {
      content: "";
      position: absolute;
      inset: 2px;
      border-radius: 6px;
      background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
      z-index: -1;
      pointer-events: none;
    html, body {
      max-width: 100%;
      overflow-x: hidden;
      overflow-x: clip;
    }
    main, section[id^="tab-"] {
      min-width: 0 !important;
      max-width: 100% !important;
    }
    select {
      max-width: 100%;
    }
    @media (max-width: 480px) {
      #printPreviewContainer .a4-sheet {
        zoom: 0.41;
      }
    }
    @media (min-width: 481px) and (max-width: 820px) {
      #printPreviewContainer .a4-sheet {
        zoom: 0.65;
      }
    }
  }

    #hadesCoreLoadingOverlay {
      position: fixed;
      inset: 0;
      z-index: 99999;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(15, 23, 42, 0.78);
      backdrop-filter: blur(4px);
    }
    #hadesCoreLoadingOverlay.active {
      display: flex;
    }
    .hades-typer-card {
      width: 100%;
      max-width: 440px;
      border-radius: 18px;
      border: 1px solid rgba(251, 191, 36, 0.45);
      background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
      color: #f8fafc;
      padding: 20px 22px;
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    }
    .hades-typer-line1 {
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.08em;
      color: #fbbf24;
      min-height: 18px;
      white-space: pre-wrap;
    }
    .hades-typer-line2 {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.05em;
      color: #e2e8f0;
      margin-top: 6px;
      min-height: 18px;
      white-space: pre-wrap;
    }
    .hades-typer-wait {
      margin-top: 12px;
      font-size: 11px;
      font-weight: 600;
      color: #38bdf8;
      min-height: 16px;
    }
    .hades-typer-cursor::after {
      content: '▋';
      display: inline-block;
      margin-left: 2px;
      animation: hadesBlink 0.75s infinite;
      color: #fbbf24;
    }
    @keyframes hadesBlink {
      0%, 49% { opacity: 1; }
      50%, 100% { opacity: 0; }
    }


    .hades-typer-card {
      position: relative;
      overflow: visible !important;
      margin-top: 38px;
    }
    .nailong-track {
      position: absolute;
      top: -42px;
      left: 14px;
      right: 14px;
      height: 44px;
      pointer-events: none;
      overflow: visible;
    }
    .nailong-runner {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 54px;
      height: 44px;
      animation: nailongPatrol 3.2s linear infinite;
    }
    .nailong-body-bob {
      width: 100%;
      height: 100%;
      animation: nailongBob 0.28s ease-in-out infinite alternate;
      transform-origin: center bottom;
    }
    .nailong-leg-left {
      transform-origin: 21px 33px;
      animation: nailongLegA 0.28s ease-in-out infinite alternate;
    }
    .nailong-leg-right {
      transform-origin: 33px 33px;
      animation: nailongLegB 0.28s ease-in-out infinite alternate;
    }
    .nailong-tail {
      transform-origin: 12px 27px;
      animation: nailongTailWag 0.35s ease-in-out infinite alternate;
    }
    @keyframes nailongPatrol {
      0% {
        left: 0%;
        transform: translateX(0) scaleX(1);
      }
      47% {
        left: calc(100% - 54px);
        transform: translateX(0) scaleX(1);
      }
      50% {
        left: calc(100% - 54px);
        transform: translateX(0) scaleX(-1);
      }
      97% {
        left: 0%;
        transform: translateX(0) scaleX(-1);
      }
      100% {
        left: 0%;
        transform: translateX(0) scaleX(1);
      }
    }
    @keyframes nailongBob {
      0% { transform: translateY(0px) rotate(-2deg); }
      100% { transform: translateY(-4px) rotate(2deg); }
    }
    @keyframes nailongLegA {
      0% { transform: rotate(-24deg); }
      100% { transform: rotate(24deg); }
    }
    @keyframes nailongLegB {
      0% { transform: rotate(24deg); }
      100% { transform: rotate(-24deg); }
    }
    @keyframes nailongTailWag {
      0% { transform: rotate(-10deg); }
      100% { transform: rotate(12deg); }
    }

@media screen {
    body {
      background-color: #eef2f7;
      background-image:
        radial-gradient(at 0% 0%, rgba(220, 38, 38, 0.06) 0px, transparent 48%),
        radial-gradient(at 100% 0%, rgba(245, 158, 11, 0.07) 0px, transparent 48%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
      color: #0f172a;
      -webkit-font-smoothing: antialiased;
    }

    /* Header Obsidian-Crimson + Garis Emas Tipis */
    .ip555-navbar {
      background: linear-gradient(135deg, #090d16 0%, #151e30 58%, #261118 100%) !important;
      border-bottom: 1px solid rgba(251, 191, 36, 0.32) !important;
      box-shadow: 0 10px 28px -6px rgba(9, 13, 22, 0.45) !important;
    }
    .ip555-navbar img {
      box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.45), 0 4px 12px rgba(0, 0, 0, 0.35);
    }
    .ip555-navbar nav {
      background: rgba(7, 10, 18, 0.72) !important;
      border: 1px solid rgba(148, 163, 184, 0.16);
      box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
    }

    /* Bar Pilihan Tingkat & Wilayah Frosted */
    .ip555-subbar {
      background: rgba(255, 255, 255, 0.86) !important;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(203, 213, 225, 0.85) !important;
      box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    }
    .ip555-subbar select {
      border-radius: 11px;
      border-color: #cbd5e1;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }
    .ip555-subbar select:focus {
      border-color: #dc2626;
      box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
    }

    /* Kartu & Kontainer Mengambang Halus */
    main section > div.bg-white,
    #dpssCandidatePanel {
      border-color: rgba(226, 232, 240, 0.95) !important;
      box-shadow: 0 6px 24px -4px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    }

    /* Kartu Statistik KPI */
    #statTotal, #statFilled, #statEmpty, #statDocs {
      font-variant-numeric: tabular-nums;
      letter-spacing: -0.02em;
    }
    #tab-data .grid > div.rounded-xl {
      position: relative;
      overflow: hidden;
      transition: transform 0.18s ease, box-shadow 0.18s ease;
    }
    #tab-data .grid > div.rounded-xl:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 18px -6px rgba(15, 23, 42, 0.12);
    }

    /* Meja Kanvas Bagan (Studio Dot Grid di Layar, Polos saat Cetak/PNG) */
    .ip555-studio-bg {
      background-color: #e8edf4;
      background-image: radial-gradient(#bfd0e6 1.15px, transparent 1.15px);
      background-size: 16px 16px;
      border: 1px solid #cbd5e1;
      border-radius: 18px;
      padding: 14px;
      box-shadow: inset 0 2px 8px rgba(15, 23, 42, 0.06);
    }
    #posterCaptureArea {
      box-shadow: 0 18px 40px -10px rgba(15, 23, 42, 0.22), 0 4px 12px rgba(15, 23, 42, 0.08) !important;
    }

    /* Interaksi Kotak Jabatan di Layar */
    .org-box {
      border-radius: 4px;
      overflow: hidden;
      transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    }
    .org-box:hover {
      transform: translateY(-2px);
      border-color: #b91c1c;
      box-shadow: 0 8px 18px -4px rgba(185, 28, 28, 0.28), 0 0 0 2px rgba(251, 191, 36, 0.45);
    }
    .org-box-header {
      background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%) !important;
      text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
    }

    /* Tabel Anggota & Calon Lebih Rapi */
    table thead {
      background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%) !important;
      border-bottom: 2px solid #d97706;
    }
    table tbody tr {
      transition: background-color 0.14s ease;
    }
    table tbody tr:hover {
      background-color: #f8fafc !important;
    }

    /* Tombol & Input Modern */
    button {
      transition: transform 0.12s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    }
    button:active:not(:disabled) {
      transform: scale(0.98);
    }
    input[type="text"], input[type="password"], input[type="number"], textarea {
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }
    input[type="text"]:focus, input[type="password"]:focus, input[type="number"]:focus, textarea:focus {
      border-color: #dc2626 !important;
      box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.13) !important;
    }

    /* Scrollbar Halus */
    ::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    ::-webkit-scrollbar-track {
      background: transparent;
    }
    ::-webkit-scrollbar-thumb {
      background: rgba(100, 116, 139, 0.35);
      border-radius: 999px;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: rgba(71, 85, 105, 0.55);
    }
  }

.ip555-ss-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
  }
  .ip555-ss-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
  }
  .ip555-ss-trigger:hover:not(:disabled) {
    border-color: #94a3b8;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
  }
  .ip555-ss-trigger:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    background: #f1f5f9;
  }
  .ip555-ss-trigger.is-amber {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
    color: #78350f;
  }
  .ip555-ss-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--ip555-vvh, 100dvh);
    background: rgba(9, 13, 22, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 10px 10px 8px 10px;
    box-sizing: border-box;
  }
  @media (min-width: 640px) {
    .ip555-ss-backdrop {
      align-items: center;
      padding: 16px;
    }
  }
  .ip555-ss-backdrop.open {
    display: flex;
    animation: ip555FadeIn 0.15s ease-out;
  }
  @keyframes ip555FadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes ip555ModalNeonSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
  }
  /* Frame Neon Berputar di Sekeliling Popup */
  .ip555-ss-neon-shell {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 100%;
    padding: 2.5px;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.45), 0 0 12px rgba(251, 191, 36, 0.35), 0 20px 45px rgba(0, 0, 0, 0.55);
  }
  .ip555-ss-neon-shell::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220%;
    aspect-ratio: 1 / 1;
    background: conic-gradient(
      from 0deg,
      #7f1d1d 0deg 140deg,
      #ef4444 210deg,
      #fbbf24 285deg,
      #ffffff 330deg,
      #ef4444 360deg
    );
    animation: ip555ModalNeonSpin 2.8s linear infinite;
    z-index: 0;
    pointer-events: none;
  }
  .ip555-ss-modal {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 100%;
    background: #ffffff;
    border-radius: 19.5px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .ip555-ss-header {
    background: linear-gradient(135deg, #090d16 0%, #151e30 60%, #261118 100%);
    color: #ffffff;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
    shrink: 0;
  }
  .ip555-ss-search-box {
    position: relative;
    margin-top: 8px;
  }
  .ip555-ss-search-input {
    width: 100%;
    padding: 8px 34px 8px 32px;
    border-radius: 11px;
    border: 1px solid rgba(251, 191, 36, 0.45);
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    outline: none;
  }
  .ip555-ss-search-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
  }
  .ip555-ss-search-input:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.22);
  }
  .ip555-ss-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 7px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #f8fafc;
  }
  .ip555-ss-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 11px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.14s ease;
    text-align: left;
  }
  .ip555-ss-item:hover {
    border-color: #fca5a5;
    background: #fff1f2;
  }
  .ip555-ss-item.selected {
    background: linear-gradient(135deg, #fef2f2 0%, #fffbeb 100%);
    border-color: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.12);
    color: #991b1b;
  }
  .ip555-cand-card {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 11px 13px; border-radius: 14px; background: #ffffff;
    border: 1.5px solid #e2e8f0; transition: all 0.15s ease;
  }
  .ip555-cand-card:hover { border-color: #fca5a5; background: #fffafb; box-shadow: 0 3px 10px rgba(15,23,42,0.04); }
  .ip555-cand-card.is-checked {
    background: linear-gradient(135deg, #fef2f2 0%, #fffbeb 100%);
    border-color: #dc2626; box-shadow: 0 4px 14px rgba(220,38,38,0.12);
  }
  .ip555-cand-card.is-checked .ip555-ss-badge-num { background: #dc2626; color: #ffffff; }
  .ip555-ss-badge-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 23px;
    padding: 0 6px;
    border-radius: 7px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    shrink: 0;
  }
  .ip555-ss-item.selected .ip555-ss-badge-num {
    background: #dc2626;
    color: #ffffff;
  }

@media screen {
    @keyframes ip555TableNeonSpin {
      0% { transform: translate(-50%, -50%) rotate(0deg); }
      100% { transform: translate(-50%, -50%) rotate(360deg); }
    }

    /* Bingkai Neon Berputar di Sekeliling Kontainer Tabel */
    .ip555-neon-table-shell {
      position: relative;
      padding: 2.5px;
      border-radius: 22px;
      overflow: hidden;
      box-shadow: 0 0 20px rgba(239, 68, 68, 0.25), 0 0 10px rgba(251, 191, 36, 0.22), 0 12px 28px -8px rgba(15, 23, 42, 0.14);
    }
    .ip555-neon-table-shell::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: 240%;
      aspect-ratio: 1 / 1;
      background: conic-gradient(
        from 0deg,
        transparent 0deg 175deg,
        #ef4444 235deg,
        #fbbf24 300deg,
        #ffffff 340deg,
        #ef4444 360deg
      );
      animation: ip555TableNeonSpin 3.4s linear infinite;
      z-index: 0;
      pointer-events: none;
    }
    .ip555-neon-table-inner {
      position: relative;
      z-index: 1;
      background: #ffffff;
      border-radius: 19.5px;
      overflow: hidden;
    }

    /* Merapikan Tabel Agar Lebih Elegan & Tidak Terlalu Kaku */
    .ip555-neon-table-inner .overflow-x-auto {
      border: none !important;
      border-radius: 0 !important;
      background: #ffffff;
    }
    .ip555-neon-table-inner table {
      border-collapse: separate !important;
      border-spacing: 0 !important;
    }
    .ip555-neon-table-inner thead {
      background: linear-gradient(135deg, #090d16 0%, #151e30 65%, #261118 100%) !important;
      border-bottom: none !important;
    }
    .ip555-neon-table-inner thead th {
      position: relative;
      padding-top: 11px !important;
      padding-bottom: 11px !important;
      font-size: 10.5px !important;
      letter-spacing: 0.06em;
      color: #f8fafc !important;
      border-bottom: 2px solid rgba(251, 191, 36, 0.55) !important;
    }
    .ip555-neon-table-inner tbody tr {
      background-color: #ffffff;
      transition: background-color 0.16s ease, transform 0.16s ease;
    }
    .ip555-neon-table-inner tbody tr:nth-child(even) {
      background-color: #fafbfd;
    }
    .ip555-neon-table-inner tbody tr:hover {
      background-color: #fff5f5 !important;
    }
    .ip555-neon-table-inner tbody td {
      padding-top: 12px !important;
      padding-bottom: 12px !important;
      border-bottom: 1px solid #eef2f6 !important;
      vertical-align: middle;
    }
    .ip555-neon-table-inner tbody tr:last-child td {
      border-bottom: none !important;
    }

    /* Foto & Thumbnail Lebih Halus Sudutnya */
    .ip555-neon-table-inner tbody img {
      border-radius: 12px !important;
      box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
      border: 1.5px solid #e2e8f0 !important;
      transition: transform 0.16s ease, border-color 0.16s ease;
    }
    .ip555-neon-table-inner tbody tr:hover img {
      transform: scale(1.04);
      border-color: #f59e0b !important;
    }

    /* Tombol Aksi di Tabel Lebih Rapi & Berjarak */
    .ip555-neon-table-inner tbody button {
      border-radius: 10px !important;
      box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    }
  }

@keyframes ip555Spin { to { transform: rotate(360deg); } }
@keyframes ip555Slide {
  0% { transform: translateX(-100%); width: 40%; }
  50% { transform: translateX(80%); width: 60%; }
  100% { transform: translateX(250%); width: 40%; }
}

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

@keyframes hadesSpinRing {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    @keyframes hadesPulseDots {
      0%, 100% { opacity: 0.45; transform: scale(0.98); }
      50% { opacity: 1; transform: scale(1.01); }
    }
    @media print {
      #hadesPrintLoadingOverlay {
        display: none !important;
        visibility: hidden !important;
      }
    }
