* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f5f6f8;
    color: #1f2937;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

a {
    color: inherit;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.app-header-inner {
    width: 100%;
    max-width: 1500px;
    min-height: 74px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.app-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.app-brand img {
    display: block;
    width: auto;
    height: 50px;
    max-width: 145px;
    object-fit: contain;
}

.app-nav {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.app-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 9px;
    text-decoration: none;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.app-nav a:hover {
    background: #f3f4f6;
    color: #111827;
}

.app-nav a.active {
    background: #111827;
    color: #ffffff;
}

.app-user {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.app-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.3;
}

.app-user-info strong {
    font-size: 14px;
    color: #111827;
}

.app-user-info span {
    margin-top: 2px;
    color: #6b7280;
    font-size: 12px;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #fecaca;
    border-radius: 9px;
    background: #ffffff;
    color: #b91c1c;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.btn-logout:hover {
    background: #fef2f2;
}

.app-main {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 30px 24px 50px;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    margin: 0 0 7px;
    color: #111827;
    font-size: 28px;
    line-height: 1.2;
}

.page-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    padding: 24px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
    gap: 18px;
    margin-top: 22px;
}

.stat-card {
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
}

.stat-label {
    margin-bottom: 10px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.stat-value {
    color: #111827;
    font-size: 28px;
    font-weight: 700;
}

@media (max-width: 1200px) {

    .app-header-inner {
        flex-wrap: wrap;
        gap: 10px 18px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .app-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .app-user {
        margin-left: auto;
    }

}

@media (max-width: 900px) {

    .dashboard-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}

@media (max-width: 600px) {

    .app-header-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .app-main {
        padding:
            22px
            16px
            40px;
    }

    .app-brand img {
        height: 44px;
    }

    .app-user-info {
        display: none;
    }

    .page-header h1 {
        font-size: 23px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

}

.page-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.btn-primary,
.btn-secondary,
.btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    border: 1px solid #111827;
    background: #111827;
    color: #ffffff;
}

.btn-primary:hover {
    opacity: 0.92;
}

.btn-secondary {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
}

.btn-secondary:hover {
    background: #f9fafb;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.toolbar-search {
    flex: 1;
}

.toolbar-search input {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    font-size: 14px;
    outline: none;
}

.toolbar-search input:focus {
    border-color: #111827;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.data-table th,
.data-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
    text-align: left;
    font-size: 14px;
}

.data-table th {
    background: #f9fafb;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.data-table tbody tr:hover {
    background: #fafafa;
}

.text-right {
    text-align: right !important;
}

.action-group {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
}

.btn-small {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    font-size: 12px;
}

.btn-small:hover {
    background: #f3f4f6;
}

.btn-danger {
    border-color: #fecaca;
    color: #b91c1c;
}

.btn-danger:hover {
    background: #fef2f2;
}

.empty-state {
    padding: 40px !important;
    text-align: center !important;
    color: #6b7280;
}

@media (max-width: 700px) {

    .page-header-flex {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar {
        flex-wrap: wrap;
    }

    .toolbar-search {
        flex-basis: 100%;
    }

}

.alert {
    width: 100%;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.alert-danger {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.form-grid {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-full {
    grid-column: 1 / -1;
}

.form-group label {
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #ffffff;
    color: #111827;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.form-group input,
.form-group select {
    min-height: 44px;
    padding: 0 13px;
}

.form-group textarea {
    padding: 12px 13px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #111827;
}

.required {
    color: #dc2626;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.table-address {
    max-width: 300px;
    white-space: normal;
    line-height: 1.5;
}

@media (max-width: 700px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-full {
        grid-column: auto;
    }

    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
    }

}

.page-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inline-form {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.inline-form button {
    font-family: inherit;
}

.detail-grid {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.detail-item {
    min-width: 0;
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.detail-item:nth-child(odd) {
    border-right: 1px solid #e5e7eb;
}

.detail-full {
    grid-column: 1 / -1;
    border-right: 0 !important;
}

.detail-label {
    margin-bottom: 7px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-value {
    color: #111827;
    font-size: 15px;
    line-height: 1.6;
    word-break: break-word;
}

.detail-value a {
    color: #2563eb;
    text-decoration: none;
}

.detail-value a:hover {
    text-decoration: underline;
}

.detail-text {
    white-space: normal;
}

@media (max-width: 700px) {

    .page-header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .page-header-actions .btn-primary,
    .page-header-actions .btn-secondary {
        width: 100%;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-item:nth-child(odd) {
        border-right: 0;
    }

    .detail-full {
        grid-column: auto;
    }

}


/* =========================================================
   GLOBAL TABLE TOOLBAR SELECT
   ========================================================= */

.toolbar-select-wrap {
    position: relative;
    flex: 0 0 auto;
}

.toolbar-select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 7px;
    height: 7px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.toolbar-select {
    appearance: none;
    -webkit-appearance: none;
    min-width: 118px;
    min-height: 42px;
    padding: 0 42px 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #ffffff;
    color: #374151;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.toolbar-select:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.toolbar-select:focus {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}


/* =========================================================
   GLOBAL TABLE FOOTER / SUMMARY / PAGINATION
   ========================================================= */

.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 18px;
    margin-top: 4px;
}

.table-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.table-summary strong {
    color: #111827;
    font-weight: 700;
}

.table-summary-separator {
    color: #d1d5db;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.pagination-link:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.pagination-link.active {
    border-color: #111827;
    background: #111827;
    color: #ffffff;
    cursor: default;
}

.pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 36px;
    color: #9ca3af;
    font-size: 13px;
}


/* =========================================================
   GLOBAL RESPONSIVE TABLE CONTROLS
   ========================================================= */

@media (max-width: 700px) {

    .toolbar-select-wrap {
        width: 100%;
    }

    .toolbar-select {
        width: 100%;
    }

    .table-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .table-summary {
        width: 100%;
    }

    .pagination {
        width: 100%;
        justify-content: flex-start;
    }

}

/* =========================================================
 * JJJ INTERNAL SYSTEM
 * GLOBAL TOOLBAR SEARCH FIX
 * VERSION: 1.0.1
 *
 * TARGET:
 * public_html/app/assets/css/app.css
 *
 * STATUS:
 * Tambahkan blok ini di BAGIAN PALING BAWAH app.css
 *
 * Dampak:
 * - Peserta
 * - Kegiatan
 * - Halaman lain yang memakai .toolbar-search
 * ========================================================= */


/* =========================================================
   TOOLBAR SEARCH
   ========================================================= */

.toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 20px;
}

.toolbar-search {
    flex: 1 1 420px;
    min-width: 220px;
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 0 14px;

    color: #172033;
    background: #ffffff;

    border: 1px solid #d8dee8;
    border-radius: 10px;

    outline: none;

    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;

    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.toolbar-search::placeholder {
    color: #8a94a6;
    opacity: 1;
}

.toolbar-search:hover {
    border-color: #bcc6d4;
}

.toolbar-search:focus {
    border-color: #7d8ca3;
    box-shadow:
        0 0 0 3px rgba(31, 45, 67, 0.08);
}


/* Chrome / Edge search decoration */

.toolbar-search::-webkit-search-decoration {
    -webkit-appearance: none;
}

.toolbar-search::-webkit-search-cancel-button {
    cursor: pointer;
}


/* =========================================================
   SAMAKAN TINGGI KONTROL TOOLBAR
   ========================================================= */

.toolbar .toolbar-select-wrap,
.toolbar .btn-primary,
.toolbar .btn-secondary {
    flex: 0 0 auto;
}

.toolbar .toolbar-select {
    height: 44px;
    min-height: 44px;
}

.toolbar .btn-primary,
.toolbar .btn-secondary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    .toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .toolbar-search {
        flex: none;
        min-width: 0;
        width: 100%;
    }

    .toolbar .toolbar-select-wrap {
        width: 100%;
    }

    .toolbar .toolbar-select {
        width: 100%;
    }

    .toolbar .btn-primary,
    .toolbar .btn-secondary {
        width: 100%;
    }
}

/* =========================================================
   JJJ INTERNAL SYSTEM
   TABLE FORM CONTROLS
   VERSION : 1.0.0

   Tujuan:
   - Menyamakan tampilan field di dalam tabel
   - Status Kehadiran <select>
   - Jabatan Kegiatan <input>
   - Mengikuti bahasa visual form utama aplikasi
   ========================================================= */


/* ---------------------------------------------------------
   Cell yang berisi form control
   --------------------------------------------------------- */

.table-form-cell {
    vertical-align: middle;
}


/* ---------------------------------------------------------
   Base control
   Dipakai bersama oleh input dan select di dalam tabel
   --------------------------------------------------------- */

.table-form-control {
    display: block;
    width: 100%;
    min-width: 0;
    height: 44px;

    margin: 0;
    padding: 0 14px;

    border: 1px solid #d7dce3;
    border-radius: 10px;

    background-color: #ffffff;
    color: #111827;

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;

    box-sizing: border-box;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}


.table-form-control:hover {
    border-color: #b7bec8;
}


.table-form-control:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}


.table-form-control:disabled {
    background-color: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}


/* ---------------------------------------------------------
   Input text di dalam tabel
   Contoh: Jabatan Kegiatan
   --------------------------------------------------------- */

.table-form-input {
    appearance: none;
    -webkit-appearance: none;
}


.table-form-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}


/* ---------------------------------------------------------
   Select di dalam tabel
   Contoh: Status Kehadiran
   --------------------------------------------------------- */

.table-form-select {
    padding-right: 42px;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    cursor: pointer;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5.5 7.5L10 12L14.5 7.5' stroke='%236B7280' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 18px 18px;
}


.table-form-select::-ms-expand {
    display: none;
}


/* ---------------------------------------------------------
   Ukuran field per konteks
   --------------------------------------------------------- */

.status-kehadiran-select {
    width: 100%;
    min-width: 170px;
    max-width: 210px;
}


.jabatan-kegiatan-input {
    width: 100%;
    min-width: 190px;
    max-width: 280px;
}


/* ---------------------------------------------------------
   Konsistensi di dalam data table
   --------------------------------------------------------- */

.data-table td.table-form-cell {
    padding-top: 10px;
    padding-bottom: 10px;
}


.data-table td.table-form-cell .table-form-control {
    margin: 0;
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .status-kehadiran-select,
    .jabatan-kegiatan-input {
        min-width: 160px;
        max-width: none;
    }

}

/* =========================================================
   JJJ INTERNAL SYSTEM
   MATERI - UNIT FILE TABLE
   VERSION : 1.0.0

   TARGET:
   public_html/app/assets/css/app.css

   STATUS:
   Tambahkan di bagian paling bawah app.css
   ========================================================= */


/* ---------------------------------------------------------
   Stack file per Unit
   --------------------------------------------------------- */

.unit-file-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 280px;
}


.unit-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding: 9px 10px;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    background: #ffffff;
}


.unit-file-main {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: 0;
    flex: 1;
}


.unit-file-name {
    display: block;

    min-width: 0;
    max-width: 240px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #111827;
    font-weight: 600;
    text-decoration: none;
}


.unit-file-name:hover {
    text-decoration: underline;
}


.unit-file-meta {
    flex: 0 0 auto;

    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}


.unit-file-empty {
    padding: 10px 12px;

    border: 1px dashed #d1d5db;
    border-radius: 10px;

    color: #6b7280;
    background: #f9fafb;
}


/* ---------------------------------------------------------
   Upload area
   --------------------------------------------------------- */

.unit-upload-form {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 2px;
}


.unit-file-picker {
    display: flex;
    align-items: center;

    min-width: 0;
    flex: 1;

    height: 40px;

    border: 1px solid #d1d5db;
    border-radius: 10px;

    background: #ffffff;

    overflow: hidden;
    cursor: pointer;
}


.unit-file-picker:hover {
    border-color: #9ca3af;
}


.unit-file-picker-label {
    display: flex;
    align-items: center;

    height: 100%;
    padding: 0 12px;

    border-right: 1px solid #d1d5db;

    background: #f9fafb;

    color: #111827;
    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;
}


.unit-file-picker-name {
    display: block;

    min-width: 0;
    flex: 1;

    padding: 0 12px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #6b7280;
    font-size: 13px;
}


.unit-file-input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}


/* ---------------------------------------------------------
   Table alignment
   --------------------------------------------------------- */

.data-table td {
    vertical-align: middle;
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .unit-file-stack {
        min-width: 240px;
    }

    .unit-upload-form {
        align-items: stretch;
        flex-direction: column;
    }

    .unit-file-picker {
        width: 100%;
    }

    .unit-upload-form .btn-small {
        width: 100%;
    }

}


/* =========================================================
   DASHBOARD V2
   ========================================================= */

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: stretch;
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
}

.dashboard-hero-main {
    min-width: 0;
}

.dashboard-eyebrow {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6b7280;
}

.dashboard-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    color: #111827;
}

.dashboard-hero p {
    margin: 0;
    max-width: 720px;
    color: #6b7280;
    line-height: 1.7;
}

.dashboard-hero-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 12px;
    min-width: 290px;
}

.dashboard-hero-meta > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.dashboard-hero-meta span {
    font-size: 12px;
    color: #6b7280;
}

.dashboard-hero-meta strong {
    font-size: 15px;
    color: #111827;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.dashboard-stat-card {
    display: block;
    min-width: 0;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    text-decoration: none;
    transition:
        transform .15s ease,
        box-shadow .15s ease,
        border-color .15s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-2px);
    border-color: #d1d5db;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.dashboard-stat-label {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.dashboard-stat-value {
    margin-bottom: 8px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: #111827;
}

.dashboard-stat-note {
    font-size: 12px;
    line-height: 1.45;
    color: #9ca3af;
}

.dashboard-section {
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
}

.dashboard-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.dashboard-section-head h2 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #111827;
}

.dashboard-section-head p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.dashboard-finance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-finance-card {
    padding: 18px;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    background: #f8fafc;
}

.dashboard-finance-card span {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #6b7280;
}

.dashboard-finance-card strong {
    display: block;
    font-size: 21px;
    line-height: 1.25;
    color: #111827;
    overflow-wrap: anywhere;
}

.dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 20px;
}

.dashboard-columns > .dashboard-section {
    min-width: 0;
}

.dashboard-list {
    display: flex;
    flex-direction: column;
}

.dashboard-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 14px 2px;
    border-top: 1px solid #eef2f7;
    text-decoration: none;
}

.dashboard-list-item:first-child {
    border-top: 0;
}

.dashboard-list-item:hover .dashboard-list-content strong {
    text-decoration: underline;
}

.dashboard-list-date {
    flex: 0 0 105px;
}

.dashboard-list-date strong,
.dashboard-list-date span {
    display: block;
}

.dashboard-list-date strong {
    margin-bottom: 3px;
    font-size: 13px;
    color: #111827;
}

.dashboard-list-date span {
    font-size: 11px;
    color: #6b7280;
}

.dashboard-list-content {
    flex: 1 1 auto;
    min-width: 0;
}

.dashboard-list-content strong,
.dashboard-list-content span {
    display: block;
}

.dashboard-list-content strong {
    margin-bottom: 4px;
    font-size: 14px;
    color: #111827;
    overflow-wrap: anywhere;
}

.dashboard-list-content span {
    font-size: 12px;
    color: #6b7280;
    overflow-wrap: anywhere;
}

.dashboard-list-meta {
    flex: 0 0 auto;
    font-size: 12px;
    color: #6b7280;
    text-align: right;
}

.dashboard-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f3f4f6;
    font-weight: 800;
    color: #374151;
}

.dashboard-empty {
    padding: 26px 16px;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

.dashboard-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-quick-card {
    display: block;
    padding: 17px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
    text-decoration: none;
    transition:
        transform .15s ease,
        border-color .15s ease,
        background .15s ease;
}

.dashboard-quick-card:hover {
    transform: translateY(-1px);
    border-color: #cbd5e1;
    background: #ffffff;
}

.dashboard-quick-card strong,
.dashboard-quick-card span {
    display: block;
}

.dashboard-quick-card strong {
    margin-bottom: 5px;
    font-size: 14px;
    color: #111827;
}

.dashboard-quick-card span {
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
}

@media (max-width: 1180px) {

    .dashboard-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-finance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 900px) {

    .dashboard-hero {
        flex-direction: column;
    }

    .dashboard-hero-meta {
        min-width: 0;
        width: 100%;
    }

    .dashboard-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .dashboard-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 640px) {

    .dashboard-hero {
        padding: 20px;
        border-radius: 14px;
    }

    .dashboard-hero-meta {
        grid-template-columns: 1fr;
    }

    .dashboard-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-stat-card {
        padding: 15px;
    }

    .dashboard-stat-value {
        font-size: 26px;
    }

    .dashboard-section {
        padding: 16px;
    }

    .dashboard-section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-finance-grid,
    .dashboard-quick-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-list-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .dashboard-list-date {
        flex-basis: 100%;
    }

    .dashboard-list-meta {
        margin-left: auto;
    }

}


/* =========================================================
   FORMULIR PENDAFTARAN PUBLIK
   ========================================================= */

.registration-page {
    margin: 0;
    min-height: 100vh;
    background: #f4f6f8;
}

.registration-shell {
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
}

.registration-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.registration-brand {
    display: flex;
    justify-content: center;
    padding: 24px 30px 10px;
}

.registration-brand img {
    display: block;
    width: auto;
    max-width: 170px;
    max-height: 72px;
    object-fit: contain;
}

.registration-head {
    padding: 12px 34px 26px;
    text-align: center;
}

.registration-eyebrow {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6b7280;
}

.registration-head h1,
.registration-success h1 {
    margin: 0 0 10px;
    color: #111827;
}

.registration-head h1 {
    font-size: 30px;
}

.registration-head p,
.registration-success p {
    margin: 0;
    line-height: 1.7;
    color: #6b7280;
}

.registration-card > .alert {
    margin: 0 34px 22px;
}

.registration-form {
    padding: 0 34px 34px;
}

.registration-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.registration-field {
    min-width: 0;
}

.registration-field-wide {
    grid-column: 1 / -1;
}

.registration-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

.registration-field label span {
    color: #dc2626;
}

.registration-field input,
.registration-field select,
.registration-field textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    outline: none;
    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.registration-field textarea {
    resize: vertical;
    min-height: 92px;
}

.registration-field input:focus,
.registration-field select:focus,
.registration-field textarea:focus {
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, .06);
}

.registration-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
    padding: 14px;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 12px;
    line-height: 1.6;
    color: #4b5563;
    cursor: pointer;
}

.registration-consent input {
    flex: 0 0 auto;
    margin-top: 3px;
}

.registration-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

.registration-submit {
    min-width: 190px;
}

.registration-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}

.registration-success {
    padding: 28px 34px 42px;
    text-align: center;
}

.registration-success-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #047857;
    font-size: 30px;
    font-weight: 800;
}

.registration-success p {
    max-width: 560px;
    margin: 0 auto 24px;
}

.registration-footer {
    padding: 18px 0 0;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
}

@media (max-width: 640px) {

    .registration-shell {
        width: min(100% - 20px, 760px);
        padding: 18px 0;
    }

    .registration-card {
        border-radius: 14px;
    }

    .registration-head,
    .registration-form,
    .registration-success {
        padding-left: 20px;
        padding-right: 20px;
    }

    .registration-card > .alert {
        margin-left: 20px;
        margin-right: 20px;
    }

    .registration-grid {
        grid-template-columns: 1fr;
    }

    .registration-field-wide {
        grid-column: auto;
    }

    .registration-actions {
        display: block;
    }

    .registration-submit {
        width: 100%;
    }

}

/* =========================================================
   KEGIATAN - MULTI MATERI
   VERSION : 1.0.0
   ========================================================= */

.kegiatan-materi-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    padding: 4px 0;
}

.kegiatan-materi-option {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
}

.kegiatan-materi-option:hover {
    background: #f8fafc;
}

.kegiatan-materi-option input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.kegiatan-materi-option span {
    min-width: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #111827;
}

@media (max-width: 700px) {

    .kegiatan-materi-list {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   JJJ INTERNAL SYSTEM
   HEADER - DROPDOWN KEUANGAN
   VERSION 1.0.0
   ========================================================= */

.app-nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.app-nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 15px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.app-nav-dropdown:hover .app-nav-dropdown-toggle,
.app-nav-dropdown:focus-within .app-nav-dropdown-toggle,
.app-nav-dropdown.active .app-nav-dropdown-toggle {
    background: #0f172a;
    color: #ffffff;
}

.app-nav-dropdown-arrow {
    font-size: 11px;
    line-height: 1;
    transition: transform .18s ease;
}

.app-nav-dropdown:hover .app-nav-dropdown-arrow,
.app-nav-dropdown:focus-within .app-nav-dropdown-arrow {
    transform: rotate(180deg);
}

.app-nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 205px;
    padding: 7px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .14);
}

.app-nav-dropdown:hover .app-nav-dropdown-menu,
.app-nav-dropdown:focus-within .app-nav-dropdown-menu {
    display: block;
}

.app-nav-dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #0f172a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.app-nav-dropdown-menu a:hover,
.app-nav-dropdown-menu a:focus {
    background: #f1f5f9;
    color: #0f172a;
}

@media (max-width: 900px) {
    .app-nav-dropdown {
        width: 100%;
    }

    .app-nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .app-nav-dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 6px;
        box-shadow: none;
    }
}
