.pub-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 120px;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s, opacity 0.15s;
}
.pub-btn:active:not(:disabled) { transform: scale(0.98); }
.pub-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.pub-btn-masuk { background: linear-gradient(135deg, #16a34a, #15803d); }
.pub-btn-keluar { background: linear-gradient(135deg, #475569, #334155); }

.pub-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
.pub-modal.hidden { display: none; }
.pub-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.pub-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 28rem;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 1.25rem 1.25rem 0 0;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
}
@media (min-width: 640px) {
    .pub-modal { align-items: center; padding: 1rem; }
    .pub-modal-panel { border-radius: 1rem; max-height: 85vh; }
}
.pub-modal-panel-lg { max-width: 32rem; }

.jenis-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: border-color 0.15s, background 0.15s;
}
.jenis-card:hover { border-color: #16a34a; background: #f0fdf4; }
.jenis-card.selected {
    border-color: #16a34a;
    background: #dcfce7;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
}

#alert-box.ok { display: block; background: #dcfce7; color: #166534; border: 1px solid #86efac; }
#alert-box.err { display: block; background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
