/* Jurnal — hanya pelengkap tema panel admin (theme.css + admin.css) */
.admin-brand img {
    border-radius: 10px;
}
.admin-login-brand img {
    max-width: 96px;
    max-height: 96px;
    border-radius: 16px;
}

.jn-flash {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.45;
}
.jn-flash i { margin-top: 2px; flex-shrink: 0; }
.jn-flash p { margin: 0; }
.jn-flash.is-ok {
    background: rgba(27, 67, 50, 0.08);
    color: var(--color-green);
    border: 1px solid var(--color-border);
}
.jn-flash.is-warn {
    background: rgba(201, 162, 39, 0.12);
    color: #7a4e00;
    border: 1px dashed var(--color-gold);
}
.jn-flash.is-err {
    background: rgba(198, 40, 40, 0.06);
    color: #b71c1c;
    border: 1px dashed #e57373;
}

.jn-slot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}
.jn-slot:last-child { border-bottom: 0; }
.jn-slot strong { display: block; color: var(--color-green); font-family: var(--font-heading); }
.jn-slot span { display: block; color: var(--color-text-muted); font-size: 0.85rem; margin-top: 2px; }
.jn-slot .btn { margin-top: 0; }

.jn-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--color-green);
    color: #fff;
}
.jn-badge.warn { background: var(--color-gold); color: #1b4332; }
.jn-badge.ok { background: var(--color-green-mid, #2d6a4f); color: #fff; }

.jn-role-pick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 12px 0 20px;
}
.jn-role-pick label {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 14px 16px;
    cursor: pointer;
    background: var(--color-surface);
    display: block;
    font-weight: 600;
}
.jn-role-pick label:has(input:checked) {
    border-color: var(--color-green);
    background: rgba(27, 67, 50, 0.06);
    color: var(--color-green);
}
.jn-role-pick input { margin-right: 8px; }

.jn-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 6px 12px;
    margin-top: 6px;
}
.jn-check-grid label {
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.jn-denah {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.jn-denah td, .jn-denah th { text-align: center; }
.jn-denah td {
    padding: 4px;
    background: #f7f4ea;
    border: 1px dashed #c4b896;
    vertical-align: middle;
}
.jn-denah select { min-width: 0; width: 100%; font-size: 0.8rem; }
.jn-denah-papan {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 8px 10px;
    background: #1b4332;
    color: #fff;
    border-radius: 8px;
    margin: 10px 0 8px;
}
.jn-denah-meta { margin-top: 8px; }
.jn-piket-hari {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 12px;
    background: #fff;
}
.jn-piket-hari strong { display: block; margin-bottom: 8px; color: var(--color-green); }
.jn-piket-hari .jn-check-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    max-height: 220px;
    overflow: auto;
}
.jn-tt {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    min-width: 640px;
}
.jn-tt th, .jn-tt td {
    border: 1px solid var(--color-border);
    padding: 6px 8px;
    vertical-align: top;
}
.jn-tt thead th { text-align: center; background: #f3f6f3; }
.jn-tt tbody th {
    white-space: nowrap;
    text-align: left;
    background: #fafafa;
    font-weight: 600;
}
.jn-tt tbody th span {
    display: block;
    font-weight: 400;
    color: var(--color-text-muted);
    font-size: 0.75rem;
}
.jn-tt td.is-today, .jn-tt th.is-today { background: #e8f5e9; }
.jn-tt-cell { margin-bottom: 4px; }
.jn-tt-cell strong { display: block; color: var(--color-green); }
.jn-tt-cell span { color: var(--color-text-muted); font-size: 0.78rem; }
.jn-tt-empty { color: #bbb; }

.jn-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}
.jn-filter .form-group {
    margin: 0;
    min-width: 180px;
}

.admin-body .jn-ketua-main {
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
}

.admin-body table select.form-control,
.admin-body table input.form-control {
    min-width: 0;
    width: 100%;
    padding: 6px 8px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .admin-form-grid {
        grid-template-columns: 1fr;
    }
    .jn-ketua-main {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.jn-pwa-login-btn {
    margin-top: 10px;
    background: transparent !important;
    color: var(--color-green) !important;
    border: 1px solid var(--color-green) !important;
    box-shadow: none !important;
}
.jn-pwa-hint {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 80;
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--color-green);
    color: #fff;
    border-radius: 999px;
    padding: 8px 8px 8px 16px;
    box-shadow: 0 8px 24px rgba(27, 67, 50, 0.28);
}
.jn-pwa-hint__go {
    flex: 1;
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.jn-pwa-hint__skip {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}
.jn-pwa-sheet {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(20, 30, 24, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.jn-pwa-sheet[hidden] { display: none !important; }
.jn-pwa-sheet__card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 22px 20px 18px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.jn-pwa-sheet__card h3 {
    font-family: var(--font-heading);
    color: var(--color-green);
    margin: 0 28px 8px 0;
    font-size: 1.25rem;
}
.jn-pwa-sheet__card p {
    margin: 0 0 16px;
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}
.jn-pwa-sheet__x {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
}
.jn-pwa-sheet__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
html.jn-pwa-standalone .jn-pwa-hint,
html.jn-pwa-standalone .jn-pwa-login-btn { display: none !important; }
