/* assets/css/style.css */

/* RESET RINGAN */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #222;
    background: #f2f3f7;
}
a {text-decoration: none}

/* HALAMAN LOGIN */
.page-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.login-wrapper {
    width: 100%;
    max-width: 380px;
}

.login-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 18px 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.login-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.app-logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.45);
}

.app-title {
    font-size: 1.3rem;
    font-weight: 650;
    letter-spacing: 0.03em;
    color: #111827;
}

.app-subtitle {
    font-size: 0.78rem;
    color: #6b7280;
}

/* ALERT */
.alert {
    font-size: 0.82rem;
    padding: 8px 10px;
    border-radius: 10px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* FORM */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 0.82rem;
    color: #4b5563;
}

.form-group input {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 9px 14px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    background-color: #f9fafb;
}

.form-group input:focus {
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

/* BUTTON */
.btn {
    background: lightcyan;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 14px;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #4338ca);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.6);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
    background-color: #d1d5db;
    border-color: #e5e7eb;
    color: #1f2937;
}

.btn-secondary:hover {
    background-color: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

.btn-block {
    width: 100%;
}

/* FOOTER TEXT */
.login-footer-text {
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 14px;
}

/* RESPONSIVE SEDIKIT UNTUK LAYAR LEBIH LEBAR */
@media (min-width: 640px) {
    .login-card {
        padding: 24px 22px 20px;
        border-radius: 20px;
    }

    .app-title {
        font-size: 1.4rem;
    }
}

/* ==== LAYOUT APLIKASI SETELAH LOGIN ==== */

.page-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f3f4f6;
    color: #111827;
}

.app-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(209, 213, 219, 0.7);
}

.app-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-logo-small {
    width: 30px;
    height: 30px;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.35);
    font-size: 1rem;
}

.app-bar-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.app-bar-title {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.app-bar-subtitle {
    font-size: 0.7rem;
    color: #6b7280;
}

.app-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tombol user di app bar: tampilkan ikon + teks berjajar */
.app-bar-right .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Lingkaran kecil berisi ikon (gear/menu) */
.dropdown-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* Bungkus teks user (nama + role) agar tetap vertikal */
.dropdown-user-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-name {
    color: green;
    font-size: 0.8rem;
    font-weight: 600;
}

.user-role {
    font-size: 0.7rem;
    color: #6b7280;
}

.btn-ghost {
    background: transparent;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
    box-shadow: none;
}

.btn-ghost:hover {
    background: #f3f4f6;
}

.btn-ghost-small {
    padding: 4px 8px;
    font-size: 0.75rem;
}

.app-main {
    flex: 1;
    padding: 14px 12px 18px;
}

/* SECTIONS & CARD */
.section {
    margin-bottom: 16px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 3px;
    margin-top: 6px;
}

.section-subtitle {
    font-size: 0.8rem;
    color: #6b7280;
    padding-bottom: 6px;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 12px 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(209, 213, 219, 0.8);
    margin-bottom: 6px;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.card-content {
    margin-top: 4px;
}

.card-footer {
    margin-top: 10px;
}

/* GRID INFO */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 8px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 0.72rem;
    color: #6b7280;
}

.info-value {
    font-size: 0.86rem;
    font-weight: 500;
}

/* BADGE STATUS */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.status-aktif {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-prob {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.status-resign,
.status-nonaktif {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* STAT CARDS */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

/*.stat-card {
    padding: 10px 10px 9px;
}

.stat-label {
    font-size: 0.78rem;
    color: #6b7280;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 2px;
}*/

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (min-width: 768px) {
    .stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.stat-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
}

.stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
}

.stat-sub {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 2px;
}

/* QUICK LINKS */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.quick-link {
    display: flex;
    flex-direction: column;
    padding: 8px 9px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.quick-link:hover {
    border-color: #c7d2fe;
    background: #eef2ff;
    box-shadow: 0 6px 14px rgba(129, 140, 248, 0.25);
}

.quick-link-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
}

.quick-link-desc {
    font-size: 0.75rem;
    color: #6b7280;
}

/* FOOTER APP */
.app-footer {
    padding: 8px 12px 10px;
    font-size: 0.75rem;
    text-align: center;
    color: #9ca3af;
}

/* UTILITAS */
.mt-16 {
    margin-top: 16px;
}

@media (min-width: 640px) {
    .app-main {
        padding: 18px 16px 24px;
        max-width: 960px;
        margin: 0 auto;
    }

    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==== PROFIL & TIMELINE ==== */

.profile-card {
    padding-top: 14px;
}

/* Tombol absensi di profil */
.profile-card .profile-attendance {
    margin: 12px 16px 0 0;
}

.profile-attendance-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    padding: 8px 12px;
}

select {
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 0.8rem;
}

/* Kalau di layar lebar, tombol jangan kepanjangan banget */
@media (min-width: 640px) {
    .profile-card .profile-attendance {
        margin-right: 24px;
    }
    .profile-attendance-btn {
        width: auto;
    }
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f46e5, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9fafb;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.55);
}

.profile-main-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-name {
    font-size: 1rem;
    font-weight: 650;
}

.profile-meta {
    font-size: 0.8rem;
    color: #6b7280;
}

.profile-body {
    margin-top: 10px;
}

/* TIMELINE */
.timeline {
    list-style: none;
    margin-top: 6px;
}

.timeline-item {
    position: relative;
    padding-left: 16px;
    margin-bottom: 10px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #4f46e5;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 12px;
    width: 2px;
    bottom: -4px;
    background: #e5e7eb;
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-title {
    font-size: 0.86rem;
    font-weight: 600;
    color: #111827;
}

.timeline-unit {
    font-weight: 400;
    color: #6b7280;
    font-size: 0.78rem;
}

.timeline-dates {
    font-size: 0.76rem;
    color: #4b5563;
    margin-top: 2px;
}

.timeline-status {
    font-size: 0.76rem;
    color: #6b7280;
    margin-top: 2px;
}

.timeline-remarks {
    font-size: 0.76rem;
    color: #374151;
    margin-top: 2px;
}

/* ==== TABEL & FILTER ==== */

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-item label {
    font-size: 0.78rem;
    color: #6b7280;
}

.filter-item input,
.filter-item select {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    font-size: 0.9rem;
    background: #f9fafb;
    outline: none;
}

.filter-item input:focus,
.filter-item select:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

.filter-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.btn-block-sm {
    width: 100%;
}

/* TABLE */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.table thead {
    background: #f9fafb;
}

.table th,
.table td {
    padding: 8px 6px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.table th {
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    color: #6b7280;
}

.table tbody tr:hover {
    background: #f9fafb;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* BADGE STATUS DI TABEL */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-status-aktif {
    background: #ecfdf3;
    color: #166534;
}

.badge-status-prob {
    background: #eff6ff;
    color: #1d4ed8;
}

.badge-status-resign,
.badge-status-nonaktif {
    background: #fef2f2;
    color: #b91c1c;
}

/* Badge jenis izin */
.badge-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    background: #eef2ff;
    color: #3730a3;
}

/* -----------------------------------------
   BADGES (Fasilitas / Tunjangan)
   ----------------------------------------- */
/*.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    line-height: 1;
    margin-right: 4px;
    white-space: nowrap;
}*/

/* Kategori Uang */
.badge-money {
    background-color: #e0f7df;
    color: #1b7b39;
    border: 1px solid #bfeec0;
}

/* Kategori Non-Uang */
.badge-kind {
    background-color: #eaf3ff;
    color: #1d4ed8;
    border: 1px solid #c9ddff;
}

/* Periodisitas */
.badge-period {
    background-color: #fdf2d6;
    color: #b45309;
    border: 1px solid #f6e4b2;
}

/* STATUS: AKTIF / NON-AKTIF */
.badge-status {
    cursor: pointer;
    text-decoration: none;
}

.badge-active {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.badge-inactive {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Small badge for code label */
.chip {
    display: inline-block;
    padding: 3px 6px;
    font-size: 0.65rem;
    border-radius: 4px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.chip-code {
    background: #eef2ff;
    color: #4338ca;
    border-color: #c7d2fe;
}


/* LINK KECIL */
.link-small {
    font-size: 0.78rem;
    color: #2563eb;
    text-decoration: none;
}

.link-small:hover {
    text-decoration: underline;
}

/* RESPONSIVE FILTER UNTUK LAYAR LEBAR */
@media (min-width: 640px) {
    .filter-row {
        flex-direction: row;
    }

    .filter-item {
        flex: 1;
    }

    .btn-block-sm {
        width: auto;
        padding-left: 20px;
        padding-right: 20px;
        align-self: flex-end;
    }
}

/* ==== FORM LAYOUT TAMBAH/EDIT KARYAWAN ==== */

.form-card {
    padding-top: 12px;
}

.form-layout {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group textarea {
    border-radius: 12px;
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    font-size: 0.9rem;
    background: #f9fafb;
    resize: vertical;
    min-height: 60px;
}

.form-group textarea:focus {
    border-color: #2563eb;
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

.required {
    color: #dc2626;
    margin-left: 2px;
    font-size: 0.78rem;
}

.form-actions {
    margin-top: 12px;
}

/* Alert list */
.alert-list {
    list-style: disc;
    padding-left: 18px;
}

/* Section header row (title + button kanan) */
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.section-header-row .strong {
    font-weight: 600;
}

/* Tombol kecil pil */
.btn-sm-pill {
    padding: 6px 10px;
    font-size: 0.78rem;
    border-radius: 999px;
}

/* RESPONSIVE FORM UNTUK LAYAR LEBAR */
@media (min-width: 640px) {
    .form-row {
        flex-direction: row;
    }

    .form-row .form-group {
        flex: 1;
    }
}

/* Avatar foto (jika ada gambar) */
.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    display: block;
}

/* Hint kecil di form */
.form-hint {
    font-size: 0.72rem;
    color: #6b7280;
    margin-top: 4px;
}

/* Preview foto kecil di form edit */
.photo-preview {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==== LIST PENDIDIKAN & PELATIHAN ==== */

.edu-list,
.training-list {
    list-style: none;
    margin-top: 4px;
}

.edu-item,
.training-item {
    padding: 6px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.edu-item:last-child,
.training-item:last-child {
    border-bottom: none;
}

.edu-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.edu-level {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
}

.edu-school {
    font-size: 0.86rem;
    font-weight: 600;
}

.edu-sub,
.edu-extra,
.training-sub,
.training-dates,
.training-cert,
.training-notes {
    font-size: 0.76rem;
    color: #4b5563;
    margin-top: 2px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.dot-sep {
    color: #9ca3af;
}

.edu-actions {
    margin-top: 3px;
}

.training-title {
    font-size: 0.86rem;
    font-weight: 600;
}

.training-notes {
    color: #374151;
}

/* ==== DANGER STYLES (HAPUS) ==== */

.btn-danger {
    background: #dc2626;
    color: #ffffff;
    border-radius: 999px;
    border: none;
    padding: 8px 14px;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
}

.btn-danger:hover {
    background: #b91c1c;
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.45);
}

.btn-danger:active {
    box-shadow: 0 8px 16px rgba(220, 38, 38, 0.35);
}

.link-danger {
    font-size: 0.78rem;
    color: #dc2626;
    text-decoration: none;
}

.link-danger:hover {
    text-decoration: underline;
}

/* Box peringatan */
.danger-box {
    border-radius: 14px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.danger-text {
    font-size: 0.86rem;
    color: #b91c1c;
    font-weight: 600;
}

.danger-note {
    font-size: 0.76rem;
    color: #7f1d1d;
    margin-top: 4px;
}

/* Form actions row di halaman konfirmasi delete */
.form-actions-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

@media (min-width: 640px) {
    .form-actions-row {
        flex-direction: row;
        align-items: center;
    }
}

.section-header-actions {
    margin-top: 8px;
    font-size: 0.78rem;
}

@media (min-width: 640px) {
    .section-header-row {
        align-items: flex-end;
    }
    .section-header-actions {
        margin-top: 0;
        text-align: right;
    }
}

.badge-status-active {
    background: #dcfce7;
    color: #166534;
}

.badge-status-inactive {
    background: #fee2e2;
    color: #b91c1c;
}

/* Checkbox inline di form user */
.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    color: #4b5563;
}

/* Dropdown wrapper */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Toggle button */
.dropdown-toggle {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.dropdown-toggle .caret {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Dropdown menu */
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    background: #ffffff;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    z-index: 1000;
}

/* Show dropdown (added by JS) */
.dropdown.show .dropdown-menu {
    display: block;
}

/* Dropdown items */
.dropdown-item {
    padding: 10px 14px;
    display: block;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
}

.dropdown-item:hover {
    background: #f3f4f6;
}

/* Divider */
.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

/* Logout item */
.logout-item {
    color: #b91c1c;
}
.logout-item:hover {
    background: #fee2e2;
}

.app-bar-home-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 8px;
}

.app-bar-home-link:hover .app-bar-title {
    text-decoration: underline;
}

.badge-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-status-approved {
    background: #dcfce7;
    color: #166534;
}

.badge-status-rejected {
    background: #fee2e2;
    color: #b91c1c;
}

.notif-badge {
    display: inline-block;
    background: #dc2626; /* merah */
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 999px;
    margin-left: 6px;
    font-weight: bold;
}

/* =======================
   KALENDER CUTI / IZIN
   ======================= */

.calendar-card {
    margin-top: 1rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    .calendar-card {
        padding: 1.25rem 1.5rem;
    }
}

.calendar-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .calendar-toolbar {
        flex-direction: row;
        align-items: center;
    }
}

.calendar-month-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.calendar-month-title {
    font-weight: 600;
    font-size: 1.05rem;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    font-size: 0.85rem;
    text-decoration: none;
    color: #374151;
}

.btn-nav:active {
    background: #e5e7eb;
}

.calendar-filters {
    width: 100%;
    max-width: 220px;
}

.calendar-filter-form {
    width: 100%;
}

.filter-label {
    font-size: 0.8rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.filter-select {
    flex: 1;
    padding: 0.3rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    font-size: 0.8rem;
    background: #ffffff;
}

/* Legend */

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.legend-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    display: inline-block;
}

.legend-cuti {
    background: #3b82f6;
}

.legend-izin {
    background: #10b981;
}

.legend-sakit {
    background: #f97316;
}

.legend-lembur {
    background: #8b5cf6;
}

/* Fix overflow kalender di mobile */
.calendar-scroll {
    overflow-x: auto;          /* kalau grid kepanjangan, bisa di-scroll geser kanan-kiri */
    -webkit-overflow-scrolling: touch;
}

/* Biar sel-nya fleksibel di layar kecil */
.calendar-grid {
    display: grid;
    grid-template-rows: repeat(7, minmax(0, 1fr));
}

@media (max-width: 600px) {
    .calendar-grid {
        font-size: 0.7rem;     /* teks hari & angka sedikit diperkecil */
    }
}

.calendar-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-row-header {
    background: #f9fafb;
}

.calendar-cell {
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    min-height: 3.2rem;
}

.calendar-cell:last-child {
    border-right: none;
}

.calendar-cell-header {
    padding: 0.4rem 0.25rem;
    font-size: 0.7rem;
    text-align: center;
    font-weight: 500;
    color: #6b7280;
}

.calendar-cell-day {
    width: 6rem;
    padding: 0.35rem 0.2rem 0.4rem;
    position: relative;
    cursor: pointer;
    background: #ffffff;
    transition: background 0.12s ease;
}

.calendar-cell-day:hover {
    background: #f3f4f6;
}

.calendar-cell-day.is-outside {
    background: #f9fafb;
    color: #9ca3af;
}

.calendar-cell-day.is-today {
    outline: 1px solid #3b82f6;
    outline-offset: -1px;
    background: #eff6ff;
}

.day-number {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

/* Event pill */

.day-events {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

/* Chip event (Cuti / Izin / Sakit / Lembur) */
.day-event {
    display: block;
    max-width: 100%;
    overflow: hidden;          /* ini kunci: teks kelebihan tidak keluar kotak */
    text-overflow: ellipsis;   /* kasih "..." kalau kepanjangan */
    white-space: nowrap;       /* satu baris saja */
    box-sizing: border-box;
}

.event-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.12rem 0.3rem;
    border-radius: 999px;
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-pill-type {
    font-weight: 600;
}

.event-pill-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-pill-status {
    overflow: hidden;
    margin-left: auto;
    font-size: 0.6rem;
    text-transform: capitalize;
    opacity: 0.9;
}

/* Warna per jenis */

.event-cuti {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.event-izin {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.event-sakit {
    background: rgba(249, 115, 22, 0.14);
    color: #c2410c;
}

.event-lembur {
    background: rgba(139, 92, 246, 0.14);
    color: #5b21b6;
}

.event-default {
    background: #e5e7eb;
    color: #374151;
}

.calendar-hint {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
}

/* =======================
   KALENDER - MODAL DETAIL
   ======================= */

.calendar-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 40;
}

.calendar-modal-backdrop.is-visible {
    display: flex;
}

.calendar-modal {
    width: 100%;
    max-height: 80vh;
    background: #ffffff;
    border-radius: 1rem 1rem 0 0;
    padding: 0.9rem 1rem 1rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
    overflow-y: auto;
}

@media (min-width: 640px) {
    .calendar-modal-backdrop {
        align-items: center;
    }

    .calendar-modal {
        max-width: 480px;
        border-radius: 1rem;
        margin: 0 1rem;
    }
}

.calendar-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.calendar-modal-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.calendar-modal-close {
    border: none;
    background: #f3f4f6;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    color: #4b5563;
}

.calendar-modal-close:active {
    background: #e5e7eb;
}

.calendar-modal-body {
    font-size: 0.8rem;
    color: #374151;
}

.modal-empty {
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
}

/* Kartu event di dalam modal */

.modal-event {
    border-radius: 0.6rem;
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.6rem;
    margin-bottom: 0.5rem;
    background: #f9fafb;
}

.modal-event-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.modal-event-type {
    display: inline-flex;
    align-items: center;
    padding: 0.16rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.modal-event-status {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    font-size: 0.7rem;
}

/* Warna jenis (sinkron dengan legend / pill) */

.modal-type-cuti {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.modal-type-izin {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.modal-type-sakit {
    background: rgba(249, 115, 22, 0.14);
    color: #c2410c;
}

.modal-type-lembur {
    background: rgba(139, 92, 246, 0.14);
    color: #5b21b6;
}

/* Warna status (sesuaikan dengan status di DB: pending/approved/rejected) */

.status-pending {
    background: rgba(234, 179, 8, 0.1);
    color: #92400e;
}

.status-approved {
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
}

.status-rejected {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

/* Isi event */

.modal-event-name {
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.modal-event-dates {
    font-size: 0.75rem;
    color: #4b5563;
    margin-bottom: 0.2rem;
}

.modal-event-reason {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: pre-wrap;
}

/* Tombol CTA di modal kalender */

.modal-cta-wrapper {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
}

.modal-cta {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.35);
}

.modal-cta:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.35);
}

/* Tombol aksi di dalam kartu event (Approve / Reject) */

.modal-event-actions {
    margin-top: 0.35rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
}

.modal-btn {
    border: none;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    background: #e5e7eb;
    color: #374151;
}

.modal-btn:active {
    transform: translateY(1px);
}

/* Setujui = hijau lembut */
.modal-btn-approve {
    background: rgba(34, 197, 94, 0.14);
    color: #166534;
}

/* Tolak = merah lembut */
.modal-btn-reject {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

/* ============================
   TEMPLATE SLIP GAJI
   ============================ */

.slip-print {
    max-width: 800px;
    margin: 0 auto 12px auto;
    background: #ffffff;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    font-size: 0.85rem;
}

.slip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.slip-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #9ca3af;
}

/* Kalau mau pakai gambar, tinggal ganti isi .slip-logo jadi <img> dan atur max-width:100%; */

.slip-company-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.slip-company-info {
    font-size: 0.75rem;
    color: #6b7280;
}

.slip-title {
    text-align: center;
    margin: 4px 0 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.slip-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

@media (min-width: 640px) {
    .slip-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.slip-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.slip-meta-label {
    color: #6b7280;
}

.slip-meta-value {
    font-weight: 500;
    text-align: right;
}

/* Tabel slip */

.slip-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 4px;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.slip-table th,
.slip-table td {
    padding: 6px 4px;
    border-bottom: 1px solid #e5e7eb;
}

.slip-table th {
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    color: #6b7280;
}

.slip-table td:last-child,
.slip-table th:last-child {
    text-align: right;
}

.slip-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 4px;
}

/* Ringkasan gaji bersih */

.slip-summary {
    border-top: 1px solid #e5e7eb;
    padding-top: 8px;
    margin-top: 6px;
}

.slip-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
    font-size: 0.8rem;
}

.slip-summary-label {
    color: #6b7280;
}

.slip-summary-value {
    font-weight: 500;
}

.slip-net-salary {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed #e5e7eb;
    text-align: right;
}

.slip-net-salary-label {
    font-size: 0.8rem;
    color: #6b7280;
}

.slip-net-salary-value {
    font-size: 1rem;
    font-weight: 700;
}

/* Tanda tangan (optional) */

.slip-sign {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    font-size: 0.75rem;
}

.slip-sign-inner {
    text-align: center;
    min-width: 160px;
}

/* PRINT MODE : sembunyikan elemen UI umum kalau halaman diprint lewat ?print=1 */
@media print {
    .navbar,
    .sidebar,
    .section-header,
    .btn,
    .alert {
        display: none !important;
    }

    body {
        background: #ffffff !important;
    }

    .section {
        padding: 0 !important;
        margin: 0 !important;
    }

    .slip-print {
        box-shadow: none !important;
        border-radius: 0 !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
}

/* =========================
   DASHBOARD SIMPEG LJU
   ========================= */

.dashboard-page {
    padding: 1rem 1rem 2rem;
}

/* Mobile first */
.dashboard-page .page-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-page .page-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.dashboard-page .page-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.dashboard-page .page-header-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
    flex-wrap: wrap;
}

.dashboard-page .welcome-text {
    font-weight: 500;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background-color: rgba(59, 130, 246, 0.08);
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Section layout */
.dashboard-section {
    margin-bottom: 1.75rem;
}

.section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

/* Grid ringkasan utama */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dashboard-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.dashboard-card-accent {
    border-color: #bfdbfe;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.dashboard-card .card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin-bottom: 0.3rem;
}

.dashboard-card .card-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.dashboard-card .card-foot {
    margin-top: 0.25rem;
}

.dashboard-card .card-link {
    font-size: 0.8rem;
    color: #2563eb;
    text-decoration: none;
}

.dashboard-card .card-link:hover {
    text-decoration: underline;
}

/* Dua kolom (mobile: stack, desktop: 2 kolom) */
.dashboard-two-columns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-block {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.block-meta {
    font-size: 0.75rem;
    color: #6b7280;
}

.block-link {
    font-size: 0.75rem;
    color: #2563eb;
    text-decoration: none;
}

.block-link:hover {
    text-decoration: underline;
}

.empty-text {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Timeline pengajuan terbaru */
.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px dashed #e5e7eb;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-main {
    flex: 1;
}

.timeline-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.15rem;
}

.timeline-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
}

.timeline-meta {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
}

.timeline-date {
    font-size: 0.75rem;
}

/* Badge status (kalau belum ada, ini nambah saja) */
.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-approved {
    background-color: #dcfce7;
    color: #166534;
}

.badge-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-rejected {
    background-color: #fee2e2;
    color: #b91c1c;
}

.badge-type {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background-color: #e0f2fe;
    color: #075985;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Quick actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Kalau belum ada .btn-block, tambahkan */
.btn-block {
    display: block;
    width: 100%;
}

/* Responsive: tablet / desktop */
@media (min-width: 768px) {
    .dashboard-page {
        padding: 1.5rem 2rem 2.5rem;
    }

    .dashboard-page .page-header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .dashboard-grid-4 {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.9rem;
    }

    .dashboard-two-columns {
        flex-direction: row;
    }

    .dashboard-block {
        flex: 1;
    }
}

/* =========================
   DASHBOARD SIMPEG LJU
   (tambahan ringkasan absensi)
   ========================= */

.dashboard-grid-absen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
}

.dashboard-card-att {
    padding: 0.75rem 0.9rem;
}

.dashboard-card-att .card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.dashboard-card-att .card-value {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.dashboard-card-att .card-label-sub {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Warna status absensi */
.dashboard-card-att.att-hadir .card-value {
    color: #166534; /* hijau */
}

.dashboard-card-att.att-izin .card-value {
    color: #92400e; /* coklat */
}

.dashboard-card-att.att-sakit .card-value {
    color: #b91c1c; /* merah */
}

.dashboard-card-att.att-cuti .card-value {
    color: #0369a1; /* biru */
}

.dashboard-card-att.att-alpha .card-value {
    color: #6b21a8; /* ungu */
}

/* Tombol Aksi Cepat di Dashboard */
.quick-actions {
    display: flex;
    flex-wrap: wrap;          /* Kalau layar kecil, otomatis turun ke baris berikutnya */
    justify-content: center;  /* Rata tengah */
    gap: 0.75rem;
    margin-top: 0.75rem;
}

/* Bentuk dasar tombol */
.quick-actions .btn {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    background-color: #ffffff;
    color: #1f2937;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        background-color 0.12s ease,
        border-color 0.12s ease,
        color 0.12s ease;
}

/* Override .btn-block di area quick-actions */
.quick-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;             /* Tidak full width lagi */
    min-width: 160px;        /* Lebar minimal kotak */
    padding: 0.7rem 1rem;
    border-radius: 0.6rem;   /* Kotak agak membulat */
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    background-color: #ffffff;
    color: #1f2937;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        background-color 0.12s ease,
        border-color 0.12s ease,
        color 0.12s ease;
}

/* Tombol utama (Ajukan Cuti / Izin) */
.quick-actions .btn-primary {
    background-image: linear-gradient(90deg, #2563eb, #4f46e5);
    color: #ffffff;
    border-color: transparent;
}

.quick-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

/* Tombol sekunder */
.quick-actions .btn-secondary {
    background-color: #ffffff;
    border-color: #e5e7eb;
    color: #1f2937;
}

.quick-actions .btn-secondary:hover {
    background-color: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}
/* Biar rapi di desktop */
@media (min-width: 768px) {
    .quick-actions {
        max-width: 480px;
    }
}

/* =========================
   Mini Menu Ikon - Aksi Cepat
   ========================= */

.quick-actions-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin: 0.3rem 0 1rem;
}

.qa-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: #374151;
    font-size: 0.8rem;
    min-width: 78px;
}

.qa-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 1rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10);
    margin-bottom: 0.35rem;
    font-size: 1.4rem;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        border-color 0.12s ease,
        background-color 0.12s ease;
}

.qa-icon-item:hover .qa-icon-circle {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
    border-color: #bfdbfe;
    background-color: #eff6ff;
}

.qa-icon-label {
    text-align: center;
    line-height: 1.2;
}

/* Tombol aksi cepat (sudah diubah jadi kotak rata tengah) */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.quick-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 160px;
    padding: 0.7rem 1rem;
    border-radius: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    background-color: #ffffff;
    color: #1f2937;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        background-color 0.12s ease,
        border-color 0.12s ease,
        color 0.12s ease;
}

.quick-actions .btn-primary {
    background-image: linear-gradient(90deg, #2563eb, #4f46e5);
    color: #ffffff;
    border-color: transparent;
}

.quick-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.quick-actions .btn-secondary {
    background-color: #ffffff;
    border-color: #e5e7eb;
    color: #1f2937;
}

.quick-actions .btn-secondary:hover {
    background-color: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

/* Card & form basic (kalau belum ada) */
.simple-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    max-width: 720px;
    margin: 0 auto 2rem;
}

.form-vertical .form-group {
    margin-bottom: 0.9rem;
}

.input {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border-radius: 0.4rem;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
}

.input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-help {
    font-size: 0.75rem;
    color: #6b7280;
}

.section-divider {
    border: 0;
    border-top: 1px dashed #e5e7eb;
    margin: 1rem 0;
}

.section-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.alert {
    border-radius: 0.5rem;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
}

@media (min-width: 768px) {
    .form-row {
        flex-direction: row;
    }
    .form-row .form-group {
        flex: 1;
    }
}
