    body { background-color: #f4f6f9; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
    .hidden { display: none !important; }

    .logo-isp {
      width: 108px;
      height: 108px;
      object-fit: contain;
      border-radius: 14px;
      background: #fff;
      box-shadow: 0 6px 18px rgba(0,0,0,0.08);
      padding: 6px;
      margin-bottom: 12px;
    }

    .login-title {
      font-size: 1.9rem;
      line-height: 1.15;
    }

    .login-subtitle {
      font-size: 1.35rem;
      font-weight: 700;
    }

    .admin-access-btn {
      position: fixed;
      top: 16px;
      right: 16px;
      z-index: 1200;
      border-radius: 999px;
      box-shadow: 0 4px 12px rgba(13,110,253,0.2);
    }

    /* Failsafe: hidden overlay must never capture clicks */
    #loadingOverlay.hidden {
      display: none !important;
      pointer-events: none !important;
    }

    /* Failsafe for Apps Script deploy race conditions */
    .modal:not(.show) {
      pointer-events: none !important;
    }

    /* Prevent stale backdrop from locking whole UI */
    .modal-backdrop {
      pointer-events: none !important;
    }
    
    /* Loading Overlay */
    #loadingOverlay {
      position: fixed; top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(255, 255, 255, 0.8); z-index: 9999;
      display: flex; justify-content: center; align-items: center; flex-direction: column;
    }
    
    /* Custom Card Styles */
    .card-login { max-width: 420px; margin: 70px auto; border-radius: 15px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
    .nav-tabs .nav-link.active { font-weight: bold; color: #0d6efd; border-bottom: 3px solid #0d6efd; }
    .status-aman { background-color: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
    .status-bahaya { background-color: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }
    
    /* FIX: Bootstrap .toast has pointer-events:auto + opacity:0 saat tersembunyi,
       menjadi invisible click-blocker yang menutupi tombol Login Admin */
    #liveToast:not(.show):not(.showing) {
      pointer-events: none !important;
    }

    /* Realtime Calc Box */
    #calcResultBox { background: #e9ecef; border-left: 5px solid #0d6efd; min-height: 80px; }

    /* Utility: Hide Scrollbar */
    .scrollbar-hide::-webkit-scrollbar { display: none; }
    .scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

    /* Super Mobile Friendly: Responsive Tables */
    @media (max-width: 767.98px) {
      .table-responsive-cards table,
      .table-responsive-cards thead,
      .table-responsive-cards tbody,
      .table-responsive-cards th,
      .table-responsive-cards td,
      .table-responsive-cards tr {
        display: block;
      }
      
      .table-responsive-cards thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
      }
      
      .table-responsive-cards tr {
        border: 1px solid #dee2e6;
        border-radius: 12px;
        margin-bottom: 15px;
        background-color: #fff;
        padding: 12px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.04);
      }
      
      .table-responsive-cards td {
        border: none;
        position: relative;
        padding-left: 45% !important;
        text-align: right;
        margin-bottom: 8px;
        border-bottom: 1px solid #f1f3f5;
        padding-bottom: 8px !important;
      }
      
      .table-responsive-cards td:last-child {
        margin-bottom: 0;
        border-bottom: none;
        padding-bottom: 0 !important;
        text-align: center;
        padding-left: 0 !important; /* Center the action buttons on mobile */
      }
      
      .table-responsive-cards td:last-child::before {
        display: none; /* No label for action buttons */
      }
      
      .table-responsive-cards td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 40%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        color: #495057;
      }
      
      .card-login { margin: 20px auto; }
      
      .admin-access-btn {
        top: 10px;
        right: 10px;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
      }
    }
