/* SIPETEKES - gaya utama (dipindah dari index.html, isi tidak diubah) */

    :root {
      --primary-color: #10b981;
      --primary-hover: #059669;
      --secondary-color: #34d399;
      --bg-light: #ecfdf5;
      --card-bg: #ffffff;
    }
    
    body{
      background:
        linear-gradient(
          180deg,
          #ecfdf5 0%,
          #f8fafc 100%
        );

      font-family:
        Inter,
        Segoe UI,
        sans-serif;
    }

    /* Utilitas */
    .d-none { display: none !important; }
    .text-primary-custom { color: var(--primary-color) !important; }
    .bg-primary-custom { background-color: var(--primary-color) !important; color: white; }
    .btn-primary-custom { background-color: var(--primary-color); border-color: var(--primary-color); color: white; }
    .btn-primary-custom:hover { background-color: var(--primary-hover); border-color: var(--primary-hover); color: white; }

    /* CSS Berita Kampus */
    .news-card { border: none; border-radius: 16px; overflow: hidden; transition: 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.04); background: #fff; cursor: pointer; height: 100%; display: flex; flex-direction: column; }
    .news-card:active, .news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(124,58,237,0.1); }
    .news-thumb { width: 100%; height: 160px; object-fit: cover; background-color: #f1f5f9; transition: opacity 0.3s; }
    .news-thumb[loading] { filter: blur(5px); }
    .news-badge { position: absolute; top: 12px; left: 12px; font-weight: 700; font-size: 0.65rem; padding: 0.3rem 0.8rem; border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); z-index: 2; text-transform: uppercase; letter-spacing: 0.5px; background: rgba(255,255,255,0.95); color: var(--primary-color); }
    .news-badge.penting { background: #ef4444; color: white; right: 12px; left: auto; }
    .news-detail-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 10px 0; }
    
    /* Skeleton Loader */
    .skeleton { background: #e2e8f0; border-radius: 4px; animation: pulse 1.5s infinite ease-in-out; }
    @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }
    
    /* Layout Roots */
    .auth-page, .public-shell { min-height: 100vh; display: flex; flex-direction: column; }
    .app-shell { min-height: 100vh; display: flex; }
    
    /* CSS Judul */
    .hero-section h1{
      letter-spacing:1px;
      font-weight:800;
    }

    .hero-section .lead{
      font-size:1.5rem;
      opacity:.95;
    }
    /* Public Portal */
    .hero-section{
      background:
        linear-gradient(
          135deg,
          #059669 0%,
          #10b981 30%,
          #34d399 70%,
          #6ee7b7 100%
        );
    
      color:white;
      padding:90px 0 120px;
      text-align:center;
      position:relative;
      overflow:hidden;
    }
    .hero-section::before{
      content:'';
      position:absolute;
      width:600px;
      height:600px;
      background:rgba(255,255,255,.08);
      border-radius:50%;
      top:-300px;
      right:-150px;
    }

    .hero-section::after{
      content:'';
      position:absolute;
      width:500px;
      height:500px;
      background:rgba(255,255,255,.05);
      border-radius:50%;
      bottom:-250px;
      left:-100px;
    }

    .hero-description{
      max-width: 850px;
      margin: 25px auto 0;
      font-size: 1.15rem;
      line-height: 1.8;
      font-weight: 400;
      color: rgba(255,255,255,.92);
      text-align: center;
    }

    .hero-section .lead{
      font-size: 1.8rem;
      font-weight: 300;
      margin-top: 10px;
    }

    .hero-section h1{
      font-weight: 800;
      letter-spacing: 1px;
    }
    .service-card{
      border: 1px solid rgba(124, 58, 237, 0.05);
      border-radius: 24px;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);

      box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05), 
        0 10px 30px rgba(124, 58, 237, 0.08);

      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

      overflow: hidden;
      position: relative;
    }
    .service-card:hover{
      transform: translateY(-8px) scale(1.02);
      border-color: rgba(124, 58, 237, 0.15);
      box-shadow: 
        0 20px 40px rgba(124, 58, 237, 0.15), 
        0 0 20px rgba(124, 58, 237, 0.05);
    }
    .services-wrapper{
      margin-top:15px;
      position:relative;
      z-index:10;
    }
    .service-icon{
      font-size:3.2rem;
      margin-bottom:20px;
    }
    .service-card::before{
      content:'';
      position:absolute;
      top:0;
      left:0;
      width:100%;
      height:5px;

      background:
        linear-gradient(
          90deg,
          var(--primary-color),
          var(--secondary-color)
        );
    }

    .dashboard-card{
      cursor:pointer;
      transition:.3s ease;
    }

    .dashboard-card:hover{
      transform:translateY(-8px);
    }

    /* Baris daftar layanan bisa diklik untuk membuka detail */
    #tableBody tr[onclick], #adminProsesUmumBody tr[onclick], #adminProsesUjianBody tr[onclick], .dash-q-item, .aj-dash-row { cursor:pointer; }

    /* Form Area Modernized */
    .form-container {
      background: white;
      padding: 3rem 2.5rem;
      border-radius: 20px;
      box-shadow: 0 15px 35px rgba(109, 40, 217, 0.08);
      border: 1px solid rgba(124, 58, 237, 0.08);
      max-width: 800px;
      margin: 0 auto;
      position: relative;
    }
    .form-container::before {
      content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px;
      background: linear-gradient(90deg, var(--primary-color), #c084fc);
    }
    .form-label {
      font-weight: 600; color: #4b5563; font-size: 0.9rem; margin-bottom: 0.5rem;
    }
    .form-control, .form-select {
      border-radius: 12px; border: 1.5px solid #e2e8f0; padding: 0.75rem 1rem; font-size: 0.95rem; background-color: #f8fafc; transition: all 0.3s;
    }
    .form-control:focus, .form-select:focus {
      border-color: var(--secondary-color); box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15); background-color: #ffffff;
    }
    .form-control::file-selector-button {
      background: var(--bg-light); border: none; border-radius: 6px; color: var(--primary-hover); font-weight: 600; padding: 0.4rem 0.8rem; margin-right: 1rem; transition: background 0.2s;
    }
    .form-control::file-selector-button:hover { background: #e0d4fc; }
    
    .btn-submit-modern {
      background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 14px; padding: 1rem; font-weight: 700; letter-spacing: 0.5px;
      box-shadow: 0 8px 16px rgba(124, 58, 237, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2); 
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); color: white;
      position: relative;
      overflow: hidden;
    }
    .btn-submit-modern:hover {
      transform: translateY(-4px); 
      box-shadow: 0 15px 30px rgba(124, 58, 237, 0.4), 0 0 15px rgba(168, 85, 247, 0.3); 
      color: white;
    }
    .fade-in-up {
      animation: fadeInUp 0.5s ease-out both;
    }
    @keyframes fadeInUp {
      0% { opacity: 0; transform: translateY(20px); }
      100% { opacity: 1; transform: translateY(0); }
    }

    /* Sidebar Admin Ultra Modern */
    .sidebar {
      width: 280px; background: linear-gradient(180deg, #09090b 0%, #18181b 100%);
      box-shadow: 4px 0 25px rgba(0,0,0,0.15); flex-shrink: 0; display: flex; flex-direction: column;
      z-index: 1000; height: 100vh; overflow-y: auto; border-right: 1px solid rgba(255,255,255,0.05);
    }
    .sidebar-header {
      padding: 1.8rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); text-align: center;
      position: sticky; top: 0; background: rgba(9, 9, 11, 0.95); backdrop-filter: blur(10px); z-index: 10;
    }
    .sidebar-header h4 { color: #f8fafc !important; font-weight: 800; letter-spacing: 1px; }
    .sidebar-header small { color: #94a3b8 !important; letter-spacing: 2px; text-transform: uppercase; font-size: 0.7rem; }
    .nav-item-custom {
      padding: 0.85rem 1.2rem; color: #94a3b8; text-decoration: none; display: flex; align-items: center;
      gap: 14px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; font-size: 0.95rem;
      font-weight: 500; margin: 0.4rem 1.2rem; border-radius: 14px; position: relative; overflow: hidden;
    }
    .nav-item-custom i { width: 25px; text-align: center; transition: transform 0.3s; }
    .nav-item-custom:hover, .nav-item-custom.active {
      background: rgba(124, 58, 237, 0.15); color: #c4b5fd; border: 1px solid rgba(124, 58, 237, 0.25);
      box-shadow: 0 4px 15px rgba(124, 58, 237, 0.1); transform: translateX(5px);
    }
    .nav-item-custom.active {
      background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
      color: white; border: none; box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
    }
    .nav-item-custom:hover i, .nav-item-custom.active i { transform: scale(1.15); }
    .sidebar-heading {
      font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: #475569;
      margin: 1.8rem 1.5rem 0.8rem 1.5rem; font-weight: 800;
    }
    
    .main-content {
      flex-grow: 1; display: flex; flex-direction: column; min-width: 0; height: 100vh; overflow-y: auto;
      background-color: #f1f5f9; background-image: radial-gradient(#e2e8f0 1px, transparent 1px); background-size: 20px 20px;
    }
    .topbar {
      height: 60px; margin: 10px 15px; border-radius: 14px; box-shadow: 0 4px 15px rgba(0,0,0,0.03);
      background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
      display: flex; align-items: center; justify-content: space-between; padding: 0 1.2rem; position: sticky;
      top: 10px; z-index: 999; border: 1px solid rgba(255,255,255,0.6);
    }
    .topbar h5 { font-size: 1.05rem !important; }
    /* Judul panjang berjalan bolak-balik (marquee) */
    .judul-berjalan { overflow: hidden; white-space: nowrap; }
    .judul-berjalan.jalan { text-overflow: clip !important; }
    .judul-berjalan.jalan > .jb-isi { display: inline-block; animation: jbGeser var(--jb-dur, 8s) ease-in-out infinite alternate; will-change: transform; }
    @keyframes jbGeser { 0%, 18% { transform: translateX(0); } 82%, 100% { transform: translateX(var(--jb-jarak, 0px)); } }
    @media (prefers-reduced-motion: reduce) { .judul-berjalan.jalan > .jb-isi { animation: none; } .judul-berjalan.jalan { text-overflow: ellipsis !important; } }
    /* Modern Glass Table UI & Minimalist Layout */
    .table-responsive {
      border-radius: 16px; overflow: auto; -webkit-overflow-scrolling: touch;
      max-height: calc(100vh - 180px);
      box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid #e2e8f0; background: white;
    }
    
    /* Custom Scrollbar for minimal look */
    .table-responsive::-webkit-scrollbar { width: 6px; height: 6px; }
    .table-responsive::-webkit-scrollbar-track { background: transparent; }
    .table-responsive::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
    .table-responsive::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

    .table { margin-bottom: 0; white-space: nowrap; }
    .table-light th {
      position: sticky; top: 0; z-index: 10;
      font-weight: 700; color: #64748b; text-transform: uppercase; font-size: 0.75rem;
      letter-spacing: 0.5px; padding: 1.2rem 1rem; border-bottom: 1px solid #e2e8f0;
      background-color: rgba(248, 250, 252, 0.98); backdrop-filter: blur(5px);
    }
    .table tbody td { 
      padding: 1rem; border-bottom: 1px solid #f1f5f9; color: #475569; vertical-align: middle; font-size: 0.85rem;
      max-width: 250px; /* Kunci masalah: Batasi lebar maksimal agar tidak melar */
      overflow: hidden; text-overflow: ellipsis;
    }
    .table tbody td:last-child, .table tbody td:nth-last-child(2) {
      overflow: visible; /* Aksi dan Status tidak boleh terpotong */
    }
    .table-hover tbody tr { transition: all 0.2s ease; }
    .table-hover tbody tr:hover { background-color: #f8fafc; }
    .btn-action { border-radius: 8px; transition: all 0.2s; border-width: 1px; padding: 0.35rem 0.6rem; font-size: 0.8rem; }
    .btn-action:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
    
    /* Kotak Pencarian Modern Responsif */
    .search-box-modern .input-group-text { background: transparent; border-right: none; color: #94a3b8; }
    .search-box-modern .form-control { background: transparent; border-left: none; font-size: 0.85rem; box-shadow: none; }
    .search-box-modern .form-control:focus { border-color: transparent; }
    .search-box-modern { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 20px; transition: 0.3s; overflow: hidden; }
    .search-box-modern:focus-within { background: white; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1); }

    /* Loaders Modern */
    #fullPageLoader {
      position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
      background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
      z-index: 9999; display: flex; flex-direction: column; justify-content: center; align-items: center;
    }
    .loader-content-box {
      background: #ffffff; padding: 2.5rem 2rem; border-radius: 24px; text-align: center;
      box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3); max-width: 85%; width: 380px;
      display: flex; flex-direction: column; align-items: center;
      animation: popInLoader 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    @keyframes popInLoader {
      0% { transform: scale(0.9); opacity: 0; }
      100% { transform: scale(1); opacity: 1; }
    }
    
    /* --- LOADER UNGGAH BARU (cincin gradasi, bar progres, tips) --- */
    #fullPageLoader .loader-content-box { position: relative; overflow: hidden; padding: 2rem 1.75rem 1.6rem; border-radius: 26px; width: 400px; }
    #fullPageLoader .loader-content-box::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, #10b981, #06b6d4, #6366f1, #10b981); background-size: 200% 100%; animation: ldGeser 3s linear infinite; }
    #fullPageLoader .loader-content-box > .spinner-border { display: none !important; }
    .ld-cincin { position: relative; width: 92px; height: 92px; margin-bottom: .5rem; }
    .ld-cincin::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #10b981, #06b6d4, #6366f1, #10b981); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); animation: ldPutar 1.6s linear infinite; }
    .ld-cincin::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; background: radial-gradient(circle, rgba(16,185,129,.22), transparent 68%); animation: ldDenyut 2s ease-in-out infinite; z-index: -1; }
    .ld-ikon { position: absolute; inset: 14px; border-radius: 50%; background: linear-gradient(135deg, #ecfdf5, #eef2ff); display: flex; align-items: center; justify-content: center; font-size: 1.9rem; color: #059669; animation: ldMelayang 1.8s ease-in-out infinite; }
    .ld-bar { width: 100%; height: 10px; border-radius: 99px; background: #e2e8f0; overflow: hidden; margin-top: .9rem; position: relative; }
    .ld-bar-isi { height: 100%; width: 0%; border-radius: 99px; background: linear-gradient(90deg, #10b981, #06b6d4, #6366f1); transition: width .5s cubic-bezier(.22,1,.36,1); position: relative; }
    .ld-bar-isi::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); background-size: 60% 100%; background-repeat: no-repeat; animation: ldKilau 1.4s ease-in-out infinite; }
    .ld-bar.ld-tak-tentu .ld-bar-isi { width: 38% !important; animation: ldGeserBar 1.5s ease-in-out infinite; transition: none; }
    .ld-persen { font-size: 1.9rem; font-weight: 800; line-height: 1; margin-top: .85rem; background: linear-gradient(90deg, #059669, #4f46e5); -webkit-background-clip: text; background-clip: text; color: transparent; display: none; }
    .ld-tips { margin-top: 1rem; min-height: 2.4em; font-size: .8rem; line-height: 1.45; color: #64748b; transition: opacity .35s; }
    .ld-tips i { color: #f59e0b; margin-right: 4px; }
    @keyframes ldPutar { to { transform: rotate(360deg); } }
    @keyframes ldDenyut { 0%,100% { transform: scale(.92); opacity: .6; } 50% { transform: scale(1.08); opacity: 1; } }
    @keyframes ldMelayang { 0%,100% { transform: translateY(2px); } 50% { transform: translateY(-3px); } }
    @keyframes ldGeser { to { background-position: 200% 0; } }
    @keyframes ldKilau { 0% { background-position: -60% 0; } 100% { background-position: 160% 0; } }
    @keyframes ldGeserBar { 0% { margin-left: -38%; } 100% { margin-left: 100%; } }
    .modal-content { border-radius: 16px; border: none; box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
    .modal-header { padding: 1rem 1.25rem; border-bottom: 1px solid rgba(0,0,0,0.05); }
    .modal-title { font-size: 1.05rem !important; }
    .modal-body { padding: 1.25rem; font-size: 0.85rem; }
    .modal-body table { table-layout: auto !important; width: 100% !important; }
    .modal-body table th, .modal-body table td { font-size: 0.85rem !important; padding: 0.6rem !important; word-break: break-word; white-space: normal !important; }
    .modal-footer { padding: 0.8rem 1.25rem; border-top: 1px solid rgba(0,0,0,0.05); }
    
    .swal2-popup { border-radius: 16px !important; padding: 1.5rem !important; box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important; }
    .swal2-title { font-size: 1.15rem !important; margin-bottom: 0.5rem !important; }
    .swal2-html-container { font-size: 0.85rem !important; line-height: 1.5 !important; margin: 0.5rem 0 !important; }
    .swal2-html-container .form-control, .swal2-html-container .form-select { font-size: 0.85rem !important; padding: 0.5rem 0.8rem !important; border-radius: 10px !important; }
    /* FIX: Mencegah Select2 Dropdown tertimpa oleh tombol SweetAlert */
    .swal2-actions { z-index: 0 !important; } 
    .select2-container--open { z-index: 99999 !important; }

    /* ===== SIDEBAR V2 ===== */
    .sidebar { background: linear-gradient(180deg, #0b1215 0%, #0f1a17 100%); }
    .sidebar-header { background: rgba(11, 18, 21, 0.96); }

    .sidebar-search { position: sticky; top: var(--sb-header-h, 112px); z-index: 9; padding: 12px 14px 10px; background: rgba(11, 18, 21, 0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.05); }
    .sidebar-search .input-group { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; overflow: hidden; transition: 0.2s; }
    .sidebar-search .input-group:focus-within { border-color: rgba(16,185,129,0.6); box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
    .sidebar-search .input-group-text { background: transparent; border: none; color: #64748b; padding: 0 10px; }
    .sidebar-search .form-control { background: transparent !important; border: none !important; color: #e2e8f0 !important; font-size: 0.85rem !important; padding: 0.55rem 0.25rem !important; box-shadow: none !important; }
    .sidebar-search .form-control::placeholder { color: #64748b; }
    .sb-kbd { background: rgba(255,255,255,0.08); color: #94a3b8; border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; font-size: 0.7rem; padding: 1px 6px; }

    .sidebar-heading { display: flex; align-items: center; gap: 8px; color: #4b5563; margin: 1.1rem 1.4rem 0.45rem; font-size: 0.66rem; }
    .sidebar-heading::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.06); }

    .nav-item-custom { margin: 2px 12px; padding: 0.55rem 0.8rem; gap: 11px; font-size: 0.87rem; border: 1px solid transparent; white-space: nowrap; }
    .nav-item-custom:hover { background: rgba(16,185,129,0.10); color: #d1fae5; border-color: rgba(16,185,129,0.18); box-shadow: none; transform: translateX(3px); }
    .nav-item-custom.active { background: linear-gradient(135deg, #10b981, #059669); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(16,185,129,0.35); }
    .nav-item-custom.active::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 4px; border-radius: 0 4px 4px 0; background: #fff; }
    .nav-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }

    .nav-ico { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.85rem; }
    .nav-ico i { width: auto !important; }
    .nav-item-custom.active .nav-ico { background: rgba(255,255,255,0.22) !important; color: #fff !important; }

    .nav-group-head { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 11px; width: calc(100% - 24px); margin: 2px 12px; padding: 0.55rem 0.8rem; border-radius: 12px; color: #cbd5e1; font-weight: 700; font-size: 0.86rem; cursor: pointer; transition: background 0.2s, color 0.2s; }
    .nav-group-head:hover { background: rgba(255,255,255,0.05); color: #fff; }
    .nav-group-head:focus-visible { outline: 2px solid #10b981; outline-offset: -2px; }
    .nav-group-chevron { width: auto !important; font-size: 0.7rem; color: #64748b; transition: transform 0.25s; }
    .nav-group.open .nav-group-chevron { transform: rotate(180deg); }
    .nav-group-body { display: none; margin: 2px 0 6px 28px; padding-left: 8px; border-left: 1px dashed rgba(255,255,255,0.1); }
    .nav-group.open .nav-group-body { display: block; animation: fadeInUp 0.2s ease-out; }
    .nav-group-body .nav-item-custom { margin: 2px 12px 2px 0; }
    .nav-group-body .nav-ico { width: 26px; height: 26px; font-size: 0.75rem; }

    .nav-item-custom .badge:not(.d-none), .nav-group-badge:not(.d-none) { animation: navPulse 2s infinite; }
    @keyframes navPulse {
      0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.55); }
      70% { box-shadow: 0 0 0 7px rgba(239,68,68,0); }
      100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
    }
    @media (prefers-reduced-motion: reduce) {
      .nav-item-custom .badge, .nav-group-badge { animation: none !important; }
    }

    .sb-profile-wrap { padding: 12px; background: linear-gradient(180deg, rgba(15,26,23,0) 0%, #0b1215 35%); border-top: 1px solid rgba(255,255,255,0.06); }
    .sb-profile { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); }
    .sb-avatar { position: relative; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #10b981, #059669); color: #fff; font-weight: 800; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .sb-online { position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2px solid #0b1215; }
    .sb-name { color: #f1f5f9; font-weight: 700; font-size: 0.85rem; }
    .sb-role { color: #94a3b8; font-size: 0.72rem; }
    .sb-logout { border: none; width: 36px; height: 36px; border-radius: 10px; background: rgba(239,68,68,0.12); color: #f87171; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: 0.2s; }
    .sb-logout:hover, .sb-logout:focus-visible { background: #ef4444; color: #fff; outline: none; }

    /* Mobile App-Like Bottom Nav */
    .mobile-bottom-nav { display: none; }
    
    @media (max-width: 768px) {
      /* PWA App Experience Adjustments */
      body { -webkit-tap-highlight-color: transparent; }
      .public-shell { padding-bottom: 70px; } /* Ruang ekstra untuk navbar bawah */
      
      .mobile-bottom-nav {
        display: flex !important; justify-content: space-around; align-items: center;
        position: fixed; bottom: 0; left: 0; width: 100%; height: 68px;
        background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
        box-shadow: 0 -4px 25px rgba(0,0,0,0.08); z-index: 1030; border-top: none;
        padding-bottom: env(safe-area-inset-bottom);
      }
      .mobile-nav-item {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        color: #94a3b8; text-decoration: none; font-size: 0.65rem; font-weight: 600;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; flex: 1; height: 100%; text-align: center;
      }
      .mobile-nav-item i { 
        display: inline-block; font-size: 1.25rem; margin-bottom: 2px; 
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); padding: 5px 16px; border-radius: 12px; 
      }
      .mobile-nav-item.active { color: var(--primary-color); font-weight: 700; }
      .mobile-nav-item.active i { background-color: #ecfdf5; color: var(--primary-color); transform: translateY(-2px); }
      .mobile-nav-item:active i { transform: scale(0.9); }
      
      .hero-section { padding: 50px 0 60px; } /* Kurangi ruang kosong di HP */
      .form-container { padding: 2rem 1.2rem; margin: 0; border-radius: 16px; border: none; box-shadow: 0 5px 15px rgba(0,0,0,0.05); } 
      
      /* App-like Icon Grid untuk Kartu Layanan di Mobile (4 Kolom) */
      #servicesGrid { --bs-gutter-x: 0.5rem; --bs-gutter-y: 1rem; }
      .service-card-v2 { padding: 8px 4px !important; border-radius: 12px; align-items: center; text-align: center; border: none !important; box-shadow: none !important; background: transparent !important; min-height: unset; }
      .service-card-v2:active { transform: scale(0.95); }
      .icon-box-v2 { width: 50px !important; height: 50px !important; font-size: 1.4rem !important; margin-bottom: 8px !important; border-radius: 16px; box-shadow: 0 4px 10px rgba(0,0,0,0.06); }
      .service-card-v2 h6 { font-size: 0.65rem !important; font-weight: 700 !important; line-height: 1.25 !important; margin-bottom: 0 !important; word-wrap: break-word; }
      .service-card-v2 p.text-muted { display: none !important; } /* Sembunyikan Teks Deskripsi */
      .service-card-v2 .btn-arrow-round { display: none !important; } /* Sembunyikan Panah */

      .app-shell { flex-direction: column; overflow-x: hidden; }
      /* Sidebar admin di HP = drawer geser dari kiri (sama dengan sidebar web) */
      .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); height: 100vh; height: 100dvh; transform: translateX(-105%); transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1100; box-shadow: none; overscroll-behavior: contain; }
      .sidebar.show { transform: translateX(0); box-shadow: 10px 0 40px rgba(0,0,0,0.4); }
      .sidebar-backdrop { display: block !important; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(2,6,23,0.55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 1090; }
      .sidebar-backdrop.show { opacity: 1; pointer-events: auto; }
      .sb-close { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); width: 36px; height: 36px; border: none; border-radius: 10px; background: rgba(255,255,255,0.08); color: #cbd5e1; display: inline-flex; align-items: center; justify-content: center; }
      .sb-close:active { background: rgba(255,255,255,0.18); }
      main.main-content > .mobile-bottom-nav { display: none !important; }
      .main-content { width: 100%; height: 100vh; height: 100dvh; padding-bottom: 0; }
      .main-content > .container-fluid { padding: 0.9rem !important; }
      .nav-item-custom { padding: 0.8rem 1rem; }
      .topbar { padding: 0 0.75rem; margin: 8px 10px; height: 56px; top: 8px; border-radius: 16px; }
      .topbar-burger { width: 40px; height: 40px; padding: 0; border: none; border-radius: 12px; background: #ecfdf5; color: #047857; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
      .topbar-burger:active { background: #d1fae5; }

      /* UI Tabel menjadi Kartu List di Mobile (Semua Halaman Data Layanan) */
      #page-data .table-responsive { background: transparent; border: none; box-shadow: none; padding: 0; overflow: visible; }
      #page-data table, #page-data thead, #page-data tbody, #page-data th, #page-data td, #page-data tr { display: block; }
      #page-data thead tr { position: absolute; top: -9999px; left: -9999px; } /* Sembunyikan Header Horizontal */
      #page-data tr { background: white; margin-bottom: 1.2rem; border-radius: 16px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); padding: 0.5rem; border: 1px solid rgba(124, 58, 237, 0.1); position: relative; }
      #page-data td { border: none; border-bottom: 1px solid #f1f5f9; position: relative; padding: 0.8rem 1rem 0.8rem 45% !important; min-height: 45px; display: flex; justify-content: flex-end; align-items: center; text-align: right; font-size: 0.85rem; color: #334155; }
      #page-data td::before { content: attr(data-label); position: absolute; left: 1rem; width: 40%; text-align: left; font-weight: 800; color: #64748b; font-size: 0.65rem; letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      #page-data td:last-child { border-bottom: none; justify-content: center; padding: 1rem 0.5rem !important; margin-top: 5px; }
      #page-data td:last-child::before { display: none; }
      #page-data .btn-action { flex: 1; margin: 0 5px !important; border-radius: 12px; font-weight: 600; padding: 0.6rem; display: flex; align-items: center; justify-content: center; gap: 5px; }
      #page-data .empty-state-row td { padding-left: 1rem !important; justify-content: center; }

      /* Kartu ringkas per baris di HP */
      #page-data .table-responsive { padding: 0.4rem 0.6rem 0.2rem; max-height: none; }

      /* Garis warna status, chip filter, aksi ringkas (HP) */
      #page-data tbody tr[data-status] { cursor: pointer; border-left: 4px solid #cbd5e1; }
      #page-data tbody tr[data-status]:active { background: #f8fafc; }
      #page-data tbody tr[data-status="Menunggu"] { border-left-color: #f59e0b; }
      #page-data tbody tr[data-status="Proses"] { border-left-color: #3b82f6; }
      #page-data tbody tr[data-status="Selesai"] { border-left-color: #10b981; }
      #page-data tbody tr[data-status="Ditolak"] { border-left-color: #ef4444; }
      #page-data tbody tr:not(.empty-state-row) td:nth-last-child(2) .badge { font-size: 0.68rem; padding: 0.25rem 0.5rem !important; }
      #page-data tbody tr:not(.empty-state-row) .btn-action.btn-outline-info,
      #page-data tbody tr:not(.empty-state-row) .btn-action.btn-outline-warning,
      #page-data tbody tr:not(.empty-state-row) .btn-action.btn-outline-danger { display: none !important; }
      .status-chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 12px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
      .status-chips::-webkit-scrollbar { display: none; }
      .sc-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e2e8f0; background: #fff; color: #475569; border-radius: 99px; padding: 6px 12px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
      .sc-chip b { background: #f1f5f9; border-radius: 99px; padding: 1px 7px; font-size: 0.7rem; }
      .sc-chip.aktif { color: #fff; border-color: transparent; }
      .sc-chip.aktif b { background: rgba(255,255,255,0.25); color: #fff; }
      .sc-semua.aktif { background: #334155; }
      .sc-menunggu.aktif { background: #f59e0b; }
      .sc-proses.aktif { background: #3b82f6; }
      .sc-selesai.aktif { background: #10b981; }
      .sc-ditolak.aktif { background: #ef4444; }

      /* [5] Topbar sembunyi saat scroll turun */
      .topbar { transition: transform 0.25s ease, opacity 0.25s ease; }
      .topbar.topbar-sembunyi { transform: translateY(-130%); opacity: 0; pointer-events: none; }

      /* [6] Titik merah di tombol menu bila ada antrean baru */
      .topbar-burger { position: relative; }
      .topbar-burger.ada-baru::after { content: ''; position: absolute; top: 5px; right: 5px; width: 11px; height: 11px; border-radius: 50%; background: #ef4444; border: 2px solid #fff; }

      /* [9] Teks isian minimal 16px agar iPhone tidak zoom otomatis */
      input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]), select, textarea, .form-control, .form-select, .swal2-popup .swal2-input, .swal2-popup .swal2-select, .swal2-popup .swal2-textarea, .swal2-html-container .form-control, .swal2-html-container .form-select, .select2-search__field, .select2-selection__rendered { font-size: 16px !important; }

      /* [4] Bottom sheet: Detail Pengajuan, Ubah Status, Aksi Data */
      @media screen {
        @keyframes sheetNaik { from { transform: translateY(100%); } to { transform: none; } }
        #viewDetailModal .modal-dialog { position: fixed; left: 0; right: 0; bottom: 0; margin: 0 !important; width: 100%; max-width: 100%; height: auto; min-height: 0; display: block; }
        #viewDetailModal.fade .modal-dialog { transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
        #viewDetailModal.show .modal-dialog { transform: none; }
        #viewDetailModal .modal-content { max-height: 90vh; max-height: 90dvh; border-radius: 22px 22px 0 0 !important; overflow: hidden; }
        #viewDetailModal .modal-header { position: relative; padding: 1.2rem 1rem 0.7rem; border-radius: 22px 22px 0 0; touch-action: none; }
        #viewDetailModal .modal-header::before { content: ''; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(255,255,255,0.55); }
        #viewDetailModal .table-responsive { max-height: none; overflow: visible; }
        #viewDetailModal .modal-footer { flex-wrap: wrap; gap: 0.5rem; padding: 0.7rem 0.8rem calc(0.7rem + env(safe-area-inset-bottom)); }
        #viewDetailModal .modal-footer > .d-flex { width: 100%; flex-wrap: wrap; }
        #viewDetailModal .modal-footer > .d-flex .btn { flex: 1 1 auto; font-size: 0.8rem; padding: 0.5rem 0.7rem; }
        #viewDetailModal .modal-footer > .btn-secondary { display: none; }
        .swal2-container:has(.status-card-option), .swal2-container:has(#aksiStatusBtn) { align-items: flex-end !important; padding: 0 !important; }
        .swal2-container:has(.status-card-option) .swal2-popup, .swal2-container:has(#aksiStatusBtn) .swal2-popup { width: 100% !important; max-width: 100% !important; margin: 0 !important; border-radius: 22px 22px 0 0 !important; max-height: 92vh; overflow-y: auto; padding-bottom: calc(1.2rem + env(safe-area-inset-bottom)) !important;         }
        .swal2-container:has(.status-card-option) .swal2-popup.swal2-show,
        .swal2-container:has(#aksiStatusBtn) .swal2-popup.swal2-show {
            animation: sheetNaik 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
        }
        .swal2-container:has(.status-card-option) .swal2-popup.swal2-hide,
        .swal2-container:has(#aksiStatusBtn) .swal2-popup.swal2-hide {
            animation: sheetTurun 0.2s ease-in forwards !important;
        }
        @keyframes sheetTurun {
            to { transform: translateY(100%); }
        }
      }
      #page-data tbody tr:not(.empty-state-row) { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: 12px; row-gap: 6px; align-items: center; padding: 10px 12px; margin-bottom: 0.6rem; border-radius: 14px; box-shadow: 0 2px 8px rgba(15,23,42,0.05); }
      #page-data tbody tr:not(.empty-state-row) td { display: block; position: static; border: none; padding: 0 !important; min-height: 0; min-width: 0; text-align: left; justify-content: flex-start; font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      #page-data tbody tr:not(.empty-state-row) td::before { position: static; display: block; width: auto; margin-bottom: 1px; font-size: 0.58rem; }
      #page-data tbody tr:not(.empty-state-row) td:nth-child(1) { display: none; }
      #page-data tbody tr:not(.empty-state-row) td:nth-child(3) { grid-column: 1 / -1; order: -2; font-size: 0.95rem; font-weight: 700; color: #0f172a; white-space: normal; }
      #page-data tbody tr:not(.empty-state-row) td:nth-child(3)::before { display: none; }
      #page-data tbody tr:not(.empty-state-row) td:nth-child(2) { grid-column: 1 / -1; order: -1; margin-top: -4px; color: #94a3b8; }
      #page-data tbody tr:not(.empty-state-row) td:nth-child(2)::before { display: inline; content: 'Masuk: '; font-size: 0.7rem; font-weight: 600; text-transform: none; letter-spacing: 0; margin: 0; }
      #page-data tbody tr:not(.empty-state-row) td:nth-child(2) span { font-size: 0.7rem !important; }
      #page-data tbody tr:not(.empty-state-row) td:nth-last-child(2) { grid-column: 1; order: 5; margin-top: 4px; }
      #page-data tbody tr:not(.empty-state-row) td:nth-last-child(2)::before { display: none; }
      #page-data tbody tr:not(.empty-state-row) td:last-child { grid-column: 2; order: 6; margin-top: 4px; display: flex; flex-wrap: wrap; justify-content: flex-end; overflow: visible; }
      #page-data tbody tr:not(.empty-state-row) .btn-action { flex: 0 0 auto; width: 36px; height: 36px; padding: 0; margin: 0 0 0 6px !important; border-radius: 10px; }
      #page-data tbody tr:not(.empty-state-row) .btn-action span { display: none !important; }

      /* MODAL & SWEETALERT MOBILE TWEAKS */
      .modal-dialog { margin: 0.6rem; }
      .modal-body { padding: 1rem !important; }
      .modal-body table th, .modal-body table td { font-size: 0.75rem !important; padding: 0.5rem !important; }
      .modal-body table th { width: 35% !important; min-width: 90px; } 
      
      .swal2-popup { width: 92% !important; padding: 1.2rem !important; }
      .swal2-title { font-size: 1rem !important; }
      .swal2-html-container { font-size: 0.8rem !important; }
      .swal2-html-container .form-control, .swal2-html-container .form-select { font-size: 0.8rem !important; }
      .swal2-actions { margin-top: 1rem !important; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
      .swal2-actions button { font-size: 0.8rem !important; padding: 0.5rem 1.2rem !important; margin: 0 !important; }
    }

    /* --- NEW UI SIPETEKES V2 --- */
    .navbar-public { background: white; border-bottom: 1px solid #f1f5f9; padding: 15px 0; position: sticky; top: 0; z-index: 1020; }
    .hero-card-v2 { background: linear-gradient(135deg, #064e3b 0%, #047857 100%); border-radius: 24px; overflow: hidden; position: relative; color: white; padding: 35px 30px; margin-bottom: 20px;}
    .hero-card-v2::after { content: ''; position: absolute; right: 0; top: 0; width: 60%; height: 100%; background: url('https://i.ibb.co.com/8P9zjXY/gedung-upa.jpg') center/cover; opacity: 0.6; mask-image: linear-gradient(to right, transparent, black 60%); -webkit-mask-image: linear-gradient(to left, transparent, black 100%); z-index: 1;}
    .hero-card-v2 > * { position: relative; z-index: 2; }
    .benefit-icon { background: rgba(255,255,255,0.15); width: 45px; height: 45px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 1.2rem; border: 1px solid rgba(255,255,255,0.2);}
    
    .service-card-v2 { background: white; border-radius: 20px; padding: 25px; border: 1px solid #f1f5f9; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; height: 100%; display: flex; flex-direction: column; box-shadow: 0 4px 15px rgba(0,0,0,0.02);}
    .service-card-v2:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.06); transform: translateY(-5px); border-color: #e2e8f0; }
    .icon-box-v2 { width: 55px; height: 55px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 20px; }
    .btn-arrow-round { width: 32px; height: 32px; border-radius: 50%; color: white; display: inline-flex; align-items: center; justify-content: center; align-self: flex-end; margin-top: auto; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.15);}
    .service-card-v2:hover .btn-arrow-round { transform: translateX(5px); }
    
    .news-list-item { display: flex; align-items: center; gap: 15px; padding: 15px 10px; border-bottom: 1px solid #f1f5f9; cursor: pointer; transition: 0.2s;}
    .news-list-item:last-child { border-bottom: none; }
    .news-list-item:hover { background-color: #f8fafc; border-radius: 12px; padding: 15px;}
    .news-list-img { width: 90px; height: 90px; border-radius: 12px; object-fit: cover; }
    
    .running-text-v2 { background: #f0fdf4; border-radius: 12px; padding: 12px 20px; display: flex; align-items: center; color: #16a34a; font-weight: 500; font-size: 0.9rem; margin-bottom: 20px;}
    .footer-sticky { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 1020; }
    .search-nav-global { width: 130px; transition: 0.3s; }
    .search-nav-global:focus-within { width: 180px; }
    @media (min-width: 768px) { .search-nav-global { width: 250px; } .search-nav-global:focus-within { width: 250px; } }
    @media (max-width: 768px) { .footer-sticky { display: none !important; } .hide-text-mobile { display: none !important; } }

    .chat-bubble { max-width: 85%; padding: 12px 16px; border-radius: 16px; font-size: 0.9rem; line-height: 1.4; word-wrap: break-word; position: relative; }
      .chat-bubble-me { background: #dcfce7; color: #064e3b; border-bottom-right-radius: 4px; margin-left: auto; border: 1px solid #bbf7d0; }
      .chat-bubble-other { background: #ffffff; color: #1e293b; border-bottom-left-radius: 4px; margin-right: auto; border: 1px solid #e2e8f0; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
      .chat-file-card { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.7); padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(0,0,0,0.05); margin-bottom: 8px; text-decoration: none; color: inherit; transition: 0.2s; }
      .chat-file-card:hover { background: rgba(255,255,255,0.9); transform: translateY(-2px); }

      /* CSS Khusus Mode Cetak (Auto-Generate PDF) */
      @media print {
      body * { visibility: hidden; }
      #viewDetailModal .modal-content, #viewDetailModal .modal-content * { visibility: visible; }
      #viewDetailModal .modal-content { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; border: none; }
      .modal-header .btn-close, .modal-footer, .btn-action, .d-flex.flex-wrap.pt-1 { display: none !important; }
      #viewDetailModal .modal-header { background: white !important; color: black !important; padding: 0 !important; margin-bottom: 20px !important; border-bottom: 2px solid #000 !important; }
      #viewDetailModal .modal-title { color: black !important; font-size: 16pt !important; }
      .table-light th { background-color: #eee !important; -webkit-print-color-adjust: exact; }
      a.btn, button.btn { display: none !important; }
    }
    /* ===== Penjadwalan Ujian: tampilan HP (kartu, tanpa geser kanan-kiri) ===== */
    @media (max-width: 767.98px) {
      #page-jadwal > div:first-child .btn { width: 100%; }
      #page-jadwal .nav-pills .nav-link { font-size: .82rem; padding: .6rem .25rem !important; }
      #page-jadwal .nav-pills .nav-link i { margin-right: .35rem !important; }
      #page-jadwal .card-header > div { max-width: 100% !important; width: 100%; }
      #page-jadwal .card-header { padding-left: 12px !important; padding-right: 12px !important; }

      #jadwalScrollAtas { display: none !important; }
      #jadwalTableWrap { max-height: none !important; overflow: visible !important; }
      #jadwalTableWrap table, #jadwalTableWrap tbody { display: block; width: 100%; background: transparent; }
      #jadwalTableWrap thead { display: none; }

      /* satu jadwal = satu kartu */
      #adminJadwalTableBody > tr:not([id]) {
        display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 8px; row-gap: 8px;
        margin: 0 12px 10px; padding: 12px; background: #fff !important;
        border: 1px solid #e5e7eb !important; border-radius: 16px; box-shadow: 0 1px 3px rgba(15,23,42,.06);
      }
      #adminJadwalTableBody > tr:not([id]) > td { display: block; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; text-align: left !important; width: auto !important; }
      #adminJadwalTableBody > tr:not([id]) > td:nth-child(2) { grid-column: 1; grid-row: 1; }
      #adminJadwalTableBody > tr:not([id]) > td:nth-child(6) { grid-column: 2; grid-row: 1; }
      #adminJadwalTableBody > tr:not([id]) > td:nth-child(1) { grid-column: 3; grid-row: 1; font-size: 1rem; }
      #adminJadwalTableBody > tr:not([id]) > td:nth-child(3) { grid-column: 1 / -1; grid-row: 2; font-size: .98rem; }
      #adminJadwalTableBody > tr:not([id]) > td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; padding: 8px 10px !important; background: #f8fafc !important; border-radius: 10px; }
      #adminJadwalTableBody > tr:not([id]) > td:nth-child(5) { grid-column: 1 / -1; grid-row: 4; }
      #adminJadwalTableBody > tr:not([id]) > td:nth-child(5)::before { content: 'Penguji Utama'; display: block; font-size: .64rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; color: #94a3b8; }
      #adminJadwalTableBody > tr:not([id]) > td:nth-child(5) .text-truncate { max-width: none !important; white-space: normal; }
      #adminJadwalTableBody > tr:not([id]) > td:nth-child(7) { grid-column: 1 / 3; grid-row: 5; }
      #adminJadwalTableBody > tr:not([id]) > td:nth-child(8) { grid-column: 3; grid-row: 5; white-space: nowrap; }

      /* rincian (saat baris dibuka) menempel di bawah kartunya */
      #adminJadwalTableBody > tr[id^="jadwal_det_"]:not(.d-none) { display: block; margin: -4px 12px 12px; background: #f8fafc !important; box-shadow: 0 0 0 1px #e5e7eb; border-radius: 14px; overflow: hidden; }
      #adminJadwalTableBody > tr[id^="jadwal_det_"] > td { display: block; width: 100% !important; padding: 12px !important; border: 0 !important; box-shadow: none !important; }
      #adminJadwalTableBody > tr[id^="jadwal_det_"] > td { white-space: normal !important; max-width: 100%; box-sizing: border-box; }
      #adminJadwalTableBody > tr[id^="jadwal_det_"] td .mt-3 { display: flex !important; flex-wrap: wrap; gap: 8px; }
      #adminJadwalTableBody > tr[id^="jadwal_det_"] td .mt-3 .btn { flex: 1 1 calc(50% - 8px); margin: 0 !important; white-space: normal; max-width: 100%; }
      #adminJadwalTableBody > tr[id^="jadwal_det_"] td .mt-3 .btn:last-child { flex-basis: 100%; }
    }
    /* ===== Data Kelulusan: tampilan HP (kartu, tanpa geser kanan-kiri) ===== */
    @media (max-width: 767.98px) {
      #page-kelulusan > div:first-child .btn { width: 100%; }
      #page-kelulusan .card-header { flex-direction: column; align-items: stretch !important; gap: 10px !important; padding-left: 12px !important; padding-right: 12px !important; }
      #page-kelulusan .card-header .search-box-modern { max-width: 100% !important; width: 100%; }
      #page-kelulusan .card-header > div:last-child { width: 100%; flex-wrap: nowrap !important; }
      #page-kelulusan .card-header .periode-pill { flex: 0 0 auto; white-space: nowrap; }
      #page-kelulusan .card-header .periode-select { flex: 1 1 auto; min-width: 0; width: auto; }

      #page-kelulusan .table-responsive { max-height: none !important; overflow: visible !important; }
      #page-kelulusan .table-responsive table, #adminKelulusanTableBody { display: block; width: 100%; background: transparent; }
      #adminKelulusanHeader { display: none; }

      /* satu batch kelulusan = satu kartu */
      #adminKelulusanTableBody > tr:not([id]) {
        display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; row-gap: 8px;
        margin: 0 12px 10px; padding: 12px; background: #fff !important;
        border: 1px solid #e5e7eb !important; border-radius: 16px; box-shadow: 0 1px 3px rgba(15,23,42,.06);
      }
      #adminKelulusanTableBody > tr:not([id]) > td { display: block; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; text-align: left !important; width: auto !important; }
      #adminKelulusanTableBody > tr:not([id]) > td:nth-child(2) { grid-column: 1; grid-row: 1; font-size: .98rem !important; }
      #adminKelulusanTableBody > tr:not([id]) > td:nth-child(1) { grid-column: 2; grid-row: 1; font-size: 1rem; }
      #adminKelulusanTableBody > tr:not([id]) > td:nth-child(3) { grid-column: 1 / -1; grid-row: 2; word-break: break-word; }
      #adminKelulusanTableBody > tr:not([id]) > td:nth-child(3)::before { content: 'No. SK Yudisium'; display: block; font-size: .64rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; color: #94a3b8; }
      #adminKelulusanTableBody > tr:not([id]) > td:nth-child(4) { grid-column: 1; grid-row: 3; }
      #adminKelulusanTableBody > tr:not([id]) > td:nth-child(4) .badge { white-space: normal; text-align: left; }
      #adminKelulusanTableBody > tr:not([id]) > td:nth-child(5) { grid-column: 2; grid-row: 3; }
      #adminKelulusanTableBody > tr:not([id]) > td:nth-child(6) { grid-column: 1 / -1; grid-row: 4; display: flex !important; gap: 8px; white-space: normal !important; }
      #adminKelulusanTableBody > tr:not([id]) > td:nth-child(6) .btn { flex: 1 1 0; margin: 0 !important; padding: .4rem 0 !important; }

      /* rincian (saat baris dibuka) menempel di bawah kartunya */
      #adminKelulusanTableBody > tr[id^="lulus_det_"]:not(.d-none) { display: block; margin: -4px 12px 12px; background: #f8fafc !important; box-shadow: 0 0 0 1px #e5e7eb; border-radius: 14px; overflow: hidden; }
      #adminKelulusanTableBody > tr[id^="lulus_det_"] > td { display: block; width: 100% !important; padding: 12px !important; border: 0 !important; box-shadow: none !important; white-space: normal !important; max-width: 100%; box-sizing: border-box; }
    }
    /* ===== Input Data Kelulusan: tampilan HP (daftar mahasiswa jadi kartu) ===== */
    @media (max-width: 767.98px) {
      #modalKelulusan .card-body > .d-flex.border-bottom { flex-wrap: wrap; gap: 10px; }
      #modalKelulusan .card-body > .d-flex.border-bottom > h6 { flex: 1 1 100%; }
      #modalKelulusan .card-body > .d-flex.border-bottom > .btn { flex: 1 1 100%; padding: .5rem; font-weight: 700; }
      #modalKelulusan .table-responsive { overflow: visible !important; }
      #modalKelulusan .table-responsive table, #lulus_peserta_body { display: block; width: 100%; border: 0 !important; }
      #modalKelulusan .table-responsive thead { display: none; }

      #lulus_peserta_body > tr {
        display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; row-gap: 10px;
        margin-bottom: 12px; padding: 12px; background: #f8fafc;
        border: 1px solid #e5e7eb; border-radius: 14px;
      }
      #lulus_peserta_body > tr > td { display: block; padding: 0 !important; border: 0 !important; background: transparent !important; width: auto !important; min-width: 0; }
      #lulus_peserta_body > tr > td::before { display: block; margin-bottom: 3px; font-size: .64rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; color: #64748b; }
      #lulus_peserta_body > tr > td:nth-child(1) { grid-column: 1 / -1; }
      #lulus_peserta_body > tr > td:nth-child(1)::before { content: 'Mahasiswa'; }
      #lulus_peserta_body > tr > td:nth-child(2)::before { content: 'Total SKS'; }
      #lulus_peserta_body > tr > td:nth-child(3)::before { content: 'IPK'; }
      #lulus_peserta_body > tr > td:nth-child(4), #lulus_peserta_body > tr > td:nth-child(5) { grid-column: 1 / -1; }
      #lulus_peserta_body > tr > td:nth-child(4)::before { content: 'Lama Studi (otomatis)'; }
      #lulus_peserta_body > tr > td:nth-child(5)::before { content: 'Gelar Akademik'; }
      #lulus_peserta_body > tr > td:nth-child(6) { grid-column: 1 / -1; text-align: center; }
      #lulus_peserta_body > tr > td:nth-child(6) .btn { width: 100%; }
      #lulus_peserta_body > tr > td:nth-child(6) .btn::after { content: ' Hapus mahasiswa ini'; font-weight: 600; }
      #lulus_peserta_body .select2-container { width: 100% !important; }
      #lulus_peserta_body .form-control, #lulus_peserta_body .form-select { font-size: .95rem; padding-top: .45rem; padding-bottom: .45rem; }
      #lulus_peserta_body .sel-semester-masuk { font-size: .8rem !important; }
    }
    /* ===== Antrean Diproses: tampilan HP (kartu, tanpa geser kanan-kiri) ===== */
    @media (max-width: 767.98px) {
      #page-proses > div:first-child { flex-wrap: wrap; gap: 10px; }
      #page-proses > div:first-child > div { flex: 1 1 100%; }
      #page-proses > div:first-child > .btn { width: 100%; padding: .5rem; font-weight: 600; }
      #page-proses .nav-pills { flex-wrap: nowrap; gap: 6px; padding: 6px !important; }
      #page-proses .nav-pills .nav-link { font-size: .78rem; line-height: 1.25; padding: .55rem .2rem !important; white-space: normal; }
      #page-proses .nav-pills .nav-link i { display: block; margin: 0 0 3px !important; font-size: 1.05rem; }
      #page-proses .tab-content .card { background: transparent; box-shadow: none !important; }
      #page-proses .table-responsive { max-height: none !important; overflow: visible !important; }
      #page-proses .table-responsive table, #adminProsesUmumBody, #adminProsesUjianBody { display: block; width: 100%; background: transparent; }
      #page-proses .table-responsive thead { display: none; }

      /* satu antrean = satu kartu */
      #adminProsesUmumBody > tr, #adminProsesUjianBody > tr {
        display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; row-gap: 8px;
        margin-bottom: 10px; padding: 12px; background: #fff !important; cursor: pointer;
        border: 1px solid #e5e7eb !important; border-radius: 16px; box-shadow: 0 1px 3px rgba(15,23,42,.06);
      }
      #adminProsesUmumBody > tr > td, #adminProsesUjianBody > tr > td { display: block; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; text-align: left !important; width: auto !important; min-width: 0; }
      #adminProsesUmumBody > tr > td:nth-child(2), #adminProsesUjianBody > tr > td:nth-child(2) { grid-column: 1; grid-row: 1; }
      #adminProsesUmumBody > tr > td:nth-child(5), #adminProsesUjianBody > tr > td:nth-child(5) { grid-column: 2; grid-row: 1; }
      #adminProsesUmumBody > tr > td:nth-child(3), #adminProsesUjianBody > tr > td:nth-child(3) { grid-column: 1 / -1; grid-row: 2; font-size: 1.02rem; word-break: break-word; }
      #adminProsesUmumBody > tr > td:nth-child(4), #adminProsesUjianBody > tr > td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; font-size: .85rem; color: #64748b; display: flex !important; align-items: center; flex-wrap: wrap; gap: 6px; }
      #adminProsesUmumBody > tr > td:nth-child(1), #adminProsesUjianBody > tr > td:nth-child(1) { grid-column: 1; grid-row: 4; }
      #adminProsesUmumBody > tr > td:nth-child(1)::before, #adminProsesUjianBody > tr > td:nth-child(1)::before { content: '\f017'; font-family: 'Font Awesome 6 Free'; font-weight: 400; margin-right: 5px; }
      #adminProsesUmumBody > tr > td:nth-child(6), #adminProsesUjianBody > tr > td:nth-child(6) { grid-column: 2; grid-row: 4; white-space: nowrap; }
      #adminProsesUmumBody > tr > td[colspan], #adminProsesUjianBody > tr > td[colspan] { grid-column: 1 / -1 !important; grid-row: auto !important; text-align: center !important; padding: 16px 0 !important; display: block; }
    }
    /* ===== Data layanan (mis. Surat Tugas "Bagi" Dosen): rapikan header dan tampilan kosong di HP ===== */
    @media (max-width: 767.98px) {
      #page-data > .card > .card-header { flex-wrap: wrap; gap: 10px; }
      #page-data > .card > .card-header > div:first-child { flex: 1 1 100%; padding-right: 0 !important; }
      #page-data > .card > .card-header .search-box-modern { width: 100% !important; max-width: 100% !important; }
      #page-data #tableViewTitle { white-space: normal !important; overflow: visible; text-overflow: clip; line-height: 1.3; }
      #page-data .empty-state-row td { display: block; width: 100% !important; max-width: none !important; margin: 0 !important; box-sizing: border-box; white-space: normal; overflow-wrap: anywhere; text-align: center; padding: 2rem 1rem !important; box-shadow: none !important; }
      #page-data .empty-state-row td::before { display: none; }
    }
    /* ===== Tabel isian dinamis (RPL dll): saklar Ada/Tidak + kartu di HP ===== */
    .dyn-opt-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; column-gap: 12px; }
    .dyn-opt-head > label.form-label { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
    .dyn-opt-sw { display: flex; align-items: center; gap: 8px; padding-left: 0; margin: 0 0 .6rem; flex: 0 0 auto; white-space: nowrap; }
    .dyn-opt-sw .form-check-input { float: none; margin: 0; width: 2.6em; height: 1.4em; cursor: pointer; }
    .dyn-opt-sw .form-check-label { font-size: .8rem; font-weight: 700; color: #64748b; cursor: pointer; }
    .dyn-opt-sw .form-check-label.on { color: #059669; }
    @media (max-width: 767.98px) {
      .dyn-v2-wrap { border: 0 !important; padding: 0 !important; background: transparent !important; overflow: visible !important; }
      .dyn-v2-wrap > .btn { width: 100%; padding: .55rem; font-weight: 700; }
      .dyn-v2 { display: block; border: 0 !important; background: transparent; }
      .dyn-v2 thead { display: none; }
      .dyn-v2 tbody { display: block; }
      .dyn-v2 tbody > tr { display: block; position: relative; margin-bottom: 12px; padding: 12px; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 14px; }
      .dyn-v2 td { display: block; width: auto !important; padding: 0 !important; border: 0 !important; margin-bottom: 10px; background: transparent !important; }
      .dyn-v2 td::before { content: attr(data-label); display: block; margin-bottom: 3px; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: #64748b; }
      .dyn-v2 td.row-num { text-align: left !important; margin-bottom: 8px; font-weight: 800; color: #059669; font-size: .9rem; }
      .dyn-v2 td.row-num::before { content: 'Data ke-'; display: inline; margin: 0; font-size: .9rem; text-transform: none; letter-spacing: 0; color: #059669; }
      .dyn-v2 td:last-child { position: absolute; top: 8px; right: 8px; margin: 0; }
      .dyn-v2 td:last-child::before { display: none; }
      .dyn-v2 .dyn-input { min-height: 46px !important; font-size: .95rem; resize: none !important; }
    }
    /* ===== Manajemen Kurikulum: tampilan HP (kartu modern) ===== */
    @media (max-width: 767.98px) {
      #page-kurikulum > .card { background: transparent; box-shadow: none !important; }
      #page-kurikulum > .card > .card-header { flex-wrap: wrap; gap: 12px; padding: 16px !important; border-radius: 18px; border: 0; color: #fff;
        background: linear-gradient(135deg, #059669 0%, #10b981 55%, #0ea5e9 100%) !important; box-shadow: 0 10px 24px rgba(5,150,105,.25); margin-bottom: 14px; }
      #page-kurikulum > .card > .card-header h5 { flex: 1 1 100%; color: #fff; font-size: 1.15rem; }
      #page-kurikulum > .card > .card-header h5 i { color: #d1fae5 !important; }
      #page-kurikulum > .card > .card-header > .d-flex { flex: 1 1 100%; }
      #page-kurikulum > .card > .card-header .btn { flex: 1 1 0; padding: .6rem .4rem; border-radius: 12px; font-size: .82rem; }
      #page-kurikulum > .card > .card-header .btn-outline-primary { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.55); color: #fff; }
      #page-kurikulum > .card > .card-header .btn-primary-custom { background: #fff !important; color: #047857 !important; border: 0; }
      #page-kurikulum > .card > .card-body { background: transparent; }
      #page-kurikulum .table-responsive { max-height: none !important; overflow: visible !important; background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
      #page-kurikulum .table-responsive table, #adminKurikulumBody { display: block; width: 100%; background: transparent !important; border: 0 !important; box-shadow: none !important; }
      #page-kurikulum .table-responsive thead { display: none; }

      /* satu kurikulum = satu kartu */
      #adminKurikulumBody > tr {
        display: grid; grid-template-columns: 46px 1fr; column-gap: 12px; row-gap: 4px; align-items: center;
        margin-bottom: 12px; padding: 14px; border-radius: 18px;
        border: 1px solid transparent;
        background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #a7f3d0, #bae6fd) border-box !important;
        box-shadow: 0 4px 14px rgba(15,23,42,.06);
      }
      #adminKurikulumBody > tr::before {
        content: '\f518'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
        grid-column: 1; grid-row: 1 / 3; width: 46px; height: 46px; border-radius: 14px;
        display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem;
        background: linear-gradient(135deg, #10b981, #0ea5e9); box-shadow: 0 6px 14px rgba(16,185,129,.3);
      }
      #adminKurikulumBody > tr > td { display: block; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; text-align: left !important; min-width: 0; width: auto !important; max-width: none !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
      #adminKurikulumBody > tr > td:nth-child(1) { grid-column: 2; grid-row: 1; font-size: 1rem; line-height: 1.25; color: #0f172a !important; word-break: break-word; }
      #adminKurikulumBody > tr > td:nth-child(2) { grid-column: 2; grid-row: 2; font-size: .8rem; color: #64748b; }
      #adminKurikulumBody > tr > td:nth-child(3) { grid-column: 1 / -1; grid-row: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; padding: 8px 10px !important; background: #f8fafc !important; border-radius: 12px; }
      #adminKurikulumBody > tr > td:nth-child(3) .badge { background: #ecfdf5 !important; color: #047857 !important; border-color: #a7f3d0 !important; font-size: .75rem; }
      #adminKurikulumBody > tr > td:nth-child(3) > div { margin: 0 !important; }
      #adminKurikulumBody > tr > td:nth-child(4) { grid-column: 1 / -1; grid-row: 4; display: flex; gap: 8px; margin-top: 10px; white-space: normal !important; }
      #adminKurikulumBody > tr > td:nth-child(4) .btn { margin: 0 !important; border-radius: 12px; padding: .55rem .9rem !important; }
      #adminKurikulumBody > tr > td:nth-child(4) .btn:first-child { flex: 1 1 auto; background: #059669; border-color: #059669; color: #fff; }
      #adminKurikulumBody > tr:has(> td[colspan])::before { display: none; }
      #adminKurikulumBody > tr > td[colspan] { width: 100% !important; grid-column: 1 / -1 !important; grid-row: auto !important; text-align: center !important; padding: 18px 0 !important; display: block; background: transparent !important; margin: 0; }
    }
    /* ===== Konversi RPL: tampilan HP (daftar pendaftar + modal Kelola) ===== */
    @media (max-width: 767.98px) {
      /* --- Header halaman --- */
      #page-rpl > .card { background: transparent; box-shadow: none !important; }
      #page-rpl > .card > .card-header { gap: 8px !important; padding: 16px !important; border: 0; border-radius: 18px; margin-bottom: 12px;
        background: linear-gradient(135deg, #059669 0%, #10b981 55%, #0ea5e9 100%) !important; box-shadow: 0 10px 24px rgba(5,150,105,.25); }
      #page-rpl > .card > .card-header h5 { flex: 1 1 100%; color: #fff; font-size: 1.15rem; margin-bottom: 4px !important; }
      #page-rpl > .card > .card-header h5 i { color: #d1fae5 !important; }
      #page-rpl > .card > .card-header .btn { flex: 1 1 auto; border-radius: 12px; padding: .5rem .6rem; font-size: .78rem;
        background: rgba(255,255,255,.16) !important; border: 1px solid rgba(255,255,255,.55) !important; color: #fff !important; box-shadow: none !important; }
      #page-rpl > .card > .card-body.pb-2 { background: #fff; border-radius: 18px; padding: 12px !important; margin-bottom: 12px; box-shadow: 0 4px 14px rgba(15,23,42,.06); }
      #rplRingkasan { flex-wrap: nowrap !important; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px !important; scrollbar-width: none; }
      #rplRingkasan::-webkit-scrollbar { display: none; }
      #rplRingkasan .btn { flex: 0 0 auto; white-space: nowrap; font-size: .78rem; }
      #rplFilterProdi, #rplCari { border-radius: 12px; padding: .55rem .8rem; font-size: .9rem; }

      /* --- Daftar pendaftar jadi kartu --- */
      #page-rpl > .card > .card-body.p-0 { background: transparent; }
      #page-rpl .table-responsive { max-height: none !important; overflow: visible !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
      #page-rpl .table-responsive table, #rplTabelBody { display: block; width: 100%; background: transparent !important; }
      #page-rpl .table-responsive thead { display: none; }
      #rplTabelBody > tr {
        display: grid; grid-template-columns: 44px 1fr auto; column-gap: 12px; row-gap: 0; align-items: center;
        margin-bottom: 12px; padding: 14px; border-radius: 18px; border: 1px solid transparent;
        background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #a7f3d0, #bae6fd) border-box !important;
        box-shadow: 0 4px 14px rgba(15,23,42,.06);
      }
      #rplTabelBody > tr::before {
        content: '\f501'; font-family: 'Font Awesome 6 Free'; font-weight: 900; grid-column: 1; grid-row: 1;
        width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff;
        background: linear-gradient(135deg, #10b981, #0ea5e9); box-shadow: 0 6px 14px rgba(16,185,129,.3);
      }
      #rplTabelBody > tr > td { display: block; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; text-align: left !important; min-width: 0; width: auto !important; max-width: none !important; white-space: normal !important; overflow: visible !important; }
      #rplTabelBody > tr > td:nth-child(1) { grid-column: 2 / -1; grid-row: 1; }
      #rplTabelBody > tr > td:nth-child(1) .fw-bold { font-size: 1rem; color: #0f172a !important; line-height: 1.25; }
      #rplTabelBody > tr > td:nth-child(1) .small { font-size: .74rem; word-break: break-word; }
      #rplTabelBody > tr > td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; margin-top: 12px; padding: 10px 12px 4px !important; background: #f8fafc !important; border-radius: 12px 12px 0 0; display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-weight: 600; color: #334155; font-size: .85rem; }
      #rplTabelBody > tr > td:nth-child(3) { grid-column: 1 / -1; grid-row: 3; padding: 2px 12px 10px !important; background: #f8fafc !important; border-radius: 0 0 12px 12px; }
      #rplTabelBody > tr > td:nth-child(3)::before { content: '\f19d'; font-family: 'Font Awesome 6 Free'; font-weight: 900; float: left; margin: 2px 8px 0 0; color: #94a3b8; font-size: .8rem; }
      #rplTabelBody > tr > td:nth-child(4) { grid-column: 1 / 3; grid-row: 4; margin-top: 10px; }
      #rplTabelBody > tr > td:nth-child(5) { grid-column: 3; grid-row: 4; margin-top: 10px; font-size: .85rem; text-align: right !important; }
      #rplTabelBody > tr > td:nth-child(5)::before { content: 'NPM'; display: block; font-size: .6rem; letter-spacing: .07em; color: #94a3b8; font-weight: 700; }
      #rplTabelBody > tr > td:nth-child(6) { grid-column: 1 / -1; grid-row: 5; margin-top: 12px; }
      #rplTabelBody > tr > td:nth-child(6) .btn { width: 100%; padding: .6rem; border-radius: 12px; }
      #rplTabelBody > tr:has(> td[colspan])::before { display: none; }
      #rplTabelBody > tr > td[colspan] { width: 100% !important; grid-column: 1 / -1 !important; grid-row: auto !important; text-align: center !important; padding: 18px 0 !important; background: transparent !important; margin: 0 !important; }

      /* --- Modal Kelola: layar penuh dari bawah --- */
      #modalDetailRpl .modal-dialog { margin: 0; max-width: none; min-height: 100%; height: 100%; display: flex; align-items: flex-end; }
      #modalDetailRpl .modal-content { height: calc(100% - 12px); border-radius: 22px 22px 0 0 !important; overflow: hidden; }
      #modalDetailRpl .modal-header { padding: 14px 16px; align-items: flex-start; }
      #modalDetailRpl #rplDetJudul { font-size: 1.05rem; line-height: 1.3; }
      #modalDetailRpl #rplDetSub { font-size: .75rem; margin-top: 2px; }
      #modalDetailRpl .modal-header + div { padding: 8px 10px !important; }
      #rplDetTab { flex-wrap: nowrap !important; overflow-x: auto; gap: 6px; scrollbar-width: none; }
      #rplDetTab::-webkit-scrollbar { display: none; }
      #rplDetTab .nav-item { flex: 0 0 auto; }
      #rplDetTab .nav-link { white-space: nowrap; border: 1px solid #e2e8f0 !important; border-radius: 999px !important; padding: .4rem .85rem; font-size: .78rem; color: #475569; background: #f8fafc; margin: 0; }
      #rplDetTab .nav-link.active { background: #059669 !important; color: #fff !important; border-color: #059669 !important; box-shadow: 0 4px 10px rgba(5,150,105,.3); }
      #rplDetTab .nav-link.active i { color: #fff !important; }
      #modalDetailRpl .modal-body { padding: 12px !important; }
      #modalDetailRpl .modal-body .bg-white.border.rounded-3 { border-radius: 16px !important; padding: 14px !important; }

      /* Data & Berkas */
      #rplPanelData > .d-flex:first-child { gap: 8px !important; }
      #rplPanelData > .d-flex:first-child label { flex: 1 1 100%; }
      #rplPanelData #rplJalurSel { max-width: none !important; flex: 1 1 auto; width: auto; border-radius: 10px; }
      #rplPanelData > .d-flex:first-child > span { flex: 1 1 100%; margin-left: 0 !important; }
      #rplPanelData .row.g-3 > .col-md-6 { flex: 0 0 50%; max-width: 50%; }
      #rplPanelData .row.g-2 > .col-md-6 > div { border-radius: 12px !important; padding: 10px 12px !important; gap: 8px; }
      #rplPanelData .row.g-2 > .col-md-6 > div > span:first-child { flex: 1 1 auto; min-width: 0; font-weight: 600; }
      #rplPanelData .row.g-2 > .col-md-6 .btn { flex: 0 0 auto; border-radius: 999px; padding: .2rem .75rem !important; }

      /* Verifikasi Dokumen: tiap dokumen jadi kartu dengan pilihan V/A/T/M/D */
      #rplPanelVerif .table-responsive { overflow: visible !important; }
      #rplPanelVerif table, #rplPanelVerif tbody { display: block; width: 100%; border: 0 !important; }
      #rplPanelVerif thead { display: none; }
      #rplPanelVerif tr[data-kode] { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 10px; padding: 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; }
      #rplPanelVerif tr[data-kode] > td { display: block; padding: 0 !important; border: 0 !important; background: transparent !important; min-width: 0; }
      #rplPanelVerif tr[data-kode] > td:nth-child(1) { grid-column: 1; grid-row: 1; align-self: start; }
      #rplPanelVerif tr[data-kode] > td:nth-child(1) { display: inline-flex; align-items: center; justify-content: center; height: 30px; border-radius: 10px; background: #059669 !important; color: #fff; font-size: .8rem; }
      #rplPanelVerif tr[data-kode] > td:nth-child(2) { grid-column: 2 / -1; grid-row: 1; }
      #rplPanelVerif tr[data-kode] > td:nth-child(3) { grid-column: 1 / 3; grid-row: 2; align-self: end; text-align: left !important; }
      #rplPanelVerif tr[data-kode] > td:nth-child(3)::before, #rplPanelVerif tr[data-kode] > td:nth-child(4)::before { display: block; font-size: .6rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; color: #94a3b8; margin-bottom: 3px; }
      #rplPanelVerif tr[data-kode] > td:nth-child(3)::before { content: 'Berkas'; }
      #rplPanelVerif tr[data-kode] > td:nth-child(4) { grid-column: 3 / -1; grid-row: 2; }
      #rplPanelVerif tr[data-kode] > td:nth-child(4)::before { content: 'Nomor Dokumen'; }
      #rplPanelVerif tr[data-kode] > td:nth-child(4) input { min-width: 0 !important; border-radius: 10px; }
      #rplPanelVerif tr[data-kode] > td:nth-child(n+5) { grid-row: 3; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px !important; background: #fff !important; border: 1px solid #e2e8f0 !important; border-radius: 10px; }
      #rplPanelVerif tr[data-kode] > td:nth-child(n+5)::before { font-size: .62rem; font-weight: 700; color: #475569; }
      #rplPanelVerif tr[data-kode] > td:nth-child(5)::before { content: 'Valid'; }
      #rplPanelVerif tr[data-kode] > td:nth-child(6)::before { content: 'Asli'; }
      #rplPanelVerif tr[data-kode] > td:nth-child(7)::before { content: 'Terkini'; }
      #rplPanelVerif tr[data-kode] > td:nth-child(8)::before { content: 'Memadai'; }
      #rplPanelVerif tr[data-kode] > td:nth-child(9)::before { content: 'Ragu'; color: #dc2626; }
      #rplPanelVerif tr[data-kode] .rpl-hasil { width: 1.3em; height: 1.3em; margin: 0; }
      #rplPanelVerif tr[data-kode]:has(.rpl-hasil:checked) { border-color: #6ee7b7; background: #f0fdf4; }
      #rplPanelVerif tr[data-kode]:has(.rpl-hasil[value="diragukan"]:checked) { border-color: #fca5a5; background: #fef2f2; }
      #rplPanelVerif .btn-primary-custom { width: 100%; padding: .65rem; border-radius: 12px; }
    }
    /* ===== Nomor PISN Lulusan: tampilan HP (kartu modern) ===== */
    @media (max-width: 767.98px) {
      /* Header jadi panel gradasi */
      #page-pisn > .d-flex:first-child { position: relative; padding: 16px; border-radius: 18px; color: #fff; flex-wrap: nowrap !important; align-items: flex-start !important;
        background: linear-gradient(135deg, #059669 0%, #10b981 55%, #0ea5e9 100%); box-shadow: 0 10px 24px rgba(5,150,105,.25); }
      #page-pisn > .d-flex:first-child h4 { color: #fff !important; font-size: 1.15rem; margin-bottom: 4px; }
      #page-pisn > .d-flex:first-child h4 i { color: #d1fae5 !important; }
      #page-pisn > .d-flex:first-child p { color: rgba(255,255,255,.85) !important; font-size: .74rem; }
      #page-pisn > .d-flex:first-child > .btn { width: 40px; height: 40px; padding: 0; border-radius: 12px; font-size: 0; display: flex; align-items: center; justify-content: center;
        background: rgba(255,255,255,.18) !important; border: 1px solid rgba(255,255,255,.55) !important; color: #fff !important; box-shadow: none !important; }
      #page-pisn > .d-flex:first-child > .btn i { font-size: .95rem; }

      /* Statistik ringkas */
      #pisnStats { --bs-gutter-x: .5rem; }
      #pisnStats .card-body { padding: 10px 6px !important; }
      #pisnStats h4 { font-size: 1.35rem; }
      #pisnStats small { font-size: .58rem !important; letter-spacing: .04em; line-height: 1.2; display: block; color: rgba(255,255,255,.85) !important; }

      /* Filter */
      #page-pisn > .card { background: transparent; box-shadow: none !important; }
      #page-pisn > .card > .card-header { background: #fff !important; border-radius: 18px !important; padding: 12px !important; margin-bottom: 12px; box-shadow: 0 4px 14px rgba(15,23,42,.06); gap: 8px !important; }
      #page-pisn > .card > .card-header .search-box-modern { max-width: none !important; flex: 1 1 100% !important; }
      #filterProdiPisn, #filterStatusPisn { max-width: none !important; flex: 1 1 calc(50% - 4px); min-width: 0; }
      #filterPeriodePisn { flex: 1 1 100%; margin-left: 0 !important; }
      #page-pisn > .card > .card-body { background: transparent; }
      #page-pisn .table-responsive { max-height: none !important; overflow: visible !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
      #page-pisn .table-responsive table, #adminPisnTableBody { display: block; width: 100%; background: transparent !important; }

      /* Baris "pilih semua" tetap ada di HP */
      #page-pisn thead { display: block; position: static !important; background: transparent !important; }
      #page-pisn thead tr { display: flex; align-items: center; gap: 10px; padding: 8px 14px; margin-bottom: 10px; background: #fff; border-radius: 14px; box-shadow: 0 2px 8px rgba(15,23,42,.05); }
      #page-pisn thead th { display: none; border: 0 !important; background: transparent !important; padding: 0 !important; }
      #page-pisn thead th:first-child { display: flex; align-items: center; gap: 10px; width: auto !important; }
      #page-pisn thead th:first-child::after { content: 'Pilih semua yang tampil'; font-size: .8rem; font-weight: 600; color: #475569; text-transform: none; letter-spacing: 0; }

      /* Satu lulusan = satu kartu */
      #adminPisnTableBody > tr {
        display: grid; grid-template-columns: auto 1fr auto; column-gap: 12px; row-gap: 10px; align-items: center;
        margin-bottom: 12px; padding: 14px; background: #fff !important; border-radius: 18px;
        border: 1px solid #e5e7eb; border-left: 5px solid #10b981; box-shadow: 0 4px 14px rgba(15,23,42,.06);
      }
      #adminPisnTableBody > tr:has(.pisn-input) { border-left-color: #f59e0b; }
      #adminPisnTableBody > tr > td { display: block; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; text-align: left !important; min-width: 0; width: auto !important; max-width: none !important; white-space: normal !important; overflow: visible !important; }
      #adminPisnTableBody > tr > td:nth-child(1) { grid-column: 1; grid-row: 1; }
      #adminPisnTableBody > tr > td:nth-child(1) .form-check-input { width: 1.25em; height: 1.25em; margin: 0; }
      #adminPisnTableBody > tr > td:nth-child(3) { grid-column: 2; grid-row: 1; }
      #adminPisnTableBody > tr > td:nth-child(3) div.fw-bold { font-size: 1rem; color: #0f172a !important; line-height: 1.25; }
      #adminPisnTableBody > tr > td:nth-child(2) { grid-column: 3; grid-row: 1; align-self: start; font-size: .72rem; color: #94a3b8 !important; }
      #adminPisnTableBody > tr > td:nth-child(2)::before { content: '#'; }
      #adminPisnTableBody > tr > td:nth-child(4) { grid-column: 1 / 3; grid-row: 2; }
      #adminPisnTableBody > tr > td:nth-child(4) .badge { white-space: normal; text-align: left; }
      #adminPisnTableBody > tr > td:nth-child(5) { grid-column: 3; grid-row: 2; text-align: right !important; font-size: .78rem; font-weight: 600; color: #334155; }
      #adminPisnTableBody > tr > td:nth-child(5) .small { font-size: .62rem; font-weight: 700; }
      #adminPisnTableBody > tr > td:nth-child(6) { grid-column: 1 / -1; grid-row: 3; padding: 10px 12px !important; border-radius: 12px; background: #f0fdf4 !important; border: 1px dashed #86efac !important; }
      #adminPisnTableBody > tr > td:nth-child(6)::before { content: 'Nomor PISN'; display: block; font-size: .6rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; color: #64748b; margin-bottom: 4px; }
      #adminPisnTableBody > tr > td:nth-child(6):has(.pisn-input) { background: #fffbeb !important; border-color: #fcd34d !important; }
      #adminPisnTableBody > tr > td:nth-child(6) span.fw-bold { font-size: 1rem; word-break: break-all; }
      #adminPisnTableBody > tr > td:nth-child(6) .input-group { max-width: none !important; }
      #adminPisnTableBody > tr > td:nth-child(6) .pisn-input { border-radius: 10px 0 0 10px; min-height: 40px; }
      #adminPisnTableBody > tr > td:nth-child(6) .pisn-btn { border-radius: 0 10px 10px 0; }
      #adminPisnTableBody > tr > td:nth-child(7) { grid-column: 1 / -1; grid-row: 4; }
      #adminPisnTableBody > tr > td:nth-child(7) .dropdown > .btn { width: 100%; padding: .55rem; border-radius: 12px; }
      #adminPisnTableBody > tr:has(> td[colspan]) { border-left-color: #e5e7eb; }
      #adminPisnTableBody > tr > td[colspan] { width: 100% !important; grid-column: 1 / -1 !important; grid-row: auto !important; text-align: center !important; padding: 18px 0 !important; background: transparent !important; border: 0 !important; }
    }
    /* ===== Database Sistem (Mahasiswa & Dosen): tampilan HP (kartu modern) ===== */
    @media (max-width: 767.98px) {
      /* Tombol aksi atas jadi grid rapi */
      #tab-db-mahasiswa > .d-flex:first-child, #tab-db-dosen > .d-flex:first-child { display: block !important; margin-bottom: 12px !important; }
      #tab-db-mahasiswa > .d-flex:first-child > .d-flex, #tab-db-dosen > .d-flex:first-child > .d-flex { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
      #tab-db-mahasiswa > .d-flex:first-child .btn, #tab-db-dosen > .d-flex:first-child .btn { border-radius: 12px; font-size: .78rem; padding: .6rem .4rem; white-space: normal; line-height: 1.2; }
      #tab-db-mahasiswa > .d-flex:first-child > .btn { width: 100%; margin-top: 8px; }
      #tab-db-dosen > .d-flex:first-child > .d-flex > .btn:last-child { grid-column: 1 / -1; }

      /* Kepala kartu: judul + cari */
      #page-mahasiswa .tab-pane > .card { background: transparent; box-shadow: none !important; }
      #page-mahasiswa .tab-pane > .card > .card-header { border: 0; border-radius: 18px; padding: 14px !important; margin-bottom: 12px; color: #fff;
        background: linear-gradient(135deg, #059669 0%, #10b981 55%, #0ea5e9 100%) !important; box-shadow: 0 10px 24px rgba(5,150,105,.25); }
      #page-mahasiswa .tab-pane > .card > .card-header h5 { flex: 1 1 100%; color: #fff; font-size: 1.05rem; }
      #page-mahasiswa .tab-pane > .card > .card-header h5 i { color: #d1fae5 !important; }
      #page-mahasiswa .tab-pane > .card > .card-header > div { max-width: none !important; flex: 1 1 100% !important; }
      #page-mahasiswa .tab-pane > .card > .card-header .search-box-modern { border-radius: 12px; overflow: hidden; }
      #page-mahasiswa .tab-pane > .card > .card-header .btn-light { background: rgba(255,255,255,.2) !important; border-color: rgba(255,255,255,.55) !important; color: #fff !important; }
      #page-mahasiswa .tab-pane > .card > .card-body { background: transparent; }
      #page-mahasiswa .table-responsive { max-height: none !important; overflow: visible !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
      #page-mahasiswa .table-responsive table, #adminMahasiswaTableBody, #adminDosenTableBody { display: block; width: 100%; background: transparent !important; }

      /* Filter kolom mahasiswa jadi panel filter */
      #adminMahasiswaTableHeader { display: block; position: static !important; background: transparent !important; }
      #adminMahasiswaTableHeader tr:first-child { display: none; }
      #adminMahasiswaTableHeader tr.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; margin-bottom: 12px; background: #fff !important; border-radius: 16px; box-shadow: 0 4px 14px rgba(15,23,42,.06); }
      #adminMahasiswaTableHeader tr.filter-row th { display: block; padding: 0 !important; border: 0 !important; background: transparent !important; }
      #adminMahasiswaTableHeader tr.filter-row th:first-child { display: none; }
      #adminMahasiswaTableHeader tr.filter-row th:last-child { grid-column: 1 / -1; }
      #adminMahasiswaTableHeader tr.filter-row .form-control, #adminMahasiswaTableHeader tr.filter-row .form-select { border-radius: 10px; font-size: .85rem; min-height: 38px; }
      #page-mahasiswa .tab-pane:not(#tab-db-mahasiswa) thead { display: none; }

      /* Kartu mahasiswa */
      #adminMahasiswaTableBody > tr:not(:has(> td[colspan])) {
        display: grid; grid-template-columns: 44px 1fr auto; column-gap: 12px; row-gap: 10px; align-items: center;
        margin-bottom: 12px; padding: 14px; border-radius: 18px; border: 1px solid transparent;
        background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #a7f3d0, #bae6fd) border-box !important;
        box-shadow: 0 4px 14px rgba(15,23,42,.06);
      }
      #adminMahasiswaTableBody > tr > td, #adminDosenTableBody > tr > td { display: block; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; text-align: left !important; min-width: 0; width: auto !important; max-width: none !important; white-space: normal !important; overflow: visible !important; }
      #adminMahasiswaTableBody > tr > td:nth-child(1):not([colspan]) { grid-column: 1; grid-row: 1; align-self: start; width: 44px !important; height: 44px; border-radius: 14px; display: flex !important; align-items: center; justify-content: center;
        background: linear-gradient(135deg, #10b981, #0ea5e9) !important; color: #fff !important; font-size: .8rem; box-shadow: 0 6px 14px rgba(16,185,129,.3); }
      #adminMahasiswaTableBody > tr > td:nth-child(1) .form-check-input { background-color: #fff; border-color: #fff; }
      #adminMahasiswaTableBody > tr > td:nth-child(3) { grid-column: 2; grid-row: 1; }
      #adminMahasiswaTableBody > tr > td:nth-child(3) > .fw-bold { font-size: 1rem !important; color: #0f172a !important; line-height: 1.25; }
      #adminMahasiswaTableBody > tr > td:nth-child(3) .text-truncate { max-width: none !important; white-space: normal; word-break: break-all; }
      #adminMahasiswaTableBody > tr > td:nth-child(5) { grid-column: 3; grid-row: 1; align-self: start; }
      #adminMahasiswaTableBody > tr > td:nth-child(5) .btn { width: 38px; height: 38px; border-radius: 12px !important; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
      #adminMahasiswaTableBody > tr > td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; padding: 8px 12px 4px !important; background: #f8fafc !important; border-radius: 12px 12px 0 0; font-size: .9rem; }
      #adminMahasiswaTableBody > tr > td:nth-child(2)::before { content: 'NPM'; display: block; font-size: .58rem; letter-spacing: .07em; color: #94a3b8; font-weight: 700; }
      #adminMahasiswaTableBody > tr > td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; margin-top: -10px; padding: 0 12px 10px !important; background: #f8fafc !important; border-radius: 0 0 12px 12px; }
      #adminMahasiswaTableBody > tr > td:nth-child(4) .badge { white-space: normal; text-align: left; background: #ecfdf5 !important; color: #047857 !important; border-color: #a7f3d0 !important; }
      #adminMahasiswaTableBody > tr > td:nth-child(6), #adminDosenTableBody > tr > td:nth-child(3) { grid-column: 1 / -1; grid-row: 3; display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 6px; }
      #adminMahasiswaTableBody > tr > td:nth-child(6) .btn, #adminDosenTableBody > tr > td:nth-child(3) .btn { margin: 0 !important; border-radius: 12px; padding: .45rem .2rem !important; font-size: .68rem; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1.1; }
      #adminMahasiswaTableBody > tr > td:nth-child(6) .btn i, #adminDosenTableBody > tr > td:nth-child(3) .btn i { font-size: .95rem; }
      #adminMahasiswaTableBody > tr > td:nth-child(6) { grid-row: 4; }
      #adminMahasiswaTableBody > tr > td[colspan] { display: block; width: 100% !important; margin-bottom: 12px; padding: 14px !important; text-align: center !important; background: #fff !important; border-radius: 16px; box-shadow: 0 4px 14px rgba(15,23,42,.06); }
      #adminMahasiswaTableBody > tr:has(> td[colspan]) { display: block; background: transparent !important; border: 0 !important; }
      #adminMahasiswaTableBody > tr > td[colspan] .btn-group { width: 100%; }
      #adminMahasiswaTableBody > tr > td[colspan] .btn-group .btn { font-size: .72rem; }

      /* Kartu dosen */
      #adminDosenTableBody > tr:not(:has(> td[colspan])) {
        display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; row-gap: 10px; align-items: center;
        margin-bottom: 12px; padding: 14px; border-radius: 18px; border: 1px solid transparent;
        background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #bfdbfe, #a7f3d0) border-box !important;
        box-shadow: 0 4px 14px rgba(15,23,42,.06);
      }
      #adminDosenTableBody > tr:not(:has(> td[colspan]))::before {
        content: '\f51c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; grid-column: 1; grid-row: 1;
        width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff;
        background: linear-gradient(135deg, #3b82f6, #10b981); box-shadow: 0 6px 14px rgba(59,130,246,.3);
      }
      #adminDosenTableBody > tr > td:nth-child(1) { grid-column: 2; grid-row: 1; }
      #adminDosenTableBody > tr > td:nth-child(1) .fw-bold { font-size: 1rem !important; color: #0f172a; line-height: 1.25; }
      #adminDosenTableBody > tr > td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; padding: 8px 12px !important; background: #f8fafc !important; border-radius: 12px; }
      #adminDosenTableBody > tr > td:nth-child(2) br { display: none; }
      #adminDosenTableBody > tr > td:nth-child(2) .badge { margin: 0 6px 0 0 !important; }
      #adminDosenTableBody > tr > td:nth-child(3) .btn::after { font-size: .66rem; }
      #adminDosenTableBody > tr > td:nth-child(3) .btn:nth-child(1)::after { content: 'Profil'; }
      #adminDosenTableBody > tr > td:nth-child(3) .btn:nth-child(2)::after { content: 'Sandi'; }
      #adminDosenTableBody > tr > td:nth-child(3) .btn:nth-child(3)::after { content: 'Edit'; }
      #adminDosenTableBody > tr > td:nth-child(3) .btn:nth-child(4)::after { content: 'Hapus'; }
      #adminDosenTableBody > tr > td[colspan] { display: block; width: 100% !important; padding: 18px !important; text-align: center !important; background: #fff !important; border-radius: 16px; }
    }
    /* ===== Berita, Konfigurasi Tampilan, Pusat Unduhan, Keamanan & Log, Manajemen Akun: tampilan HP ===== */
    @media (max-width: 767.98px) {
      /* --- Header halaman jadi panel gradasi (5 halaman) --- */
      #page-berita > .d-flex:first-child, #page-konfigurasi > .row:first-child > .col-12, #page-unduhan > .row:first-child > .col-12, #page-history > .row:first-child > .col-12 {
        padding: 16px !important; border-radius: 18px; color: #fff;
        background: linear-gradient(135deg, #059669 0%, #10b981 55%, #0ea5e9 100%); box-shadow: 0 10px 24px rgba(5,150,105,.25); }
      #page-konfigurasi > .row:first-child, #page-unduhan > .row:first-child, #page-history > .row:first-child { margin-left: 0; margin-right: 0; }
      #page-konfigurasi > .row:first-child > .col-12, #page-unduhan > .row:first-child > .col-12, #page-history > .row:first-child > .col-12 { flex-wrap: wrap; }
      #page-berita > .d-flex:first-child h4, #page-konfigurasi > .row:first-child h4, #page-unduhan > .row:first-child h4, #page-history > .row:first-child h4 { color: #fff !important; font-size: 1.15rem; margin-bottom: 4px; }
      #page-berita > .d-flex:first-child h4 i, #page-konfigurasi > .row:first-child h4 i, #page-unduhan > .row:first-child h4 i, #page-history > .row:first-child h4 i { color: #d1fae5 !important; }
      #page-berita > .d-flex:first-child p, #page-konfigurasi > .row:first-child p, #page-unduhan > .row:first-child p, #page-history > .row:first-child p { color: rgba(255,255,255,.88) !important; font-size: .74rem; margin-bottom: 0 !important; }
      #page-berita > .d-flex:first-child > .d-flex { flex: 1 1 100%; display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; margin-top: 4px; }
      #page-berita > .d-flex:first-child > .d-flex .btn:last-child { grid-column: 1 / -1; }
      #page-berita > .d-flex:first-child .btn, #page-konfigurasi > .row:first-child .btn { border-radius: 12px; font-size: .8rem; padding: .55rem .4rem; background: rgba(255,255,255,.18) !important; border: 1px solid rgba(255,255,255,.55) !important; color: #fff !important; box-shadow: none !important; }
      #page-berita > .d-flex:first-child .btn-primary-custom, #page-konfigurasi > .row:first-child .btn { background: #fff !important; color: #047857 !important; border: 0 !important; }
      #page-konfigurasi > .row:first-child .btn { width: 100%; margin-top: 8px; }

      /* Pola kartu umum */
      #page-berita .table-responsive, #page-unduhan .table-responsive, #page-history .table-responsive, #cardManajemenAkun .table-responsive { max-height: none !important; overflow: visible !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
      #page-berita .table-responsive > table, #page-unduhan .table-responsive > table, #page-history .table-responsive > table, #cardManajemenAkun .table-responsive > table,
      #adminBeritaBody, #adminUnduhanBody, #historyLogBody, #ipLogBody, #adminUsersBody { display: block; width: 100%; background: transparent !important; }
      #page-berita .table-responsive:not(.mb-1) > table > thead, #page-history thead, #cardManajemenAkun thead { display: none; }
      #adminBeritaBody > tr, #adminUnduhanBody > tr, #historyLogBody > tr, #ipLogBody > tr, #adminUsersBody > tr {
        display: grid; column-gap: 10px; row-gap: 8px; align-items: center; margin-bottom: 10px; padding: 14px;
        background: #fff !important; border: 1px solid #e5e7eb; border-radius: 16px; box-shadow: 0 4px 14px rgba(15,23,42,.06); }
      #adminBeritaBody > tr > td, #adminUnduhanBody > tr > td, #historyLogBody > tr > td, #ipLogBody > tr > td, #adminUsersBody > tr > td {
        display: block; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; text-align: left !important; min-width: 0; width: auto !important; max-width: none !important; white-space: normal !important; overflow: visible !important; }
      #adminBeritaBody > tr > td[colspan], #adminUnduhanBody > tr > td[colspan], #historyLogBody > tr > td[colspan], #ipLogBody > tr > td[colspan], #adminUsersBody > tr > td[colspan] { grid-column: 1 / -1 !important; grid-row: auto !important; width: 100% !important; text-align: center !important; padding: 10px 0 !important; }
      #adminBeritaBody .text-truncate, #adminUnduhanBody .text-truncate, #historyLogBody .text-truncate, #ipLogBody .text-truncate, #adminUsersBody .text-truncate { max-width: 100% !important; }

      /* --- Berita --- */
      #page-berita > .card { background: transparent; box-shadow: none !important; }
      #page-berita > .card > .card-header { background: #fff !important; border-radius: 16px !important; padding: 12px !important; margin-bottom: 12px; box-shadow: 0 4px 14px rgba(15,23,42,.06); }
      #page-berita > .card > .card-header .search-box-modern { max-width: none !important; }
      #page-berita > .card > .card-body { background: transparent; }
      #adminBeritaBody > tr { grid-template-columns: 1fr auto auto; border-left: 5px solid #10b981; }
      #adminBeritaBody > tr:has(.bg-secondary), #adminBeritaBody > tr:has(.bg-warning) { border-left-color: #cbd5e1; }
      #adminBeritaBody > tr > td:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
      #adminBeritaBody > tr > td:nth-child(2) .fw-bold { white-space: normal !important; font-size: .98rem !important; line-height: 1.3; margin-bottom: 4px; }
      #adminBeritaBody > tr > td:nth-child(1) { grid-column: 1; grid-row: 2; font-size: .75rem !important; }
      #adminBeritaBody > tr > td:nth-child(1)::before { content: '\f133'; font-family: 'Font Awesome 6 Free'; font-weight: 400; margin-right: 5px; }
      #adminBeritaBody > tr > td:nth-child(3) { grid-column: 2; grid-row: 2; }
      #adminBeritaBody > tr > td:nth-child(4) { grid-column: 3; grid-row: 2; }
      #adminBeritaBody > tr > td:nth-child(5) { grid-column: 1 / -1; grid-row: 3; display: flex !important; gap: 8px; }
      #adminBeritaBody > tr > td:nth-child(5) .btn { flex: 1 1 0; margin: 0 !important; border-radius: 12px; padding: .45rem !important; }
      #adminBeritaBody > tr > td:nth-child(5) .btn:nth-child(1)::after { content: ' Edit'; font-weight: 600; }
      #adminBeritaBody > tr > td:nth-child(5) .btn:nth-child(2)::after { content: ' Hapus'; font-weight: 600; }

      /* --- Konfigurasi Tampilan --- */
      #page-konfigurasi > .card > .card-header { display: none !important; }
      #page-konfigurasi > .card { background: transparent; box-shadow: none !important; }
      #page-konfigurasi > .card > .card-body { background: transparent !important; border: 0 !important; padding: 0 !important; }
      #page-konfigurasi #tab-banner > .card { border-radius: 18px !important; }
      #page-konfigurasi #bannerConfigForm .col-12.mt-2 > .d-flex { display: grid !important; gap: 8px !important; }
      #page-konfigurasi #bannerConfigForm .form-switch { display: flex; align-items: center; justify-content: space-between; flex-direction: row-reverse; gap: 10px; margin: 0; padding: 10px 12px; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 12px; }
      #page-konfigurasi #bannerConfigForm .form-switch .form-check-input { float: none; margin: 0; width: 2.6em; height: 1.4em; flex: 0 0 auto; }
      #page-konfigurasi #bannerConfigForm .form-switch .form-check-label { color: #334155; }
      #page-konfigurasi #bannerConfigForm .btn-primary-custom { padding: .6rem; border-radius: 12px; }
      #adminBannerGrid .card { border-radius: 18px !important; }
      #adminBannerGrid .card .btn { border-radius: 10px; }

      /* --- Pusat Unduhan --- */
      #page-unduhan > .card { background: transparent; box-shadow: none !important; }
      #page-unduhan > .card > .card-body { background: transparent !important; padding: 0 !important; }
      #tab-unduhan > .d-flex:first-child { flex-wrap: wrap; gap: 10px; padding: 12px; background: #fff; border-radius: 16px; box-shadow: 0 4px 14px rgba(15,23,42,.06); margin-bottom: 10px !important; }
      #tab-unduhan > .d-flex:first-child > h6 { flex: 1 1 100%; }
      #tab-unduhan > .d-flex:first-child > .d-flex { flex: 1 1 100%; display: grid !important; grid-template-columns: repeat(3, 1fr); }
      #tab-unduhan > .d-flex:first-child .btn { border-radius: 12px; font-size: .74rem; padding: .55rem .2rem; display: flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1.15; }
      #tab-unduhan > .d-flex:first-child .btn i { margin: 0 !important; font-size: 1rem; }
      #tab-unduhan nav { border-radius: 12px !important; }
      #page-unduhan thead { display: block; position: static !important; background: transparent !important; }
      #page-unduhan thead tr { display: flex; align-items: center; padding: 8px 14px; margin-bottom: 8px; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(15,23,42,.05); }
      #page-unduhan thead th { display: none; border: 0 !important; background: transparent !important; padding: 0 !important; }
      #page-unduhan thead th:first-child { display: flex; align-items: center; gap: 10px; width: auto !important; }
      #page-unduhan thead th:first-child::after { content: 'Pilih semua'; font-size: .8rem; font-weight: 600; color: #475569; text-transform: none; letter-spacing: 0; }
      #adminUnduhanBody > tr { grid-template-columns: auto 1fr auto; padding: 12px; }
      #adminUnduhanBody > tr > td:nth-child(1) { grid-column: 1; grid-row: 1; }
      #adminUnduhanBody > tr > td:nth-child(2) { grid-column: 2; grid-row: 1; }
      #adminUnduhanBody > tr > td:nth-child(2) > a { align-items: flex-start !important; word-break: break-word; line-height: 1.3; }
      #adminUnduhanBody > tr > td:nth-child(2) > a > i { margin-top: 2px; }
      #adminUnduhanBody > tr > td:nth-child(2) > div { flex-wrap: wrap; row-gap: 4px; word-break: break-word; }
      #adminUnduhanBody > tr > td:nth-child(2) .badge.ms-4 { margin-left: 0 !important; }
      #adminUnduhanBody > tr > td:nth-child(4) { grid-column: 3; grid-row: 1; display: flex !important; gap: 6px; }
      #adminUnduhanBody > tr > td:nth-child(4) .btn { margin: 0 !important; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
      #adminUnduhanBody > tr > td:nth-child(3) { grid-column: 2 / -1; grid-row: 2; font-size: .74rem !important; }
      #adminUnduhanBody > tr > td:nth-child(3) a { display: block !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

      /* --- Keamanan & Log --- */
      #securityDashboard { --bs-gutter-x: .5rem; --bs-gutter-y: .5rem; margin-bottom: 12px !important; }
      #securityDashboard .card-body { padding: 10px 8px !important; }
      #securityDashboard h3 { font-size: 1.4rem; }
      #page-history > .card { background: transparent; box-shadow: none !important; }
      #page-history > .card > .card-header { background: #fff !important; border-radius: 16px !important; padding: 10px !important; margin-bottom: 10px; box-shadow: 0 4px 14px rgba(15,23,42,.06); flex-wrap: nowrap !important; }
      #page-history > .card > .card-header .nav { flex-wrap: nowrap; flex: 1 1 auto; gap: 6px; }
      #page-history > .card > .card-header .nav-item { flex: 1 1 0; }
      #page-history > .card > .card-header .nav-link { width: 100%; margin: 0 !important; padding: .5rem .3rem !important; font-size: .78rem; border-radius: 10px; white-space: nowrap; }
      #page-history > .card > .card-header > .btn { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; }
      #page-history > .card > .card-body { background: transparent; }
      #tab-log > .p-3 { background: #fff !important; border: 0 !important; border-radius: 16px; margin-bottom: 10px; box-shadow: 0 4px 14px rgba(15,23,42,.06); padding: 10px !important; }
      #tab-log > .p-3 > * { flex: 1 1 100%; width: 100% !important; border-radius: 10px; }
      #historyLogBody > tr { grid-template-columns: 1fr auto; border-left: 5px solid #10b981; }
      #historyLogBody > tr:has(.border-danger) { border-left-color: #ef4444; }
      #historyLogBody > tr > td:nth-child(2) { grid-column: 1; grid-row: 1; }
      #historyLogBody > tr > td:nth-child(5) { grid-column: 2; grid-row: 1; align-self: start; }
      #historyLogBody > tr > td:nth-child(3) { grid-column: 1 / -1; grid-row: 2; padding: 8px 10px !important; background: #f8fafc !important; border-radius: 10px; }
      #historyLogBody > tr > td:nth-child(3) small { white-space: normal !important; word-break: break-word; }
      #historyLogBody > tr > td:nth-child(4) { grid-column: 1; grid-row: 3; font-size: .72rem; }
      #historyLogBody > tr > td:nth-child(4) small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      #historyLogBody > tr > td:nth-child(1) { grid-column: 2; grid-row: 3; align-self: start; text-align: right !important; font-size: .7rem !important; }
      #ipLogBody > tr { grid-template-columns: 1fr auto; }
      #ipLogBody > tr:has(.bg-danger) { border-left: 5px solid #ef4444; }
      #ipLogBody > tr > td:nth-child(1) { grid-column: 1; grid-row: 1; font-size: .95rem; word-break: break-all; }
      #ipLogBody > tr > td:nth-child(4) { grid-column: 2; grid-row: 1; }
      #ipLogBody > tr > td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: .78rem; padding: 8px 10px !important; background: #f8fafc !important; border-radius: 10px; }
      #ipLogBody > tr > td:nth-child(3) { grid-column: 1; grid-row: 3; font-size: .72rem !important; }
      #ipLogBody > tr > td:nth-child(3)::before { content: 'Terakhir akses: '; }
      #ipLogBody > tr > td:nth-child(5) { grid-column: 2; grid-row: 3; display: flex !important; gap: 6px; }
      #ipLogBody > tr > td:nth-child(5) .btn { margin: 0 !important; border-radius: 10px; }

      /* --- Manajemen Akun --- */
      #cardManajemenAkun .card { background: transparent; box-shadow: none !important; }
      #cardManajemenAkun .card-header { flex-wrap: wrap; gap: 10px; padding: 16px !important; border: 0; border-radius: 18px; margin-bottom: 12px; color: #fff;
        background: linear-gradient(135deg, #059669 0%, #10b981 55%, #0ea5e9 100%) !important; box-shadow: 0 10px 24px rgba(5,150,105,.25); }
      #cardManajemenAkun .card-header h5 { flex: 1 1 100%; color: #fff; font-size: 1.1rem; }
      #cardManajemenAkun .card-header h5 i { color: #d1fae5 !important; }
      #cardManajemenAkun .card-header .btn { width: 100%; padding: .6rem; border-radius: 12px; background: #fff !important; color: #047857 !important; border: 0; }
      #cardManajemenAkun .card-body { background: transparent; }
      #adminUsersBody > tr { grid-template-columns: 44px 1fr; border-radius: 18px; }
      #adminUsersBody > tr:not(:has(> td[colspan]))::before { content: '\f505'; font-family: 'Font Awesome 6 Free'; font-weight: 900; grid-column: 1; grid-row: 1 / 3;
        width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff;
        background: linear-gradient(135deg, #10b981, #0ea5e9); box-shadow: 0 6px 14px rgba(16,185,129,.3); }
      #adminUsersBody > tr > td:nth-child(2) { grid-column: 2; grid-row: 1; font-size: .98rem; line-height: 1.25; color: #0f172a !important; }
      #adminUsersBody > tr > td:nth-child(1) { grid-column: 2; grid-row: 2; font-size: .8rem !important; }
      #adminUsersBody > tr > td:nth-child(1)::before { content: '@'; opacity: .6; }
      #adminUsersBody > tr > td:nth-child(3) { grid-column: 1 / -1; grid-row: 3; }
      #adminUsersBody > tr > td:nth-child(4) { grid-column: 1 / -1; grid-row: 4; padding: 8px 10px !important; background: #f8fafc !important; border-radius: 12px; line-height: 1.9 !important; }
      #adminUsersBody > tr > td:nth-child(4):empty { display: none; }
      #adminUsersBody > tr > td:nth-child(5) { grid-column: 1 / -1; grid-row: 5; display: flex !important; gap: 8px; }
      #adminUsersBody > tr > td:nth-child(5) .btn { flex: 1 1 0; margin: 0 !important; border-radius: 12px; padding: .45rem !important; }
      #adminUsersBody > tr > td:nth-child(5) .btn:nth-child(2)::after { content: ' Hapus'; font-weight: 600; }
      #page-manajemen .card { border-radius: 18px !important; }
    }
    /* ===== Sidebar admin: tampilan modern (menu aktif, latar bercahaya, kartu merek, badge halus, kartu profil) ===== */
    #mainApp .sidebar {
      --sb-aksen1: #10b981; --sb-aksen2: #0ea5e9;
      background:
        radial-gradient(120% 60% at 0% 0%, rgba(16,185,129,.20) 0%, rgba(16,185,129,0) 55%),
        radial-gradient(90% 50% at 100% 35%, rgba(14,165,233,.10) 0%, rgba(14,165,233,0) 60%),
        linear-gradient(180deg, #06110d 0%, #0a1412 45%, #0a0f1a 100%) !important;
      border-right: 1px solid rgba(16,185,129,.12);
    }
    #mainApp .sidebar[data-peran="Kaprodi"] { --sb-aksen1: #3b82f6; --sb-aksen2: #06b6d4; }
    #mainApp .sidebar[data-peran="Dekan"]   { --sb-aksen1: #f59e0b; --sb-aksen2: #10b981; }
    #mainApp .sidebar[data-peran="Staff"]   { --sb-aksen1: #8b5cf6; --sb-aksen2: #0ea5e9; }
    #mainApp .sidebar[data-peran="Dosen"]   { --sb-aksen1: #14b8a6; --sb-aksen2: #0ea5e9; }

    /* Kartu merek */
    #mainApp .sidebar-header { background: rgba(6,17,13,.55) !important; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); padding: 1.3rem 1.2rem 1.1rem !important; }
    .logo-sip { width: 36px; height: 36px; border-radius: 10px; background: #fff; padding: 2px; object-fit: contain; flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
    #mainApp .sidebar-header h4 { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.25rem; letter-spacing: 1.5px; }
    #mainApp .sidebar-header h4 i { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; color: #fff !important;
      background: linear-gradient(135deg, var(--sb-aksen1), var(--sb-aksen2)); box-shadow: 0 8px 20px rgba(16,185,129,.35), inset 0 1px 0 rgba(255,255,255,.25); }
    #mainApp .sidebar-header small { display: inline-block; margin-top: 8px; padding: 3px 12px; border-radius: 999px; font-size: .62rem !important; font-weight: 800; letter-spacing: 2px !important;
      color: #fff !important; background: linear-gradient(135deg, var(--sb-aksen1), var(--sb-aksen2)); opacity: .9; }

    /* Judul kelompok menu */
    #mainApp .sidebar-heading { color: #6b8f84 !important; font-weight: 800; letter-spacing: 2px; }
    #mainApp .sidebar-heading::after { background: linear-gradient(90deg, rgba(16,185,129,.35), rgba(16,185,129,0)) !important; }

    /* Menu */
    #mainApp .nav-item-custom { position: relative; border-radius: 12px; color: #a7b5b0; }
    #mainApp .nav-item-custom:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.07); color: #ecfdf5; }
    #mainApp .nav-item-custom.active {
      background: linear-gradient(135deg, var(--sb-aksen1) 0%, var(--sb-aksen2) 100%) !important; color: #fff !important; border-color: rgba(255,255,255,.12) !important;
      box-shadow: 0 8px 22px rgba(16,185,129,.30), inset 0 1px 0 rgba(255,255,255,.22) !important; font-weight: 700; }
    #mainApp .nav-item-custom.active::before { left: -12px; top: 18%; bottom: 18%; width: 4px; background: var(--sb-aksen1); box-shadow: 0 0 12px var(--sb-aksen1), 0 0 4px var(--sb-aksen1); }
    #mainApp .nav-group-head { border-radius: 12px; }
    #mainApp .nav-group.open > .nav-group-head { background: rgba(255,255,255,.04); color: #fff; }
    #mainApp .nav-group-body { border-left: 1px solid rgba(16,185,129,.18) !important; }
    #mainApp .nav-ico { box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }

    /* Badge lebih halus (tetap merah tegas pada judul grup yang tertutup) */
    #mainApp .nav-item-custom .badge.bg-danger { background: rgba(239,68,68,.16) !important; color: #fca5a5 !important; border: 1px solid rgba(239,68,68,.35); font-weight: 700; animation: none !important; }
    #mainApp .nav-item-custom.active .badge.bg-danger { background: rgba(255,255,255,.25) !important; color: #fff !important; border-color: rgba(255,255,255,.4); }
    #mainApp .nav-group-badge.bg-danger { background: linear-gradient(135deg, #ef4444, #f97316) !important; border: 0; box-shadow: 0 0 0 3px rgba(239,68,68,.15); }
    #mainApp .nav-group.open .nav-group-badge { opacity: .55; animation: none !important; }

    /* Kartu profil */
    #mainApp .sb-profile-wrap { background: linear-gradient(180deg, rgba(6,17,13,0) 0%, rgba(8,14,18,.96) 40%) !important; border-top: 1px solid rgba(255,255,255,.05); }
    #mainApp .sb-profile { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 10px 10px 10px 12px; backdrop-filter: blur(8px); }
    #mainApp .sb-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--sb-aksen1), var(--sb-aksen2)) !important; box-shadow: 0 6px 16px rgba(16,185,129,.35); }
    #mainApp .sb-online { border-color: #0a1412; box-shadow: 0 0 0 2px rgba(34,197,94,.25); }
    #mainApp .sb-name { white-space: normal !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; font-size: .82rem; }
    #mainApp .sb-role { color: #86efac !important; font-weight: 600; }
    #mainApp .sb-profile > button { width: 36px !important; height: 36px !important; border-radius: 50% !important; transition: transform .15s, background .15s; }
    #mainApp .sb-profile > button:hover { transform: translateY(-1px); }
        /* ===== HALAMAN LOGIN BARU (kaca / glassmorphism) — awalan .lgn ===== */
    html.awal-login #publicPortal { display: none !important; }
    html.awal-login #loginPage.d-none { display: flex !important; }
    html.awal-masuk #publicPortal, html.awal-masuk #loginPage { visibility: hidden !important; }
    html.awal-masuk body { background: #f8fafc; }
    /* Selama skrip aplikasi masih diunduh, tampilkan pemutar netral (bukan halaman publik/login yang tersembunyi di belakangnya) */
    html.awal-masuk body::before { content: ''; position: fixed; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 3px solid #d1fae5; border-top-color: #10b981; border-radius: 50%; animation: awalPutar .8s linear infinite; z-index: 9999; }
    @keyframes awalPutar { to { transform: rotate(360deg); } }
    #awalLambat { display: none; }
    html.awal-masuk.awal-lambat #awalLambat { display: flex; position: fixed; inset: 0; z-index: 10000; align-items: flex-end; justify-content: center; padding: 0 16px 14vh; pointer-events: none; }
    #awalLambat > div { pointer-events: auto; background: #fff; border: 1px solid #d1fae5; border-radius: 16px; padding: 14px 18px; text-align: center; max-width: 340px; box-shadow: 0 10px 30px rgba(15,23,42,.12); font-family: system-ui, sans-serif; }
    #awalLambat b { display: block; color: #065f46; margin-bottom: 4px; }
    #awalLambat span { display: block; font-size: .85rem; color: #475569; margin-bottom: 10px; }
    #awalLambat button { border: 0; border-radius: 10px; padding: 8px 16px; font-weight: 700; background: #059669; color: #fff; }
    .lgn { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: clamp(14px, 3vw, 40px); background: #04130f; overflow: hidden; isolation: isolate; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }
    .lgn-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(1100px 700px at 10% -10%, #0b5d4a 0%, transparent 60%), radial-gradient(900px 620px at 100% 110%, #0b3a6b 0%, transparent 55%), #04130f; }
    .lgn-orb { position: absolute; border-radius: 50%; filter: blur(80px); animation: lgnMelayang 20s ease-in-out infinite; }
    .lgn-orb.o1 { width: 440px; height: 440px; background: #10b981; opacity: .5; top: -130px; left: -90px; }
    .lgn-orb.o2 { width: 400px; height: 400px; background: #2563eb; opacity: .45; bottom: -150px; right: -70px; animation-delay: -7s; }
    .lgn-orb.o3 { width: 260px; height: 260px; background: #f5c451; opacity: .2; top: 55%; left: 46%; animation-delay: -12s; }
    .lgn-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%); }
    @keyframes lgnMelayang { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(40px, -30px, 0) scale(1.08); } }
    @keyframes lgnMasuk { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
        /* Performa: saat kursor di dalam kartu login, hentikan gerak latar & blur kaca agar mengetik lancar */
    .lgn:focus-within .lgn-orb { animation: none; }
    .lgn-card:focus-within { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255,255,255,.09); }
    .lgn-wrap { width: 100%; max-width: 1080px; animation: lgnMasuk .7s cubic-bezier(.2, .8, .2, 1) both; }
    .lgn-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); border-radius: 34px; overflow: hidden; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 50px 100px -24px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.22); -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); }
    .lgn-form-panel { background: rgba(255,255,255,.96); padding: clamp(28px, 4.2vw, 54px); display: flex; flex-direction: column; justify-content: center; }
    .lgn-brand { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(20px, 3.5vw, 34px); }
    .lgn-brand img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.15)); }
    .lgn-brand b { display: block; font-size: 1.05rem; font-weight: 800; letter-spacing: .6px; color: #064e3b; line-height: 1.1; }
    .lgn-brand small { display: block; font-size: .72rem; color: #64748b; font-weight: 500; margin-top: 2px; }
    .lgn-title { font-size: clamp(1.7rem, 3vw, 2.15rem); font-weight: 800; color: #0f172a; letter-spacing: -.6px; margin: 0 0 6px; }
    .lgn-sub { color: #64748b; font-size: .92rem; margin: 0 0 clamp(18px, 3vw, 28px); line-height: 1.5; }
    .lgn-field { position: relative; margin-bottom: 14px; }
    .lgn-field .lgn-ic { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: .95rem; pointer-events: none; transition: color .2s; }
    .lgn-field input { width: 100%; height: 58px; border-radius: 16px; border: 1.5px solid #e2e8f0; background: #f8fafc; padding: 20px 50px 0 46px; font-size: .98rem; font-weight: 500; color: #0f172a; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
    .lgn-field input:hover { border-color: #cbd5e1; }
    .lgn-field input:focus { border-color: #10b981; background: #fff; box-shadow: 0 0 0 4px rgba(16,185,129,.16); }
    .lgn-field label { position: absolute; left: 46px; top: 50%; transform: translateY(-50%); color: #64748b; font-size: .94rem; font-weight: 500; pointer-events: none; transition: all .18s ease; }
    .lgn-field input:focus + label, .lgn-field input:not(:placeholder-shown) + label, .lgn-field input:-webkit-autofill + label { top: 17px; transform: none; font-size: .68rem; font-weight: 700; letter-spacing: .3px; color: #059669; }
    .lgn-field:focus-within .lgn-ic { color: #10b981; }
    .lgn-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; background: transparent; color: #94a3b8; border-radius: 12px; cursor: pointer; transition: all .2s; }
    .lgn-eye:hover { background: #ecfdf5; color: #059669; }
    .lgn-btn { width: 100%; height: 56px; margin-top: 6px; border: 0; border-radius: 16px; color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: .2px; cursor: pointer; background: linear-gradient(135deg, #059669 0%, #10b981 55%, #34d399 100%); box-shadow: 0 14px 28px -10px rgba(5,150,105,.7); transition: transform .2s, box-shadow .2s, filter .2s; display: flex; align-items: center; justify-content: center; gap: 10px; }
    .lgn-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(5,150,105,.8); filter: saturate(1.1); }
    .lgn-btn:active { transform: translateY(0); }
    .lgn-btn:disabled { filter: grayscale(.6); cursor: not-allowed; transform: none; }
    .lgn-lupa { margin-top: 18px !important; }
    .lgn-lupa a { color: #475569; font-size: .85rem; font-weight: 600; text-decoration: none; }
    .lgn-lupa a:hover { color: #059669; }
    .lgn-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-top: clamp(18px, 3vw, 28px); padding-top: 18px; border-top: 1px dashed #e2e8f0; }
    .lgn-foot a { color: #64748b; font-size: .8rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
    .lgn-foot a:hover { color: #059669; }
    .lgn-foot a .fa-whatsapp { color: #22c55e; }
    .lgn-hero { position: relative; color: #fff; padding: clamp(30px, 4.4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 22px; background: linear-gradient(155deg, rgba(5,60,48,.82) 0%, rgba(6,78,59,.7) 45%, rgba(10,46,84,.78) 100%); overflow: hidden; }
    .lgn-hero::before { content: ''; position: absolute; width: 420px; height: 420px; right: -150px; top: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(245,196,81,.28), transparent 65%); }
    .lgn-hero::after { content: ''; position: absolute; inset: 0; background: url('https://sipetekes-upa.eedu.my.id/Image/logo-upa-kecil.png') no-repeat right -50px bottom -60px / 300px; opacity: .06; pointer-events: none; }
    .lgn-hero > * { position: relative; z-index: 1; }
    .lgn-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .4px; color: #fde68a; background: rgba(245,196,81,.12); border: 1px solid rgba(245,196,81,.35); }
    .lgn-hero h2 { font-size: clamp(1.55rem, 2.8vw, 2.25rem); font-weight: 800; line-height: 1.18; letter-spacing: -.7px; margin: 0; }
    .lgn-hero h2 em { font-style: normal; background: linear-gradient(90deg, #6ee7b7, #fde68a); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .lgn-hero p { margin: 0; color: rgba(255,255,255,.78); font-size: .95rem; line-height: 1.6; max-width: 46ch; }
    .lgn-tags { display: flex; flex-wrap: wrap; gap: 8px; }
    .lgn-tags span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 12px; font-size: .78rem; font-weight: 600; color: #e2e8f0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
    .lgn-tags span i { color: #6ee7b7; }
    .lgn-rpl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 18px; border-radius: 22px; background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
    .lgn-rpl-ic { grid-row: span 2; width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #3b2a00; background: linear-gradient(135deg, #fde68a, #f5c451); box-shadow: 0 10px 22px -8px rgba(245,196,81,.8); }
    .lgn-rpl b { font-size: 1rem; font-weight: 800; }
    .lgn-rpl span.t { font-size: .82rem; color: rgba(255,255,255,.75); line-height: 1.45; }
    .lgn-rpl button { grid-column: 1 / -1; margin-top: 8px; height: 50px; border: 0; border-radius: 14px; font-weight: 800; font-size: .95rem; color: #064e3b; cursor: pointer; background: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 12px 24px -10px rgba(0,0,0,.5); transition: transform .2s, box-shadow .2s; }
    .lgn-rpl button:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(0,0,0,.6); }
    .lgn-rpl button i { transition: transform .2s; }
    .lgn-rpl button:hover i { transform: translateX(4px); }
    .lgn-copy { text-align: center; color: rgba(255,255,255,.5); font-size: .74rem; margin: 18px 0 0; }
    #googleLoginWrap { margin-top: 14px !important; }
    @media (max-width: 860px) {
      .lgn { align-items: flex-start; }
      .lgn-card { grid-template-columns: 1fr; border-radius: 28px; }
      .lgn-hero { gap: 18px; }
      .lgn-hero p, .lgn-tags { display: none; }
      .lgn-hero h2 { font-size: 1.35rem; }
    }
    @media (max-width: 420px) { .lgn { padding: 10px; } .lgn-form-panel { padding: 24px 20px; } .lgn-hero { padding: 24px 20px; } .lgn-card { border-radius: 24px; } }
    @media (prefers-reduced-motion: reduce) { .lgn-orb, .lgn-wrap { animation: none; } }
  

/* ===== Blok gaya ke-2 (sebelumnya di dalam <section id="publicPortal">) ===== */

      /* --- LAPISAN DESKTOP SPLIT LAYOUT (Hanya aktif di PC/Laptop, Nonaktif di HP) --- */
      @media (min-width: 992px) {
        .desktop-split-layout { 
          display: flex; 
          height: 100vh; 
          width: 100%; 
          overflow: hidden; 
          background-color: #f8fafc; 
        }
        .desktop-left-panel { 
          width: 35%; 
          min-width: 400px;
          max-width: 500px; 
          height: 100vh; 
          display: flex; 
          flex-direction: column; 
          background-color: #047857; 
          z-index: 10; 
          box-shadow: 4px 0 25px rgba(0,0,0,0.1); 
        }
        .desktop-banner-wrapper { 
          flex-grow: 1; 
          display: flex; 
          align-items: center; 
          padding: 1.5rem; 
          background: radial-gradient(rgba(255, 255, 255, 0.08) 2px, transparent 2px), linear-gradient(135deg, #047857, #10b981); 
          background-size: 30px 30px, 100% 100%; 
        }
        .desktop-right-panel { 
          flex-grow: 1; 
          height: 100vh; 
          overflow-y: auto; 
          background-color: #f8fafc; 
          padding: 3rem 4rem; 
        }
        .desktop-services-title { 
          display: block !important; 
          margin-bottom: 2rem; 
        }
        .desktop-right-panel .services-wrapper { 
          margin-top: 0 !important; 
          max-width: 1200px; 
          margin-left: auto; 
          margin-right: auto; 
        }
        .desktop-right-panel .service-card { 
          padding: 1.5rem !important; 
          min-height: 160px; 
          display: flex; 
          flex-direction: column; 
          justify-content: center; 
          align-items: center; 
          transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .desktop-right-panel .service-card:hover {
          transform: translateY(-8px) scale(1.03);
          box-shadow: 0 15px 30px rgba(124, 58, 237, 0.12), 0 0 15px rgba(124, 58, 237, 0.05);
        }
        .desktop-right-panel .service-icon { 
          font-size: 2.5rem; 
          margin-bottom: 12px; 
        }
        .desktop-right-panel .service-card h5 { 
          font-size: 1.05rem; 
        }
        .desktop-right-panel .service-card p { 
          font-size: 0.85rem; 
        }
        .mobile-only-footer { display: none !important; }
        .desktop-only-footer { 
          display: block !important; 
          border-top: 1px solid rgba(255,255,255,0.1); 
        }
        
        /* Custom Scrollbar Khusus Panel Kanan Desktop */
        .desktop-right-panel::-webkit-scrollbar { width: 8px; }
        .desktop-right-panel::-webkit-scrollbar-track { background: transparent; }
        .desktop-right-panel::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
        .desktop-right-panel::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
      }
      
      /* Sembunyikan elemen khusus Desktop saat di HP/Tablet agar kembali seperti semula */
      @media (max-width: 991.98px) {
        .desktop-services-title { display: none !important; }
        .desktop-only-footer { display: none !important; }
      }
    

    /* Konversi RPL: tabel mengikuti gulir modal (tanpa kotak gulir sendiri yang tertutup bilah Simpan) */
    #rplPanelKonversi .table-responsive:not([style*="max-height"]) { max-height: none !important; overflow: visible !important; }
