* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

/* HALAMAN LOGIN */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #005F02, #427A43);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
    border-top: 8px solid #005F02;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #005F02, #427A43);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 8px 20px rgba(0, 95, 2, 0.25);
}

.login-header h1 {
    font-size: 28px;
    color: #005F02;
    margin-bottom: 8px;
    font-weight: bold;
}

.login-header p {
    color: #427A43;
    font-size: 16px;
    font-weight: 600;
}

.login-form {
    margin-top: 10px;
}

.input-group {
    position: relative;
    margin-bottom: 18px;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #427A43;
    font-size: 16px;
}

.input-group input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    font-size: 14px;
    background: #f8fafc;
    transition: 0.2s;
}

.input-group input:focus {
    border-color: #427A43;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(66, 122, 67, 0.15);
}

.btn-login {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #005F02, #427A43);
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 5px;
}

.btn-login:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.alert-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }

    .login-header h1 {
        font-size: 24px;
    }
}

/* LOGO LOGIN */
.logo-login {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 95, 2, 0.2);
}

.logo-login img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}



/* =========================
   DASHBOARD ADMIN DESKTOP
   SESUAI RANCANGAN PROPOSAL
========================= */

.admin-desktop-body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #eef3ee;
    color: #1f2937;
}

.admin-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 22px 40px;
}

/* TOP NAVBAR */
.top-navbar {
    background: linear-gradient(135deg, #005F02, #427A43);
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

/* TEKS NAVBAR */
.top-navbar .brand {
    color: white;
}

.top-navbar .nav-menu a,
.top-navbar .dropbtn {
    color: white;
}

/* Hover tetap kontras */
.top-navbar .nav-menu a:hover,
.top-navbar .dropbtn:hover,
.top-navbar .nav-menu a.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

.akun-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    font-size: 28px;
    font-weight: 700;
    color: #005F02;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu a,
.dropbtn {
    text-decoration: none;
    border: none;
    background: transparent;
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
    padding: 11px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s ease;
}

.nav-menu a:hover,
.dropbtn:hover,
.nav-menu a.active {
    background: linear-gradient(135deg, #005F02, #427A43);
    color: #ffffff;
}

/* DROPDOWN */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    text-decoration: none;
    border: none;
    background: transparent;
    color: white;
    font-size: 15px;
    font-weight: 600;
    padding: 11px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s ease;
}

/* area penghubung supaya hover tidak putus */
.dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 12px;
    background: transparent;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
    border: 1px solid #d9e6da;
    overflow: hidden;
    z-index: 9999;
    margin-top: 8px;
}

.dropdown-content a {
    display: block;
    padding: 12px 14px;
    color: #1f2937 !important;
    background: #ffffff;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background: #f0f7f0;
    color: #005F02 !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #005F02;
    font-weight: 600;
    background: #f3faf3;
    border: 1px solid #dbe8dc;
    padding: 10px 14px;
    border-radius: 12px;
}

.admin-profile i {
    font-size: 20px;
}

.logout-btn {
    text-decoration: none;
    background: #dc2626;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.2s;
}

.logout-btn:hover {
    background: #b91c1c;
}

/* OFFICE INFO */
.office-info-card {
    margin-top: 26px;
    background: #ffffff;
    border: 1px solid #d9e6da;
    border-left: 8px solid #005F02;
    border-radius: 18px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.office-icon {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #005F02;
}

/* LOGO */
.office-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.office-info-card h2 {
    margin: 0 0 6px 0;
    color: #005F02;
    font-size: 28px;
}

.office-info-card p {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
}

/* WELCOME */
.welcome-card {
    margin-top: 26px;
    background: #ffffff;
    border: 1px solid #d9e6da;
    border-radius: 18px;
    padding: 34px 28px;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.welcome-card h1 {
    margin: 0 0 14px 0;
    color: #005F02;
    font-size: 36px;
}

.welcome-card p {
    margin: 0 auto;
    max-width: 760px;
    color: #4b5563;
    line-height: 1.8;
    font-size: 16px;
}

/* STATS */
.stats-row {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stats-card {
    background: #ffffff;
    border: 1px solid #d9e6da;
    border-radius: 18px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
    transition: 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-3px);
}

.stats-icon {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: linear-gradient(135deg, #005F02, #427A43);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.stats-text h3 {
    margin: 0 0 8px 0;
    color: #427A43;
    font-size: 20px;
}

.stats-text h2 {
    margin: 0;
    color: #005F02;
    font-size: 40px;
}

/* =========================
   ADMIN RESPONSIVE
========================= */

/* default desktop */
.admin-menu-toggle {
    display: none;
}

.nav-mobile-account {
    display: none;
}

.admin-nav-overlay {
    display: none;
}

@media (max-width: 1100px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-wrapper {
        padding: 14px;
    }

    .top-navbar {
        padding: 14px 16px;
        border-radius: 16px;
        position: relative;
    }

    .nav-left {
        width: 100%;
        gap: 12px;
    }

    .brand {
        font-size: 22px;
    }

    .admin-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: none;
        border-radius: 10px;
        background: rgba(255,255,255,0.15);
        color: #ffffff;
        font-size: 18px;
        cursor: pointer;
        flex-shrink: 0;
    }

    .nav-right {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -280px;
        width: 250px;
        height: 100vh;
        background: #ffffff;
        box-shadow: 8px 0 24px rgba(0,0,0,0.15);
        padding: 22px 16px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        overflow-y: auto;
        z-index: 9999;
        transition: left 0.3s ease;
    }

    .nav-menu.show {
        left: 0;
    }

    .nav-menu a,
    .dropbtn {
        width: 100%;
        text-align: left;
        justify-content: space-between;
        color: #1f2937 !important;
        background: transparent !important;
        padding: 12px 14px;
        border-radius: 10px;
        font-size: 15px;
    }

    .nav-menu a:hover,
    .dropbtn:hover,
    .nav-menu a.active,
    .dropbtn.active {
        background: #eef6ef !important;
        color: #005F02 !important;
    }

    .dropdown {
        width: 100%;
        display: block;
    }

    .dropdown::after {
        display: none;
    }

    .dropdown-content {
        display: block;
        position: static;
        min-width: 100%;
        margin-top: 4px;
        border: none;
        box-shadow: none;
        background: transparent;
        padding-left: 10px;
    }

    .dropdown-content a {
        padding: 10px 12px;
        border-radius: 8px;
        background: transparent;
        color: #374151 !important;
    }

    .dropdown-content a:hover {
        background: #f3f4f6;
        color: #005F02 !important;
    }

    .nav-mobile-account {
        display: block;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #e5e7eb;
    }

    .nav-mobile-account a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 14px;
        border-radius: 10px;
        text-decoration: none;
        font-weight: 700;
        color: #dc2626 !important;
        background: transparent !important;
    }

    .nav-mobile-account a:hover {
        background: #fef2f2 !important;
    }

    .admin-nav-overlay.show {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.35);
        z-index: 9998;
    }

    .office-info-card,
    .stats-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .welcome-card h1 {
        font-size: 28px;
    }
}

/* AKUN DROPDOWN */
.akun-dropdown {
    position: relative;
}

.akun-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3faf3;
    border: 1px solid #dbe8dc;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
    color: #005F02;
    cursor: pointer;
}

.akun-btn i {
    font-size: 18px;
}

.akun-menu {
    right: 0;
    left: auto;
    min-width: 160px;
}

.akun-menu a {
    padding: 12px;
}

/* Dropdown fix */
.dropdown-content {
    display: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* .akun-menu a {
    color: #dc2626;
    font-weight: 600;
}

.akun-menu a:hover {
    background: #fee2e2;
} */

.akun-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;

    background: #ef4444;
    color: white;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    justify-content: center;
}

.akun-menu a:hover {
    background: #dc2626;
}



.table-data {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
}

.table-data th, .table-data td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.table-data th {
    background: #005F02;
    color: white;
}

.btn-main {
    background: #005F02;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 8px;
}


/* =========================
   HALAMAN SURAT MASUK
========================= */

.surat-page {
    margin-top: 26px;
    background: #ffffff;
    border: 1px solid #d9e6da;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.page-box {
    background: #ffffff;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    border: 1px solid #d9e6da;
    border-radius: 14px;
    padding: 16px 18px;
    background: #f9fcf9;
    margin-bottom: 22px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.page-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #005F02;
    font-weight: 700;
    font-size: 22px;
}

.page-tag i {
    font-size: 24px;
}

.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: linear-gradient(135deg, #005F02, #427A43);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.2s;
}

.btn-add:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.toolbar-right {
    min-width: 320px;
}

.search-form input {
    width: 100%;
    height: 46px;
    border: 1px solid #cfe0d0;
    border-radius: 12px;
    padding: 0 14px;
    outline: none;
    background: #ffffff;
    font-size: 14px;
}

.search-form input:focus {
    border-color: #427A43;
    box-shadow: 0 0 0 3px rgba(66, 122, 67, 0.12);
}

/* TABEL */
.table-wrapper {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 16px;
}

.surat-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 16px;
}

.surat-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(135deg, #dcecff, #bfd8ff);
    color: #183153;
    font-weight: 700;
    padding: 16px 14px;
    border: 1px solid #aac4ee;
    text-align: center;
    vertical-align: middle;
}

.surat-table tbody td {
    background: #ffffff;
    border: 1px solid #d9e6da;
    padding: 16px 14px;
    vertical-align: top;
    color: #374151;
    text-align: center;
}

.surat-table tbody tr:hover td {
    background: #f8fbf8;
}

.cell-main {
    font-weight: 700;
    color: #005F02;
    margin-bottom: 6px;
}

.cell-sub {
    font-size: 13px;
    color: #6b7280;
}

.file-link {
    text-decoration: none;
    color: #005F02;
    font-weight: 700;
}

.file-link:hover {
    text-decoration: underline;
}

.empty-file {
    color: #9ca3af;
}

.aksi-group {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-aksi {
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s;
}

.btn-edit {
    background: #facc15;
    color: #1f2937;
}

.btn-edit:hover {
    background: #eab308;
}

.btn-hapus {
    background: #ef4444;
    color: #ffffff;
}

.btn-hapus:hover {
    background: #dc2626;
}

.empty-row {
    text-align: center;
    color: #6b7280;
    padding: 24px !important;
}

/* RESPONSIVE ADMIN */
@media (max-width: 1100px) {
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-right {
        min-width: 100%;
    }
}

/* =========================
   FORM TAMBAH SURAT MASUK
========================= */

.form-page-box {
    margin-top: 26px;
    background: #ffffff;
    border: 1px solid #d9e6da;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.form-title-bar {
    background: linear-gradient(135deg, #dcecff, #bfd8ff);
    border: 1px solid #aac4ee;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 28px;
}

.form-title-left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #183153;
    font-size: 24px;
    font-weight: 700;
}

.form-title-left i {
    font-size: 26px;
}

.form-alert-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}


/* GRID FORM */
.surat-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 28px;
}

.form-group-custom {
    display: flex;
    flex-direction: column;
}
input[readonly] {
  background-color: #f3f4f6;
  cursor: not-allowed;
}

.form-group-custom label {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #374151;
}

.form-group-custom input {
    height: 46px;
    border: 1px solid #cfd8dc;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
    background: #ffffff;
    transition: 0.2s;
}

.form-group-custom input:focus {
    border-color: #427A43;
    box-shadow: 0 0 0 3px rgba(66, 122, 67, 0.12);
}

.form-group-full {
    grid-column: 1 / -1;
}

/* FILE UPLOAD */
.file-upload-box {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #cfd8dc;
    border-radius: 10px;
    padding: 10px 14px;
    min-height: 52px;
    background: #ffffff;
}

.file-label {
    display: inline-block;
    min-width: 64px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 700;
    color: #374151;
    text-align: center;
}

.file-upload-box input[type="file"] {
    border: none;
    padding: 0;
    height: auto;
    background: transparent;
}

/* ACTION BUTTON */
.form-action-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 6px;
}

.btn-simpan {
    background: linear-gradient(135deg, #4da3ff, #2d7eea);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.btn-simpan:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.btn-batal {
    display: inline-block;
    text-decoration: none;
    background: #ef6b6b;
    color: #ffffff;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 700;
    transition: 0.2s;
}

.btn-batal:hover {
    background: #dc4d4d;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .surat-form-grid {
        grid-template-columns: 1fr;
    }

    .form-group-full {
        grid-column: auto;
    }
}



/* ========================
   LAPORAN
======================== */

.laporan-box {
    margin-top: 26px;
    background: white;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

/* HEADER */
.laporan-header {
    background: linear-gradient(135deg, #dcecff, #bfd8ff);
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: bold;
    color: #183153;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

/* FILTER */
.filter-box {
    display: flex;
    align-items: end;
    gap: 16px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 14px;
    margin-bottom: 6px;
}

.filter-group input {
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* BUTTON */
.btn-tampil {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-cetak {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
}

.laporan-actions {
    margin-bottom: 15px;
}

/* TABLE */
.laporan-table {
    width: 100%;
    border-collapse: collapse;
}
.laporan-box {
    height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.laporan-box .table-wrapper {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 16px;
}

.laporan-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
}
.laporan-table th {
    background: #bfd8ff;
    padding: 12px;
    border: 1px solid #aac4ee;
}

.laporan-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

.laporan-table tr:hover td {
    background: #f8fbff;
}



/* =========================
   ELEMEN KHUSUS CETAK
========================= */
.print-header,
.print-line,
.print-title,
.ttd-section {
    display: none;
}

/* HEADER CETAK */
.print-header {
    position: relative;
    height: 90px;
}

.print-header-logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.print-header-logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
}

.print-header-text {
    width: 100%;
    text-align: center;
}

.print-header-text h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.print-header-text h3 {
    margin: 2px 0;
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

.print-header-text p {
    margin: 2px 0;
    font-size: 12px;
    color: #000;
}

.print-line {
    border: none;
    border-top: 2px solid #000;
    margin: 10px 0 14px;
}

.print-title h3 {
    margin: 0;
    font-size: 16px;
    text-align: center;
    color: #000;
    text-transform: uppercase;
}

.print-title p {
    margin: 4px 0 0;
    font-size: 12px;
    text-align: center;
    color: #000;
}

/* =========================
   MODE CETAK
========================= */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
        margin: 0 !important;
    }

    .top-navbar,
    .lurah-sidebar,
    .sidebar-overlay,
    .mobile-menu-toggle,
    .lurah-topbar,
    .filter-box,
    .lurah-filter-box,
    .laporan-header,
    .laporan-actions,
    .btn-tampil,
    .btn-cetak,
    .akun-dropdown,
    .nav-right {
        display: none !important;
    }

    .admin-wrapper,
    .lurah-layout,
    .lurah-main {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .laporan-box,
    .lurah-report-box {
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        background: #fff !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .print-header {
        display: block !important;
        position: relative !important;
        height: 90px !important;
        margin-bottom: 8px !important;
    }

    .print-line,
    .print-title,
    .ttd-section {
        display: block !important;
    }

    .table-wrapper {
        overflow: visible !important;
        margin-top: 10px !important;
    }

    .laporan-table {
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 12px !important;
    }

    .laporan-table th,
    .laporan-table td {
        border: 1px solid #000 !important;
        padding: 8px !important;
        text-align: center !important;
        background: #fff !important;
        color: #000 !important;
    }

    .file-link {
        color: #000 !important;
        text-decoration: none !important;
        font-weight: normal !important;
    }

    .ttd-section {
        margin-top: 32px !important;
    }

    .ttd-box {
        width: 260px !important;
        margin-left: auto !important;
        text-align: center !important;
        color: #000 !important;
    }

    .ttd-space {
        height: 70px !important;
    }

    @page {
        size: A4 portrait;
        margin: 18mm;
    }
}



/* ========================
   HALAMAN PENGGUNA
======================== */

.pengguna-box {
    margin-top: 26px;
    background: white;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

/* HEADER */
.pengguna-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pengguna-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: bold;
    color: #005F02;
}

/* BUTTON */
.btn-add-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #005F02, #427A43);
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

/* TABLE */
.pengguna-table {
    width: 100%;
    border-collapse: collapse;
}

.pengguna-table th {
    background: #bfd8ff;
    padding: 12px;
    border: 1px solid #aac4ee;
}

.pengguna-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

.pengguna-table tr:hover td {
    background: #f8fbff;
}

/* ROLE BADGE */
.badge-role {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
}

.badge-role.admin {
    background: #d1fae5;
    color: #065f46;
}

.badge-role.lurah {
    background: #dbeafe;
    color: #1e40af;
}

/* NO ACTION */
.no-action {
    background: #e5e7eb;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
}


/* SELECT PADA FORM PENGGUNA */
.tipe-group select {
    height: 46px;
    border: 1px solid #cfd8dc;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
    background: #ffffff;
    transition: 0.2s;
    width: 100%;
}

.tipe-group select:focus {
    border-color: #427A43;
    box-shadow: 0 0 0 3px rgba(66, 122, 67, 0.12);
}








/* =========================
   LURAH - MOBILE/TABLET
========================= */

.lurah-body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #eef3ee;
    color: #1f2937;
}

.lurah-layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.lurah-sidebar {
    width: 260px;
    background: #427A43;
    border-right: 1px solid #d9e6da;
    padding: 18px 14px;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.lurah-logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    margin-bottom: 18px;
    text-align: center;
}

.lurah-logo {
    width: 70px;
    height: 70px;
    background: #ffffff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.lurah-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.lurah-logo-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.lurah-logo-box h2 {
    margin: 0;
    color: #005F02;
    font-size: 30px;
    font-weight: 700;
}

.lurah-profile-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #dcecff, #bfd8ff);
    color: #183153;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.lurah-profile-box i {
    font-size: 20px;
}

.lurah-logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;

    background: #ef4444;
    color: white;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    justify-content: center;
}

.lurah-logout-btn:hover {
    background: #dc2626;
}

.lurah-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lurah-menu a,
.lurah-subtitle {
    display: block;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 12px;
    color: #1f2937;
    font-weight: 600;
}

.lurah-menu a:hover,
.lurah-menu a.active {
    background: linear-gradient(135deg, #005F02, #427A43);
    color: #ffffff;
}

.lurah-subtitle {
    background: #f3f4f6;
    color: #374151;
    font-weight: 700;
}

/* MAIN */
.lurah-main {
    flex: 1;
    padding: 18px;
}

.lurah-topbar {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    margin-bottom: 18px;
}

.lurah-topbar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.lurah-topbar-center i {
    font-size: 28px;
    color: #005F02;
}

.lurah-topbar h1 {
    margin: 0;
    color: #005F02;
    font-size: 28px;
    font-weight: 700;

}.lurah-center-text {
    text-align: center;
}

.lurah-welcome-card {
    background: #ffffff;
    border-left: 6px solid #005F02;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    margin-bottom: 18px;
}

.lurah-welcome-card h2 {
    margin: 0 0 12px 0;
    color: #005F02;
    font-size: 28px;
}

.lurah-welcome-card p {
    margin: 0;
    line-height: 1.7;
    color: #4b5563;
}

/* GRID CARD STATISTIK */
.lurah-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.lurah-stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    margin-bottom: 0;
    border-top: 5px solid #427A43;
    text-align: center;
}

.lurah-stat-card h3 {
    margin: 0 0 14px 0;
    color: #427A43;
    font-size: 24px;
}

.lurah-stat-value {
    font-size: 40px;
    font-weight: 700;
    color: #005F02;
}

/* TABLET */
@media (max-width: 1024px) {
    .lurah-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .lurah-topbar h1 {
        font-size: 24px;
    }

    .lurah-topbar-center i {
        font-size: 24px;
    }

    .lurah-welcome-card h2 {
        font-size: 22px;
    }

    .lurah-stat-card h3 {
        font-size: 22px;
    }

    .lurah-stat-value {
        font-size: 34px;
    }
}





/* =========================
   LURAH RESPONSIVE
========================= */

/* MAIN */
.lurah-main {
    flex: 1;
    padding: 18px;
    width: 100%;
}

.lurah-topbar {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    margin-bottom: 18px;
    position: relative;
}

.lurah-topbar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.lurah-topbar-center i {
    font-size: 28px;
    color: #005F02;
}

.lurah-topbar h1 {
    margin: 0;
    color: #005F02;
    font-size: 28px;
    font-weight: 700;
}

.lurah-center-text {
    text-align: center;
}

.lurah-welcome-card {
    background: #ffffff;
    border-left: 6px solid #005F02;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    margin-bottom: 18px;
}

.lurah-welcome-card h2 {
    margin: 0 0 12px 0;
    color: #005F02;
    font-size: 26px;
}

.lurah-welcome-card p {
    margin: 0 auto;
    max-width: 800px;
    line-height: 1.8;
    color: #4b5563;
}

.lurah-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.lurah-stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    border-top: 5px solid #427A43;
    text-align: center;
}

.lurah-stat-card h3 {
    margin: 0 0 14px 0;
    color: #427A43;
    font-size: 24px;
}

.lurah-stat-value {
    font-size: 40px;
    font-weight: 700;
    color: #005F02;
}


/* HAMBURGER default disembunyikan */
.mobile-menu-toggle {
    display: none;
    position: absolute;
    left: 5px;
    top: 25px;
    transform: translateY(-50%);
    background: #005F02;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 16px;
    cursor: pointer;
}



/* overlay default */
.sidebar-overlay {
    display: none;
}

/* TABLET */
@media (max-width: 1024px) {
    .lurah-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* MOBILE ONLY */
@media (max-width: 768px) {
    .lurah-layout {
        display: block;
    }

    .lurah-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        height: 100%;
        z-index: 1000;
        transition: 0.3s ease;
        overflow-y: auto;
    }

    .lurah-sidebar.active {
        left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.35);
        z-index: 999;
        display: none;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .mobile-menu-toggle {
        display: inline-block;
    }

    .lurah-main {
        padding: 14px;
    }

    .lurah-topbar {
        padding: 16px 20px;
    }

    .lurah-topbar h1 {
        font-size: 24px;
    }

    .lurah-topbar-center i {
        font-size: 24px;
    }

    .lurah-welcome-card h2 {
        font-size: 22px;
    }

    .lurah-stat-card h3 {
        font-size: 22px;
    }

    .lurah-stat-value {
        font-size: 34px;
    }
}


/* LAPORAN LURAH */
.lurah-report-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.lurah-report-box {
    height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.lurah-report-box .table-wrapper {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 16px;
}

.lurah-report-box .laporan-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
}

.lurah-filter-box {
    display: flex;
    align-items: end;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.lurah-filter-box .filter-group {
    display: flex;
    flex-direction: column;
}

.lurah-filter-box .filter-group label {
    font-size: 14px;
    margin-bottom: 6px;
    color: #374151;
    font-weight: 600;
}

.lurah-filter-box .filter-group input {
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    outline: none;
}

.lurah-filter-box .filter-group input:focus {
    border-color: #427A43;
    box-shadow: 0 0 0 3px rgba(66, 122, 67, 0.12);
}

/* MOBILE LAPORAN */
@media (max-width: 768px) {
    .lurah-filter-box {
        flex-direction: column;
        align-items: stretch;
    }

    .lurah-filter-box .filter-group {
        width: 100%;
    }

    .btn-tampil,
    .btn-cetak {
        width: 100%;
    }
}



/* JUDUL APP DI HALAMAN LAPORAN LURAH */
.lurah-app-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #005F02;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 6px;
}

.lurah-app-title i {
    font-size: 24px;
}

.lurah-app-title span {
    font-size: 24px;
}

.lurah-page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lurah-page-title h1 {
    margin: 0;
    font-size: 24px;
    color: #005F02;
}

.lurah-page-title i {
    font-size: 24px;
    color: #005F02;
}

.lurah-app-title {
    margin-bottom: 10px;
}

.lurah-page-title {
    margin-top: 6px;
}



/* =========================
   PRINT KHUSUS HALAMAN LURAH
========================= */
@media print {
    body.lurah-body {
        background: white !important;
        color: black !important;
        margin: 0 !important;
    }

    .lurah-sidebar,
    .sidebar-overlay,
    .mobile-menu-toggle,
    .lurah-topbar,
    .lurah-filter-box,
    .btn-tampil,
    .btn-cetak {
        display: none !important;
    }

    .lurah-layout {
        display: block !important;
        min-height: auto !important;
    }

    .lurah-main {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .lurah-report-box {
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        background: white !important;
    }

    /* .print-header,
    .print-line,
    .print-title,
    .ttd-section {
        display: block !important;
    }

    .table-wrapper {
        overflow: visible !important;
        margin-top: 10px !important;
    }

    .laporan-table {
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 12px !important;
    }

    .laporan-table th,
    .laporan-table td {
        border: 1px solid #000 !important;
        padding: 8px !important;
        text-align: center !important;
        color: #000 !important;
        background: #fff !important;
    }

    .laporan-table th {
        font-weight: bold !important;
    }

    .file-link {
        color: #000 !important;
        text-decoration: none !important;
        font-weight: normal !important;
    }

    .ttd-section {
        margin-top: 32px !important;
    }

    .ttd-box {
        width: 260px !important;
        margin-left: auto !important;
        text-align: center !important;
        color: #000 !important;
    }

    .ttd-space {
        height: 70px !important;
    }

    @page {
        size: A4 portrait;
        margin: 18mm;
    } */
}



/* =========================
   MODAL KONFIRMASI HAPUS
========================= */
.custom-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.custom-modal.show {
    display: flex;
}

.custom-modal-content {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    animation: modalFadeIn 0.2s ease;
}

.custom-modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.custom-modal-content h3 {
    margin: 0 0 10px;
    color: #1f2937;
    font-size: 24px;
}

.custom-modal-content p {
    margin: 0 0 22px;
    color: #4b5563;
    line-height: 1.7;
    font-size: 15px;
}

.custom-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-modal-cancel,
.btn-modal-delete {
    min-width: 120px;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
    font-size: 14px;
}

.btn-modal-cancel {
    background: #e5e7eb;
    color: #374151;
}

.btn-modal-cancel:hover {
    background: #d1d5db;
}

.btn-modal-delete {
    background: #dc2626;
    color: #ffffff;
}

.btn-modal-delete:hover {
    background: #b91c1c;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}



.logout-icon {
    background: #dbeafe;
    color: #b91c1c;
}

.btn-modal-logout {
    min-width: 120px;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
    font-size: 14px;
    background: #dc2626;
    color: #ffffff;
}

.btn-modal-logout:hover {
    background: #b91c1c;
}


/* INPUT GROUP PASSWORD */
.input-group {
    position: relative;
    width: 100%;
}

.input-group input {
    width: 100%;
    padding: 14px 45px 14px 45px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    outline: none;
}

/* icon kiri */
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

/* icon mata kanan */
.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    cursor: pointer;
    transition: 0.2s;
}

.toggle-password:hover {
    color: #005F02;
}







/* MOBILE - LAPORAN LURAH LEBIH RAPI */
@media (max-width: 768px) {
    .lurah-main {
        padding: 14px;
    }

    .lurah-topbar {
        padding: 18px 16px;
        border-radius: 20px;
        margin-bottom: 16px;
    }

    .lurah-app-title {
        justify-content: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    .lurah-app-title span {
        font-size: 18px;
        font-weight: 800;
    }

    .lurah-page-title {
        justify-content: center;
        gap: 10px;
        text-align: center;
    }

    .lurah-page-title h1 {
        font-size: 20px;
        line-height: 1.3;
        margin: 0;
    }

    .lurah-page-title i {
        font-size: 22px;
    }

    .lurah-report-box {
        padding: 18px 16px;
        border-radius: 22px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    }

    .print-header,
    .print-line,
    .print-title,
    .ttd-section {
        display: none;
    }

    .lurah-filter-box {
        display: flex;
        flex-direction: column;
        gap: 14px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 18px;
        padding: 18px 16px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
        margin-bottom: 16px;
    }

    .filter-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .filter-group label {
        font-size: 14px;
        font-weight: 700;
        color: #334155;
    }

    .filter-group input[type="date"] {
        width: 100%;
        height: 52px;
        padding: 0 14px;
        border: 1px solid #d1d5db;
        border-radius: 14px;
        font-size: 16px;
        background: #fff;
        box-sizing: border-box;
    }

    .btn-tampil,
    .btn-cetak {
        width: 100%;
        height: 50px;
        border: none;
        border-radius: 14px;
        font-size: 16px;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .table-wrapper {
        border-radius: 18px;
        overflow-x: auto;
        overflow-y: auto;
        max-height: 420px;
        background: #fff;
        border: 1px solid #e5e7eb;
    }

    .mobile-menu-toggle {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}








/* =========================
   SIDEBAR MOBILE ADMIN - GAYA MIRIP LURAH
========================= */
@media (max-width: 768px) {
    .nav-menu {
        background: linear-gradient(180deg, #427A43, #3a6f3b) !important;
        color: #ffffff !important;
        padding: 18px 14px 24px !important;
    }

    /* .nav-menu::before {
        content: "E-Arsip";
        display: block;
        font-size: 28px;
        font-weight: 800;
        color: #ffffff;
        margin-bottom: 18px;
        padding: 8px 6px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.22);
    } */

    .nav-menu > a,
    .dropbtn {
        color: #ffffff !important;
        background: transparent !important;
        border-radius: 14px;
        padding: 14px 16px !important;
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .nav-menu > a:hover,
    .dropbtn:hover,
    .nav-menu > a.active,
    .dropbtn.active {
        background: linear-gradient(135deg, #005F02, #1e7a20) !important;
        color: #ffffff !important;
        box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    }

    .dropdown-content {
        padding-left: 12px !important;
        margin-bottom: 8px;
    }

    .dropdown-content a {
        color: #f8fafc !important;
        background: transparent !important;
        font-weight: 600;
        padding: 10px 14px !important;
        border-radius: 10px;
        margin-bottom: 4px;
    }

    .dropdown-content a:hover {
        background: rgba(255,255,255,0.10) !important;
        color: #ffffff !important;
    }

    .nav-mobile-account {
        margin-top: 18px;
        padding-top: 18px;
        border-top: 1px solid rgba(255,255,255,0.25);
    }

    .nav-mobile-account::before {
        content: "";
        display: block;
        width: 100%;
        height: 0;
        margin-bottom: 14px;
    }

    .nav-mobile-account a {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: 100%;
        background: #ef4444 !important;
        color: #ffffff !important;
        padding: 14px 16px !important;
        border-radius: 14px;
        font-size: 16px;
        font-weight: 700;
        box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    }

    .nav-mobile-account a:hover {
        background: #dc2626 !important;
    }
}



@media (max-width: 768px) {
    .admin-mobile-profile {
        display: flex;
        align-items: center;
        gap: 12px;
        background: linear-gradient(135deg, #dcecff, #bfd8ff);
        color: #183153;
        padding: 14px 16px;
        border-radius: 16px;
        font-weight: 700;
        font-size: 16px;
        margin: 4px 0 16px;
    }

    .admin-mobile-profile i {
        font-size: 22px;
    }
}



/* sembunyikan profil mobile di desktop */
.admin-mobile-profile {
    display: none;
}

/* tampilkan hanya saat mobile */
@media (max-width: 768px) {
    .admin-mobile-profile {
        display: flex;
        align-items: center;
        gap: 12px;
        background: linear-gradient(135deg, #dcecff, #bfd8ff);
        color: #183153;
        padding: 14px 16px;
        border-radius: 16px;
        font-weight: 700;
        font-size: 16px;
        margin: 4px 0 16px;
    }

    .admin-mobile-profile i {
        font-size: 22px;
    }
}




/* LOGO SIDEBAR ADMIN MOBILE */
.admin-mobile-logo {
    display: none;
}

/* hanya tampil di mobile */
@media (max-width: 768px) {
    .admin-mobile-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 16px;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.25);
        text-align: center;
    }

    .admin-mobile-logo img {
        width: 70px;
        height: 70px;
        object-fit: contain;
        background: #ffffff;
        border-radius: 16px;
        padding: 8px;
        margin-bottom: 10px;
    }

    .admin-mobile-logo h2 {
        color: #ffffff;
        font-size: 20px;
        font-weight: 800;
        margin: 0;
    }

    .admin-mobile-logo p {
        color: rgba(255,255,255,0.85);
        font-size: 13px;
        margin-top: 4px;
    }
}



/* =========================
   MOBILE LURAH - TOPBAR MIRIP ADMIN
========================= */
@media (max-width: 768px) {
    .lurah-topbar {
        background: linear-gradient(135deg, #005F02, #427A43);
        border-radius: 20px;
        padding: 18px 18px 18px 72px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        margin-bottom: 18px;
        position: relative;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        width: 42px;
        height: 42px;
        border: none;
        border-radius: 12px;
        background: rgba(255,255,255,0.15);
        color: #ffffff;
        font-size: 18px;
        cursor: pointer;
    }

    .lurah-app-title {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        margin: 0;
        padding: 0;
        border: none;
        color: #ffffff;
    }

    .lurah-app-title i {
        font-size: 24px;
        color: #ffffff;
    }

    .lurah-app-title span {
        font-size: 22px;
        font-weight: 800;
        color: #ffffff;
        line-height: 1;
    }

    .lurah-page-title {
        display: none;
    }
}







@media (max-width: 768px) {
    .lurah-topbar {
        background: linear-gradient(135deg, #005F02, #427A43);
        border-radius: 20px;
        padding: 18px 18px 18px 72px;
        position: relative;
        margin-bottom: 6px;
    }

    .mobile-menu-toggle {
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        width: 42px;
        height: 42px;
        border: none;
        border-radius: 12px;
        background: rgba(255,255,255,0.15);
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        cursor: pointer;
    }

    .lurah-topbar .lurah-app-title {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        padding: 0;
        border: none;
        color: #ffffff !important;
    }

    .lurah-topbar .lurah-app-title i,
    .lurah-topbar .lurah-app-title span {
        color: #ffffff !important;
    }

    .lurah-topbar .lurah-app-title span {
        font-size: 22px;
        font-weight: 800;
        line-height: 1;
    }
}



@media (max-width: 768px) {
    .lurah-topbar {
        background: linear-gradient(135deg, #005F02, #427A43) !important;
        border-radius: 20px !important;
        padding: 18px 18px 18px 72px !important;
        position: relative !important;
        margin-bottom: 18px !important;
    }

    .mobile-menu-toggle {
        position: absolute !important;
        left: 18px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 42px !important;
        height: 42px !important;
        border: none !important;
        border-radius: 12px !important;
        background: rgba(255,255,255,0.15) !important;
        color: #ffffff !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 18px !important;
        cursor: pointer !important;
    }

    .lurah-topbar-center {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        text-align: left !important;
    }

    .lurah-topbar-center i,
    .lurah-topbar-center h1 {
        color: #ffffff !important;
    }

    .lurah-topbar-center i {
        font-size: 24px !important;
    }

    .lurah-topbar-center h1 {
        margin: 0 !important;
        font-size: 22px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
    }
}



@media (max-width: 768px) {
    /* sembunyikan E-Arsip di mobile */
    .lurah-app-title {
        display: none !important;
    }

    /* jadikan judul halaman sebagai pengganti */
    .lurah-page-title {
        display: flex !important;
        align-items: center;
        gap: 10px;
        margin: 0 !important;
        padding: 0 !important;
    }

    .lurah-page-title i {
        color: #ffffff !important;
        font-size: 20px !important;
    }

    .lurah-page-title h1 {
        color: #ffffff !important;
        font-size: 18px !important;
        font-weight: 800 !important;
        margin: 0 !important;
    }
}

@media (max-width: 768px) {
    .lurah-page-title {
        gap: 6px;
    }
}




/* =========================
   DASHBOARD LURAH - CARD JUMLAH SURAT DENGAN IKON
========================= */
.lurah-stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: left;
}

.lurah-stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, #005F02, #427A43);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.lurah-stat-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lurah-stat-content h3 {
    margin: 0 0 8px 0;
    color: #427A43;
    font-size: 22px;
    font-weight: 700;
}

.lurah-stat-value {
    font-size: 26px;
    font-weight: 700;
    color: #005F02;
    line-height: 1;
}






/* HERO FOTO KANTOR */
.hero-kantor {
    margin-top: 26px;
    position: relative;
    height: 300px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.hero-kantor img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,95,2,0.82), rgba(0,0,0,0.15));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px;
    color: #ffffff;
}

.hero-overlay h2 {
    font-size: 38px;
    margin: 0 0 8px;
}

.hero-overlay p {
    font-size: 18px;
    margin: 0;
}

/* DIAGRAM DASHBOARD */
.dashboard-chart-card {
    margin-top: 26px;
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.chart-left h3 {
    color: #005F02;
    font-size: 28px;
    margin-bottom: 8px;
}

.chart-left p {
    color: #4b5563;
    margin-bottom: 18px;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-weight: 700;
    color: #374151;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

.legend-color.masuk {
    background: #005F02;
}

.legend-color.keluar {
    background: #f59e0b;
}

.donut-chart {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donut-center {
    width: 130px;
    height: 130px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.donut-center strong {
    font-size: 36px;
    color: #005F02;
}

.donut-center span {
    font-size: 14px;
    color: #4b5563;
    font-weight: 700;
}

@media (max-width: 768px) {
    .hero-kantor {
        height: 220px;
    }

    .hero-overlay {
        padding: 24px;
    }

    .hero-overlay h2 {
        font-size: 28px;
    }

    .dashboard-chart-card {
        flex-direction: column;
        text-align: center;
    }

    .donut-chart {
        width: 200px;
        height: 200px;
    }
}



/* HERO SLIDER */
.welcome-hero {
    margin-top: 26px;
    height: 300px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

/* SLIDE */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

/* FOTO-FOTO */
.hero-slide:nth-child(1) {
    background-image: url('../../assets/img/depankantor.jpeg');
}
.hero-slide:nth-child(2) {
    background-image: url('../../assets/img/depankantor2.jpg'); /* bisa ganti foto lain */
}
.hero-slide:nth-child(3) {
    background-image: url('../../assets/img/depankantor3.jpg'); /* bisa tambah variasi */
}

.hero-slide.active {
    opacity: 1;
}

/* OVERLAY */
.welcome-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 95, 2, 0.6);
}

/* TEXT */
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.hero-content h1 {
    font-size: 38px;
    margin-bottom: 12px;
}

.hero-content p {
    max-width: 600px;
    line-height: 1.7;
}


.hero-slide {
    background-size: cover;
    background-position: center 70%; /* ⬅️ ini kuncinya */
}



.donut-chart {
    animation: donutSpinIn 1s ease-out;
    transition: transform 0.4s ease;
}

.donut-chart:hover {
    transform: rotate(12deg) scale(1.04);
}

@keyframes donutSpinIn {
    from {
        transform: rotate(-90deg) scale(0.9);
        opacity: 0;
    }
    to {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}


.ttd-box p {
    margin: 4px 0;
}

.nama-lurah {
    font-weight: 700;
    margin-bottom: 2px !important;
}

.nip-lurah {
    margin-top: 0 !important;
}

.ttd-space {
    height: 70px;
}










@media (max-width: 768px) {
    .welcome-hero {
        height: auto;
        min-height: 260px;
    }

    .hero-content {
        padding: 26px 22px;
    }

    .hero-content h1 {
        font-size: 28px !important;
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .hero-content p {
        font-size: 15px !important;
        line-height: 1.7;
        max-width: 100%;
    }
}



/* overlay biar teks tetap kebaca */
.welcome-hero::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 95, 2, 0.6);
}

/* teks */
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 30px;
}


/* FIX TABEL SURAT MASUK LURAH */
.lurah-report-box {
    max-width: 100%;
    overflow: hidden;
}

.lurah-report-box .table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: auto;
}

.lurah-report-box .laporan-table {
    min-width: 1200px;
}

.lurah-main {
    max-width: 100%;
    overflow-x: hidden;
}


/* BADGE STATUS BACA */
.badge-baca {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-baca.sudah {
    background: #dcfce7;
    color: #166534;
}

.badge-baca.belum {
    background: #fee2e2;
    color: #991b1b;
}


.success-icon {
    background: #dcfce7;
    color: #16a34a;
}

.btn-modal-success {
    min-width: 120px;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    background: #16a34a;
    color: #ffffff;
}

.btn-modal-success:hover {
    background: #15803d;
}


/* NOTIFIKASI SURAT MASUK LURAH */
.notif-surat-card {
    margin: 18px 0;
    background: #ffffff;
    border-left: 6px solid #f59e0b;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.notif-surat-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #fef3c7;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.notif-surat-text h3 {
    margin: 0 0 6px;
    color: #1f2937;
    font-size: 20px;
}

.notif-surat-text p {
    margin: 0 0 8px;
    color: #4b5563;
}

.notif-surat-text a {
    color: #005F02;
    font-weight: 700;
    text-decoration: none;
}

.notif-surat-text a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .notif-surat-card {
        align-items: flex-start;
    }
}



.btn-selesai {
    background: #22c55e;
    color: #ffffff;
}

.btn-selesai:hover {
    background: #16a34a;
}
