/* --- 
File CSS Utama - Desain Modern (Hasil Poles)
--- 
*/

/* --- 1. Global & Tipografi --- */
/* --- 1. Global & Tipografi --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #212529; 
    
    /* [PERBAIKAN] Ganti latar belakang agar ada kontras */
    background-color: #f0f2f5; /* Abu-abu yang sedikit lebih gelap */
    
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 20px 30px;
    background-color: #ffffff;
    border-radius: 8px;
    
    /* [PERBAIKAN] Shadow lebih jelas */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    
    border: 1px solid #dee2e6;
}

/* [SARAN] Utility class untuk form admin */
.container-narrow {
    max-width: 700px;
}

/* --- 1.5 Page Header (Dashboard & Kategori) --- */
.page-header {
    background-color: #f8f9fa; /* Warna latar yang sedikit beda */
    padding: 25px 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}
.page-header h1 {
    margin: 0 0 5px 0; /* Kurangi margin */
    font-weight: 600;
}
.page-header p {
    margin: 0;
    font-size: 1.1em;
    color: #555;
}

/* --- 1.6 Page Title Bar (Admin Data Tables) --- */
.page-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap; 
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}
.page-title-bar h1 {
    margin: 0 0 5px 0;
    font-weight: 600;
}
.page-title-bar p {
    margin: 0;
    font-size: 1.1em;
    color: #555;
}
.page-title-actions {
    flex-shrink: 0;
}

/* --- 1.8 Halaman Login (REVISI - Glassmorphism) --- */

/* Latar belakang halaman login */
body.login-page {
    font-family: 'Inter', sans-serif;
    color: #333; /* Teks gelap untuk kontras */
    
    /* [PERBAIKAN] Ganti background K3 gelap */
    background-color: #f0f8ff; /* Latar biru langit muda */
    background-image: linear-gradient(to top, #a1c4fd 0%, #c2e9fb 100%),
                      url('https://images.unsplash.com/photo-1500382017468-9049fed747ef');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box; /* Agar padding tidak merusak */
}

/* Kotak Kaca Utama */
.glass-login-box {
    width: 100%;
    max-width: 420px;
    padding: 35px 40px;
    
    /* Efek Glassmorphism */
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Ikon di atas judul */
.login-icon-box {
    width: 40px;
    height: 60px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.login-icon-box i {
    color: #0d6efd; /* Biru */
    font-size: 1.8em;
}

.glass-login-box h2 {
    font-size: 1.8em;
    font-weight: 600;
    color: #222;
    margin-top: 0;
    margin-bottom: 10px;
}
.login-subheading {
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 25px;
}

/* Grup Input (Icon + Input) */
.input-group {
    position: relative;
    margin-bottom: 15px;
}
/* --- [PERBAIKAN] CSS Ikon dan Input Login --- */

/* Style HANYA untuk ikon KIRI (amplop/gembok) */
.input-group i:first-of-type {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 0.9em;
    z-index: 10; /* Pastikan ikon di atas input */
}

/* Style HANYA untuk ikon KANAN (mata) */
#togglePassword {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    cursor: pointer;
    font-size: 0.9em;
    z-index: 10; /* Pastikan ikon di atas input */
}

/* Style dasar (bersama) */
.input-group input[type="text"],
.input-group input[type="password"] {
    width: 100%;
    background-color: #f3f7fa;
    border: 1px solid #e0e8f0;
    border-radius: 10px;
    font-size: 1em;
    font-family: 'Inter', sans-serif;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #0d6efd;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}
/* --- AKHIR BLOK PERBAIKAN --- */

.input-group input[type="text"] {
    padding: 14px 18px 14px 50px; /* Padding: Atas, Kanan, Bawah, Kiri (utk ikon amplop) */
}

/* [PERBAIKAN] Padding untuk input Password */
.input-group input[type="password"] {
    /* Padding kanan 50px untuk memberi ruang bagi ikon mata */
    /* DI SINI V                      */
    padding: 14px 50px 14px 50px !important; 
}
.input-group input[type="email"] {
    /* Padding kanan 50px untuk memberi ruang bagi ikon mata */
    /* DI SINI V                      */
    padding: 14px 50px 14px 50px !important; 
}


.input-group input[type="text"],
.input-group input[type="password"]
.input-group input[type="email"] {
    width: 100%;
    background-color: #f3f7fa; /* Latar input abu-abu muda */
    border: 1px solid #e0e8f0;
    border-radius: 10px;
    font-size: 1em;
    font-family: 'Inter', sans-serif;
    color: #333;
    box-sizing: border-box; /* Wajib */
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input-group input::placeholder {
    color: #aaa;
}input-grouptable
.input-group input:focus {
    outline: none;
    border-color: #0d6efd;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}   
/* --- TAMBAHKAN DI BAWAH BLOK .input-group input:focus --- */

/* [BARU] Style untuk SELECT box di halaman login */
.input-group select.form-select {
    width: 100%;
    padding: 14px 18px 14px 50px; /* Padding sama dengan input lainnya */
    background-color: #f3f7fa; 
    border: 1px solid #e0e8f0;
    border-radius: 10px;
    font-size: 1em;
    font-family: 'Inter', sans-serif;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.2s;
    
    /* Agar panah dropdown terlihat rapi (perlu sedikit penyesuaian untuk ikon) */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20fill%3D%22%23666%22%20d%3D%22M10%2014l-4-4h8l-4%204z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

.input-group select.form-select:focus {
    border-color: #0d6efd;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
    outline: none;
}

.forgot-password-link {
    display: block;
    text-align: right;
    font-size: 0.9em;
    color: #555;
    text-decoration: none;
    margin-top: -5px;
    margin-bottom: 20px;
}
.forgot-password-link:hover {
    text-decoration: underline;
}

/* Tombol Submit Utama */
.btn-submit-glass {
    width: 100%;
    padding: 15px;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}
.btn-submit-glass:hover {
    background-color: #160067;
    transform: translateY(-2px);
}

/* Pembatas "Or sign in with" */
.social-divider {
    font-size: 0.9em;
    color: #888;
    margin: 25px 0 20px 0;
    position: relative;
    text-transform: uppercase;
}
.social-divider::before,
.social-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #ddd;
}
.social-divider::before {
    left: 0;
}
.social-divider::after {
    right: 0;
}

/* Tombol Social Login */
.social-logins {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.social-btn {
    background: #fff;
    border: 1px solid #e0e8f0;
    border-radius: 10px;
    width: 60px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}
.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-color: #ccc;
}
.social-btn img {
    height: 24px;
    width: 24px;
    object-fit: contain;
}

/* Style Alert Error (agar cocok dengan tema) */
.glass-login-box .alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border-color: #f5c2c7;
    text-align: left;
}
.glass-login-box .alert ul.alert-list {
    margin: 0;
    padding-left: 20px;
}

/* Responsif (sudah diatur oleh max-width) */
@media (max-width: 480px) {
    .glass-login-box {
        padding: 30px 25px;
    }
    .social-divider::before,
    .social-divider::after {
        width: 25%;
    }
}

/* Hapus .login-container-k3 LAMA */
.login-container-k3 {
    display: none;
}   

/* =========================================
   NAVBAR MODERN DENGAN WARNA ROLE (REVISI)
   ========================================= */

/* --- 2. NAVBAR BASE STYLE (Floating & Glass) --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%; 
    height: 70px; /* Tinggi fix agar rapi */
    margin: 0;
    border-radius: 0;
    
    background-color: #ffffff;
    border-bottom: 1px solid #e3e6f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03); /* Shadow lebih halus */
    
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    box-sizing: border-box;
    transition: all 0.3s ease;
}
/* Pastikan Navbar Kiri tidak terhimpit */
.navbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Pastikan Navbar Kanan tidak terhimpit */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px; /* Jarak antar elemen lebih rapat */
}

/* Tombol Toggle (Hamburger) */
.navbar .sidebar-toggle {
    font-size: 1.2em;
    cursor: pointer;
    color: #888;
    padding: 8px;
    border-radius: 50%;
    transition: 0.2s;
}
.navbar .sidebar-toggle:hover {
    background-color: #f8f9fa;
    color: #333;
}

/* Area Kanan (User Info) */
.navbar-user-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-details {
    text-align: right;
    line-height: 1.3;
}

.user-profile {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Rata kanan */
    justify-content: center;
    
    /* HAPUS BORDER & PADDING LAMA */
    border-right: none; 
    padding-right: 0;
}

.user-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.2;
}
.user-role {
    display: inline-block;
    font-size: 0.7rem; /* Ukuran font kecil */
    font-weight: 600;
    color: #858796;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    
    /* Tampilan Badge Minimalis */
    background-color: #f1f3f5;
    padding: 2px 8px;
    border-radius: 12px;
}
/* Badge Role (Kapsul Warna) */
.user-role-badge {
    display: inline-block;
    font-size: 0.75em;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #e0e7ff; /* Default biru muda */
    color: #4361ee; /* Default biru */
}

/* Tombol Logout */
.btn-logout-nav {
    width: 38px;
    height: 38px;
    border-radius: 50%; /* Bulat Sempurna */
    background-color: #fff; /* Latar putih */
    color: #dc3545; /* Ikon Merah */
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    
    /* Border tipis abu-abu (bukan merah tebal) */
    border: 1px solid #e3e6f0; 
    transition: all 0.2s ease;
}
.btn-logout-nav:hover {
    background-color: #dc3545; /* Merah saat hover */
    color: white; /* Ikon putih saat hover */
    border-color: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    transform: scale(1.05);
}


/* =========================================
   KUSTOMISASI WARNA PER ROLE
   ========================================= */

/* --- 1. SHE (Merah Safety) --- */
.navbar-she .user-name {
    color: #dc3545;
}
.navbar-she .user-role-badge {
    background-color: #f8d7da; /* Merah muda */
    color: #842029; /* Merah tua */
    border: 1px solid #f5c6cb;
}
.navbar-she {
    border-top: 3px solid #dc3545; /* Aksen border atas */
}

/* --- 2. PENGAWAS MAINTENANCE (Oranye) --- */
.navbar-pengawas_maintenance .user-name {
    color: #fd7e14;
}
.navbar-pengawas_maintenance .user-role-badge {
    background-color: #fff3cd; /* Kuning/Oranye muda */
    color: #664d03; /* Coklat/Oranye tua */
    border: 1px solid #ffecb5;
}
.navbar-pengawas_maintenance {
    border-top: 3px solid #fd7e14;
}

/* --- 3. SUPERADMIN (Hitam & Emas - Exclusive) --- */
.navbar-superadmin {
    background-color: rgba(33, 37, 41, 0.95); /* Hitam transparan */
    border: 1px solid #495057;
}
.navbar-superadmin .sidebar-toggle {
    color: #ffc107; /* Ikon hamburger jadi emas */
}
.navbar-superadmin .user-name {
    color: #ffffff; /* Nama putih */
}
.navbar-superadmin h4 { /* Judul halaman */
    color: #e0e0e0 !important;
}
.navbar-superadmin .user-role-badge {
    background-color: #ffc107; /* Emas */
    color: #000000; /* Teks hitam */
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.4); /* Efek glow emas */
}


/* --- RESPONSIVE ADJUSTMENT --- */
@media (max-width: 768px) {
    .navbar {
        margin: 0;
        width: 100%;
        border-radius: 0;
        top: 0;
        border: none;
        border-bottom: 1px solid #eee;
    }
    /* Hilangkan border top warna di mobile agar lebih bersih */
    .navbar-she, .navbar-pengawas_maintenance {
        border-top: none;
    }
}

/* Saat Sidebar Tertutup (Desktop) */
body.sidebar-collapsed .navbar {
    margin-left: 2vh;
}
/* --- 5. Tombol Global (Gaya Baru) --- */
.btn {
    padding: 10px 15px;
    background-color: #0d6efd; /* Biru Primer */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s ease-out;
}
.btn:hover { 
    background-color: #0b5ed7; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
    transform: translateY(-2px); 
}
.btn-success { background-color: #198754; }
.btn-success:hover { background-color: #157347; }
.btn-info { background-color: #0dcaf0; }
.btn-info:hover { background-color: #0aa3c2; }
.btn-warning { background-color: #ffc107; color: #000; }
.btn-warning:hover { background-color: #e0a800; }
.btn-danger { background-color: #dc3545; }
.btn-danger:hover { background-color: #bb2d3b; }
.btn-secondary { background-color: #6c757d; }
.btn-secondary:hover { background-color: #5c636a; }
.btn-sm { padding: 5px 10px; font-size: 0.9em; }

.btn-lg {
    font-size: 1.1em;
    padding: 12px 18px;
    font-weight: 500;
}
.btn-submit { 
    font-size: 1.05em; 
    font-weight: 500; 
    padding: 12px 20px; 
}
.btn-action {
    font-size: 1.05em; 
    padding: 10px 15px;
    font-weight: 500;
}

/* --- 6. Halaman Kategori Permit (REVISI KREATIF - KARTU PUTIH) --- */
.kategori-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* [PERBAIKAN] Style dasar kartu diubah jadi putih dan bersih */
.kategori-card {
    display: block;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px 30px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    border-left: 5px solid #dee2e6; /* Border kiri default */
}

/* Efek hover modern */
.kategori-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Teks di dalam kartu */
.kategori-card h3 {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #212529; /* Teks gelap */
    display: flex;
    align-items: center;
    gap: 12px;
}

.kategori-card .kategori-desc {
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
}

/* [PERBAIKAN] Terapkan warna K3 hanya pada Ikon dan Border-Hover */

/* Tema Sukses (Hijau) */
.kategori-card.theme-success h3 i {
    color: #198754;
}
.kategori-card.theme-success:hover {
    border-left-color: #198754;
}

/* Tema Bahaya (Merah) */
.kategori-card.theme-danger h3 i {
    color: #dc3545;
}
.kategori-card.theme-danger:hover {
    border-left-color: #dc3545;
}

/* Tema Primer (Biru) */
.kategori-card.theme-primary h3 i {
    color: #0d6efd;
}
.kategori-card.theme-primary:hover {
    border-left-color: #0d6efd;
}

/* Tema Peringatan (Kuning) */
.kategori-card.theme-warning h3 i {
    color: #ffc107;
}
.kategori-card.theme-warning:hover {
    border-left-color: #ffc107;
}


.bg-warning h3 { color: #000; }
.bg-warning .kategori-desc { color: #333; opacity: 0.9; }

.bg-success { background-color: #198754; background-image: linear-gradient(135deg, #198754, #1c9a60); }
.bg-danger { background-color: #dc3545; background-image: linear-gradient(135deg, #dc3545, #e45a66); }
.bg-primary { background-color: #0d6efd; background-image: linear-gradient(135deg, #0d6efd, #3a86fd); }
.bg-warning { background-color: #ffc107; color: #000; background-image: linear-gradient(135deg, #ffc107, #ffca2c); }

/* --- 7. Form Permit & Detail --- */
.form-container {
    max-width: 900px;
    margin: 20px auto;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.form-header { color: white; padding: 15px 20px; border-radius: 8px 8px 0 0; }
.form-header h2 { margin: 0; font-weight: 600; }
.form-body { padding: 25px 30px; }

.permit-nav {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section { margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.form-section:last-child { border-bottom: none; }
.form-section h3 { margin-top: 0; color: #212529; border-bottom: 3px solid #ccc; padding-bottom: 8px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 5px; }

.form-group label.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
    margin-left: 3px;
}

.form-group input[type="text"], 
.form-group input[type="password"], 
.form-group input[type="number"], 
.form-group input[type="date"], 
.form-group textarea, 
.form-group select {
    width: 100%; 
    padding: 12px; 
    border: 1px solid #dee2e6; 
    border-radius: 4px; 
    box-sizing: border-box;
    background-color: #f8f9fa; 
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #212529; 
}
.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus, 
.form-group input[type="number"]:focus,
.form-group input[type="date"]:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    outline: none; 
    background-color: #fff;
    border-color: #0d6efd; 
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2); 
}
.form-group textarea { min-height: 80px; }

.input-small {
    width: 120px !important;
}

.form-question {
    display: block;
    font-weight: 500;
    font-size: 1.05em;
    margin-bottom: 10px;
}
.radio-group {
    padding-left: 5px;
}
.radio-group label { 
    margin-right: 20px; 
    font-weight: normal; 
    cursor: pointer; 
    display: inline-flex;
    align-items: center;
}
.radio-group input { 
    margin-right: 6px; 
    cursor: pointer;
    transform: scale(1.1);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.checkbox-group label {
    display: inline-flex;
    align-items: center;
    font-weight: normal; 
    cursor: pointer;
}
.checkbox-group input { 
    margin-right: 8px; 
    cursor: pointer;
    transform: scale(1.1);
}

.page-permit.bg-success .form-section h3 { border-color: #198754; }
.page-permit.bg-danger  .form-section h3 { border-color: #dc3545; }
.page-permit.bg-primary .form-section h3 { border-color: #0d6efd; }
.page-permit.bg-warning .form-section h3 { border-color: #ffc107; }

/* --- 7.5 Form Action Block (Tombol Submit/Validasi) --- */
.form-action-block {
    text-align: center;
    padding: 25px 30px;
    margin-top: 25px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 8px 8px; 
}
.form-action-block h3 { margin-top: 0; }
.form-action-block p { font-size: 1.1em; color: #333; }

/* --- 8. Halaman Detail & Hasil --- */

.data-group { 
    margin-bottom: 20px; 
}
.data-group label { 
    display: block; 
    font-weight: 500; 
    margin-bottom: 2px; 
    color: #555; 
    font-size: 0.9em; 
    text-transform: uppercase; 
}
.data-group p { 
    margin: 0; 
    padding: 0; 
    background-color: transparent; 
    border: none; 
    font-size: 1.15em; 
    color: #212529; 
    line-height: 1.5;
}
.data-group .radio-value { font-weight: bold; color: #0d6efd; }
.data-group .checkbox-value { display: inline-block; background-color: #cfe2ff; color: #0a58ca; padding: 3px 10px; border-radius: 10px; margin-right: 5px; font-size: 0.9em; }

.ttd-section { display: flex; justify-content: space-around; text-align: center; gap: 15px; }
.ttd-box { width: 45%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; background: #fdfdfd; }
.ttd-box p { margin: 0; }
.ttd-box .status { color: #198754; font-weight: bold; font-size: 1.1em; margin: 5px 0; }
.barcode-section { text-align: center; padding: 20px; }
.barcode-section img { max-width: 300px; }
.barcode-section div { display: inline-block; }
.no-print { padding: 10px 20px; background: #eee; text-align: center; }
.no-print a { text-decoration: none; color: #0d6efd; }
.no-print a:last-child { font-weight: bold; color: #dc3545; }

/* --- 9. Daftar Permit (Dashboard) --- */
.permit-list { 
    list-style: none; 
    padding: 0; 
}

.permit-list li {
    padding: 20px 25px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.permit-list li:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-color: #0d6efd;
}

.permit-list-empty {
    padding: 30px;
    text-align: center;
    color: #888;
    font-style: italic;
    background-color: #fdfdfd;
    border: 1px dashed #ddd;
    border-radius: 6px;
}
.permit-list-empty:hover {
    box-shadow: none;
    border-color: #ddd;
}

.permit-list a { text-decoration: none; font-weight: 500; color: #0d6efd; }
.permit-list .status { font-size: 0.9em; color: #6c757d; }

/* Status (Span Teks) */
.status-pending_she { color: #ffc107; font-weight: bold; text-transform: capitalize; }
.status-pending_pengawas { color: #fd7e14; font-weight: bold; text-transform: capitalize; }
span.status-approved { 
    color: #198754; 
    font-weight: bold;
    text-transform: capitalize;
}

/* Status (Link) */
a.status-approved { 
    text-decoration: none; padding: 5px 10px; background-color: #0dcaf0;
    color: #ffffff; border-radius: 4px; font-size: 0.9em; font-weight: 500;
    transition: background-color 0.2s;
}
a.status-approved:hover { background-color: #0aa3c2; }

/* --- 10. Tabel Admin (Tampilan Modern) --- */
table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 20px; 
    font-size: 0.95em; 
}

th, td { 
    padding: 12px 15px; 
    border: none; 
    border-bottom: 1px solid #dee2e6; 
    text-align: left; 
    vertical-align: middle;
}

th { 
    background-color: #f8f9fa; 
    font-weight: 600;
    color: #333;
}

tbody tr:hover {
    background-color: #f8f9fa; /* Efek hover baris */
}

td a { margin-right: 5px; }

.table-empty-state {
    text-align: center !important; /* Paksa rata tengah */
    padding: 30px;
    font-style: italic;
    color: #888;
}
@media (max-width: 768px) {
    /* Sembunyikan header tabel di mobile */
    table thead {
        display: none;
    }
    
    /* Ubah baris menjadi 'kartu' */
    table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
        border-radius: 5px;
        box-shadow: 0 3px 6px rgba(0,0,0,0.05);
        background: #fff;
    }
    
    /* Hapus border antar sel */
    table td {
        display: block;
        text-align: right; /* Buat data rata kanan */
        padding: 10px 15px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 0.95em;
        position: relative; /* Diperlukan for ::before */
    }
    
    table td:last-child {
        border-bottom: none; /* Hapus border di sel terakhir */
    }

    /* Tambahkan label di kiri (dari atribut data-label) */
    table td::before {
        content: attr(data-label); /* Ambil teks dari atribut data-label */
        float: left;
        font-weight: 600;
        color: #333;
        text-align: left;
        margin-right: 15px;
    }
    
    /* Perbaikan untuk sel Aksi */
    table td[data-label="Aksi"] {
        /* Buat tombol-tombol tetap di kanan */
        text-align: right; 
    }
    
    /* Perbaikan untuk empty state */
    .table-empty-state {
        text-align: center !important;
    }
    .table-empty-state::before {
        display: none; /* Sembunyikan label "ID" palsu */
    }
}
/* --- 11. Filter Form Admin --- */
.filter-form {
    background-color: #f8f9fa; padding: 15px; border: 1px solid #e3e3e3;
    border-radius: 5px; margin-bottom: 20px; display: flex;
    flex-wrap: wrap; gap: 15px; align-items: flex-end;
}
.filter-group { 
    display: flex; 
    flex-direction: column; 
}
.filter-group label { 
    font-weight: 500; 
    margin-bottom: 5px; 
    font-size: 0.9em; 
}

.filter-group input, 
.filter-group select {
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #f8f9fa;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    min-width: 180px; 
    color: #212529; 
}
.filter-group input:focus, 
.filter-group select:focus {
    outline: none;
    background-color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

/* --- 12. Admin Menu Grid (Dashboard Admin) --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.menu-card {
    display: block;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px 25px;
    text-decoration: none;
    color: #495057;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    border-color: #0d6efd;
}
.menu-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.3em;
    font-weight: 600;
    color: #0d6efd;
}
.menu-card p {
    margin: 0;
    font-size: 1em;
    line-height: 1.5;
}

/* --- 13. Role Tags (Tabel User Admin) --- */
.role-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.9em;
    font-weight: 500;
    border-radius: 4px;
    color: #000;
    background-color: #eee;
}
.role-tag.role-superadmin { background-color: #ffc107; color: #000; }
.role-tag.role-she { background-color: #f8d7da; color: #842029; }
.role-tag.role-pengawas_maintenance { background-color: #fd7e14; color: #fff; }
.role-tag.role-pelaksana_kerja,
.role-tag.role-peminta_jasa { 
    background-color: #cfe2ff;
    color: #0a58ca; 
}

/* =========================================
   TEMA BARU: MODERN BLUE GRADIENT (Aqumex Style)
   ========================================= */

:root {
    --sidebar-width: 280px;
    --primary-blue: #4361ee;
    --secondary-blue: #3a0ca3;
    --accent-light: rgba(255, 255, 255, 0.2);
    --text-white: #ffffff;
    --body-bg: #f3f4f8;
}

body {
    background-color: var(--body-bg); /* Latar belakang abu-abu sangat muda */
}

/* --- 1. SIDEBAR BARU --- */
.sidebar {
    width: var(--sidebar-width);
    height: 96vh; /* Sedikit jarak dari atas bawah agar terlihat mengambang */
    position: fixed;
    top: 0.5vh;
    left: 2vh; /* Memberi jarak dari kiri (floating) */
    /* Gradient Biru seperti contoh */
    background: linear-gradient(180deg, #4361ee 0%, #3f37c9 100%);
    color: var(--text-white);
    z-index: 1001;
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    border-radius: 20px; /* Sudut membulat */
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.4); /* Bayangan biru */
    padding: 20px 0;
}

.sidebar-header {
    padding: 10px 30px 30px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.sidebar-header h3 {
    margin: 0;
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.4em;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-close {
    color: var(--text-white);
    opacity: 0.7;
    cursor: pointer;
    transition: 0.2s;
}
.sidebar-close:hover { opacity: 1; }

/* Menu List */
.sidebar-nav {
    list-style: none;
    padding: 0 15px; /* Padding kiri kanan untuk menu */
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-nav .nav-section-title {
    font-size: 0.75em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6); /* Teks samar */
    padding: 15px 15px 5px 15px;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    border-radius: 12px; /* Sudut menu membulat */
    transition: all 0.3s ease;
}

.sidebar-nav li a i {
    font-size: 1.2em;
    width: 30px;
    margin-right: 10px;
    text-align: center;
}

/* Efek Hover & Active */
.sidebar-nav li a:hover {
    background-color: var(--accent-light); /* Putih transparan */
    color: #fff;
    transform: translateX(5px); /* Gerak sedikit ke kanan */
}



/* --- Konten Utama & Efek 'Collapsed' --- */
.main-content {
    margin-left: var(--sidebar-width);
    padding-top: 0; /* Navbar akan jadi bagian dari main-content */
    transition: margin-left var(--transition-speed) ease-in-out;
    width: calc(100% - var(--sidebar-width)); /* Mencegah 'loncatan' layout */
}

/* Saat sidebar tertutup */
body.sidebar-collapsed .sidebar {
    transform: translateX(calc(-1 * var(--sidebar-width)));
}
body.sidebar-collapsed .main-content {
    margin-left: 0;
    width: 100%;
}

/* --- Penyesuaian Responsif --- */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0; /* Konten utama full width */
        width: 100%;
    }
    
    .sidebar {
        /* Sidebar akan tertutup di mobile */
        transform: translateX(calc(-1 * var(--sidebar-width)));
        z-index: 1002; /* Pastikan di atas overlay */
    }
    
    /* Saat dibuka di mobile */
    body:not(.sidebar-collapsed) .sidebar {
        transform: translateX(0);
        box-shadow: 0 0 50px rgba(0,0,0,0.5);
    }
    
    /* Sembunyikan tombol toggle di navbar saat sidebar terbuka (di mobile) */
    body:not(.sidebar-collapsed) .sidebar-toggle {
        display: none;
    }
    
    /* (Opsional) Tambahkan overlay gelap saat sidebar terbuka di mobile 
    body:not(.sidebar-collapsed)::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 1000;
    }
    */
}
@media (min-width: 769px) {
    /* Saat sidebar terbuka (default di desktop), sembunyikan toggle di navbar */
    /* Karena user bisa menutup lewat tombol 'X' di sidebar */
    body:not(.sidebar-collapsed) .navbar .sidebar-toggle {
        display: none;
    }

    /* Saat sidebar tertutup, navbar akan melebar ke kiri 
       dan tombol toggle akan muncul otomatis */
}

/* Pastikan tombol 'X' di sidebar selalu terlihat dan bisa diklik */
.sidebar-close {
    display: block !important; 
    cursor: pointer;
}

/* --- 15. Modal (BARU) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    display: none; /* Sembunyi by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.show {
    display: flex; /* Tampilkan saat 'show' */
    opacity: 1;
}
.modal-box {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    overflow: hidden;
    transform: translateY(-50px);
    transition: transform 0.3s ease-out;
}
.modal-overlay.show .modal-box {
    transform: translateY(0);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}
.modal-header h3 {
    margin: 0;
    color: #dc3545; /* Warna merah */
}
.modal-close {
    font-size: 1.5em;
    cursor: pointer;
    color: #6c757d;
}
.modal-body {
    padding: 20px;
}
.modal-body p {
    margin-top: 0;
    line-height: 1.6;
    color: #333; /* Pastikan teks modal terlihat */
}
.modal-body .form-group label {
    color: #333; /* Pastikan label terlihat */
}
.modal-body textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #f8f9fa;
    box-sizing: border-box; /* Penting */
    color: #333; /* Pastikan teks input terlihat */
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
}

/* --- Style Tombol Aksi --- */
.action-buttons-container {
    display: flex;
    gap: 15px; /* Jarak antar tombol */
    justify-content: center;
    align-items: center; /* Sejajarkan form dan tombol */
}
.action-buttons-container .btn-action i {
    margin-right: 8px;
}

/* --- Style Status & Alert Baru --- */
.status-rejected {
    color: #dc3545; /* Merah */
    font-weight: bold;
    text-transform: capitalize;
}
/* Alert untuk alasan penolakan */
.alert-rejection {
    /* Tampilan Kartu Putih */
    background-color: #ffffff; 
    border: 1px solid #e3e6f0;
    
    /* Aksen Garis Merah Tebal di Kiri */
    border-left: 5px solid #dc3545; 
    
    border-radius: 8px;
    /* Bayangan lembut berwarna merah muda */
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.15); 
    
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Jarak antara judul dan isi */
}

.alert-rejection h3 {
    margin: 0;
    font-size: 1.25em;
    font-weight: 700;
    color: #dc3545; /* Teks Judul Merah */
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #fceae9;
    padding-bottom: 10px;
}

.alert-rejection h3 i {
    font-size: 1.2em;
}

.alert-rejection p {
    margin: 0;
    font-size: 1.05em;
    line-height: 1.6;
    color: #4a4a4a; /* Teks isi abu gelap */
    
    /* Kotak kecil untuk teks alasan */
    background-color: #fff5f5; 
    padding: 15px;
    border-radius: 6px;
    border: 1px dashed #f1aeb5;
}

/* Responsif Mobile */
@media (max-width: 940px) {
    .rejection-wrapper {
        width: 100%;
        padding: 0 20px;
    }
}

/* --- 16. Perbaikan Form Layout (BARU) --- */

/* Menata .form-section h3 agar lebih rapi */
.form-section h3 {
    display: flex;
    align-items: center;
    gap: 10px; /* Jarak antara ikon dan teks */
    font-size: 1.3em;
    font-weight: 600;
}
.form-section h3 i {
    color: var(--sidebar-bg-hover); /* Warna ikon abu-abu gelap */
}

/* Sub-heading untuk APD */
.form-subheading {
    font-size: 0.95em;
    color: #555;
    margin-top: -10px;
}

/* [BARU] Class untuk menata input pendek secara horizontal */
.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Kolom pertama 2x lebih besar dari kedua */
    gap: 20px; /* Jarak antar kolom */
}

/* [PERBAIKAN] Penataan ulang Radio Group */
.form-question {
    display: block;
    font-weight: 500;
    font-size: 1.05em;
    margin-bottom: 12px;
    color: #333;
}
.radio-options {
    display: flex;
    flex-wrap: wrap; /* Izinkan turun baris jika di mobile */
    gap: 20px; /* Jarak antar pilihan (Ya, Tidak, N/A) */
}
.radio-options label {
    display: flex;
    align-items: center;
    gap: 5px; /* Jarak antara tombol radio dan teks */
    font-weight: normal;
    cursor: pointer;
}
.radio-options input[type="radio"] {
    transform: scale(1.1);
    cursor: pointer;
}

/* [PERBAIKAN] Penataan ulang Checkbox Group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px; /* Jarak antara checkbox dan teks */
    font-weight: normal; 
    cursor: pointer;
    background-color: #f8f9fa; /* Latar belakang ringan */
    padding: 10px 12px;
    border-radius: 5px;
    border: 1px solid #eee;
    transition: background-color 0.2s, border-color 0.2s;
}
.checkbox-group label:hover {
    background-color: #f1f3f5;
}
.checkbox-group input[type="checkbox"] { 
    transform: scale(1.1);
    cursor: pointer;
}

/* [RESPONSIF] Perbaikan untuk mobile */
@media (max-width: 768px) {
    /* Tumpuk .form-row secara vertikal di mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0; /* Hapus gap grid, biarkan .form-group yg mengatur */
    }

    /* Kurangi jarak di mobile */
    .form-body {
        padding: 20px 20px;
    }

    /* Pastikan pilihan radio/checkbox tidak terlalu lebar */
    .radio-options {
        gap: 15px;
    }
    .checkbox-group {
        grid-template-columns: 1fr; /* Buat 1 kolom saja di mobile */
        gap: 8px;
    }
}

/* --- 17. Navigasi Atas Halaman (PERBAIKAN) --- */
/* Wrapper untuk tombol Kembali/Download agar sejajar dengan form */
.no-print-wrapper {
    /* [PERBAIKAN] Lebar disamakan dengan .form-container (900px), 
      bukan .container (1100px).
    */
    max-width: 900px; 
    
    margin: 20px auto -15px auto; /* Posisikan di atas form */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    
    /* [PERBAIKAN] Hapus padding di desktop agar sejajar */
    padding: 0; 
    box-sizing: border-box;
}
.no-print-wrapper a {
    text-decoration: none; 
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.no-print-wrapper a.btn-back {
    background-color: #6c757d; /* Tombol abu-abu */
    color: white;
}
.no-print-wrapper a.btn-back:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}
.no-print-wrapper a.btn-download {
    background-color: #0d6efd; /* Tombol biru */
    color: white;
}
.no-print-wrapper a.btn-download:hover {
    background-color: #0b5ed7;
    transform: translateY(-1px);
}

/* Responsif untuk wrapper navigasi */
@media (max-width: 940px) { /* [PERBAIKAN] Disesuaikan ke 900px + margin */
    .no-print-wrapper {
        width: 100%;
        /* [PERBAIKAN] Padding HANYA ditambahkan di mobile */
        padding: 0 20px; 
    }
}
@media (max-width: 768px) {
    .no-print-wrapper {
        margin: 15px auto -5px auto;
    }
}

/* --- 18. Wrapper untuk Alert Penolakan (BARU) --- */
.rejection-wrapper {
    /* Samakan lebar dengan form container */
    max-width: 900px;
    margin: 20px auto 25px auto; /* Jarak atas/bawah */
    padding: 0;
    box-sizing: border-box;
}

/* Penyesuaian margin agar semua blok sejajar */
.no-print-wrapper {
    max-width: 900px;
    margin: 20px auto 0 auto; /* Margin atas 20, bawah 0 */
    /* ... (style Anda yang lain) ... */
}

.form-container {
    max-width: 900px;
    margin: 20px auto 20px auto; /* Margin atas 20, bawah 20 */
    /* ... (style Anda yang lain) ... */
}

/* Responsif untuk wrapper alert */
@media (max-width: 940px) { /* 900px + padding */
    .rejection-wrapper {
        width: 100%;
        padding: 0 20px;
    }
}

/* --- 19. Dashboard Elements (BARU) --- */

/* Dashboard Hero / Call to Action Card */
.dashboard-hero {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.dashboard-hero h3 {
    margin: 0 0 5px 0;
    font-weight: 700;
    color: #212529;
}
.dashboard-hero p {
    margin: 0;
    color: #6c757d;
    font-size: 1.05em;
}
.hero-action .btn-lg {
    padding: 12px 25px;
    font-size: 1.1em;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
}

/* Section Title Wrapper */
.section-title-wrapper {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* Permit List Styling (Polesan) */
.permit-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.permit-info .permit-title {
    display: block;
    font-size: 1.05em;
    font-weight: 600;
    color: #0d6efd;
    text-decoration: none;
    margin-bottom: 4px;
}
.permit-info .permit-title:hover {
    text-decoration: underline;
}
.permit-info .permit-meta {
    font-size: 0.85em;
    color: #6c757d;
}

/* Status Badge (Kapsul Warna) */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px; /* Bentuk kapsul */
    font-size: 0.85em;
    font-weight: 600;
    text-transform: capitalize;
}
/* Warna Status */
.status-approved { background-color: #d1e7dd; color: #0f5132; }
.status-rejected { background-color: #f8d7da; color: #842029; }
.status-pending_she { background-color: #fff3cd; color: #856404; }
.status-pending_pengawas { background-color: #ffecb5; color: #664d03; }

/* Tombol "Lihat Semua" di bawah list */
.view-all-wrapper {
    text-align: center;
    margin-top: 20px;
}
.btn-view-all {
    display: inline-block;
    padding: 10px 20px;
    color: #555;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 50px; /* Tombol bulat lonjong */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.2s;
}
.btn-view-all:hover {
    background-color: #e9ecef;
    color: #333;
    transform: translateY(-2px);
}

/* Responsif Dashboard */
@media (max-width: 768px) {
    .dashboard-hero {
        flex-direction: column;
        text-align: center;
        align-items: stretch;
    }
    .hero-action {
        width: 100%;
    }
    .hero-action .btn {
        width: 100%; /* Tombol full width di HP */
    }
}

.permit-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.permit-color-strip {
    display: flex;
    gap: 4px;
    margin-right: 10px;
}

.color-box {
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

/* Sesuaikan warna */
.color-green  { background: #198754; }
.color-red    { background: #dc3545; }
.color-blue   { background: #0d6efd; }
.color-yellow { background: #ffc107; }

.permit-wrapper {
    margin-top: 20px;
}

.permit-card {
    background: #fff;
    border: 1px solid #444;
    padding: 10px 15px 20px;
    font-size: 12px;
}

.permit-header {
    border: 1px solid #222;
    padding: 6px 8px;
    margin-bottom: 8px;
}

.permit-header-top {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.permit-logo-strip {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-right: 6px;
}

.color-box {
    width: 16px;
    height: 10px;
    border: 1px solid #000;
}

.color-green  { background:#198754; }
.color-red    { background:#dc3545; }
.color-blue   { background:#0d6efd; }
.color-yellow { background:#ffc107; }

.permit-header-main {
    flex: 1;
}

.permit-header-title {
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.permit-header-mode {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 11px;
    margin: 4px 0;
}

.permit-header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.permit-code { min-width: 120px; }
.permit-kind { font-weight: 600; text-transform: uppercase; }
.permit-no   { white-space: nowrap; }

.permit-no-input {
    width: 70px;
    border: 1px solid #555;
    padding: 2px 4px;
    font-size: 11px;
}

/* Info table atas */

.permit-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 8px;
    font-size: 11px;
}

.permit-info-table td {
    border: 1px solid #888;
    padding: 3px 4px;
    vertical-align: top;
}

.info-label {
    width: 26%;
    font-weight: 500;
}

.info-field {
    width: 24%;
}

.line-input,
.line-textarea {
    width: 100%;
    border: none;
    border-bottom: 1px dotted #444;
    font-size: 11px;
    padding: 1px 2px;
    resize: none;
}

.line-input.short {
    width: 60px;
}

.info-suffix {
    margin-left: 4px;
    font-size: 10px;
}

.job-type-row label {
    margin-right: 10px;
    white-space: nowrap;
}

/* Section title */

.section-title {
    margin: 8px 0 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
}

/* Checklist table */

.checklist-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    margin-bottom: 8px;
}

.checklist-table th,
.checklist-table td {
    border: 1px solid #555;
    padding: 3px 4px;
    vertical-align: top;
}

.checklist-table th {
    text-align: center;
    background: #f5f5f5;
}

.col-no {
    width: 26px;
    text-align: center;
}

.col-yn {
    width: 40px;
    text-align: center;
}

.col-gas-header {
    width: 180px;
    font-size: 10px;
}

.col-gas {
    vertical-align: top;
}

.gas-inner {
    font-size: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rekom-row textarea {
    width: 100%;
    border: none;
    border-bottom: 1px dotted #444;
    resize: none;
}

/* APD grid */

.apd-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px 10px;
    font-size: 11px;
    padding: 6px 4px;
    border: 1px solid #555;
    margin-bottom: 8px;
}

/* Closing block */

.closing-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 10px;
    border: 1px solid #555;
    padding: 6px 4px;
    font-size: 11px;
}

.closing-subtitle {
    font-weight: 600;
    margin-bottom: 4px;
}

.closing-item {
    display: grid;
    grid-template-columns: 14px 1fr 120px;
    align-items: center;
    margin-bottom: 2px;
}

.closing-no {
    text-align: right;
    padding-right: 2px;
}

.closing-yn label {
    margin-right: 8px;
    font-size: 10px;
}

/* Action block */

.form-action-block {
    margin-top: 8px;
    text-align: right;
    font-size: 11px;
}

.form-action-block .small-note {
    text-align: left;
    margin-bottom: 6px;
}

.btn-submit {
    font-size: 12px;
    padding: 6px 14px;
}
