/* Pastikan tabel memiliki tampilan yang rapi */
.hw-cuti-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
    background: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Header tabel */
.hw-cuti-table thead {
    background-color: #EE8322;
    color: white;
    font-weight: bold;
}

.hw-cuti-table th, 
.hw-cuti-table td {
    padding: 12px;
    border: 1px solid #ddd;
}

/* Alternatif warna baris */
.hw-cuti-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Hover efek */
.hw-cuti-table tbody tr:hover {
    background-color: #f1f1f1;
    transition: 0.3s;
}

/* RESPONSIVE TABLE */
@media screen and (max-width: 768px) {
    .hw-cuti-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

 .hw-cuti-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.hw-cuti-filter-form > * {
    margin: 5px; /* Alternatif untuk 'gap' */
}

.hw-cuti-filter-form input[type="text"],
.hw-cuti-filter-form select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    min-width: 150px;
}

.hw-cuti-filter-form input[type="submit"] {
    padding: 8px 15px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.hw-cuti-filter-form input[type="submit"]:hover {
    background: #005177;
}

@media (max-width: 768px) {
    .hw-cuti-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .hw-cuti-filter-form > * {
        width: 100%;
        margin: 5px 0;
    }
}


.status-menunggu-acc {
    color: orange !important;
    font-weight: bold !important;
}

.status-disetujui {
    color: green !important;
    font-weight: bold !important;
}

.status-ditolak {
    color: red !important;
    font-weight: bold !important;
}

.pagination {
    margin-top: 20px;
}
.pagination a {
    padding: 5px 10px;
    margin: 2px;
    border: 1px solid #0073aa;
    text-decoration: none;
    color: #0073aa;
}
.pagination a:hover {
    background: #0073aa;
    color: white;
}

/* CSS untuk modal agar tampil di tengah layar */
/* Modal Background */
#editCutiModal {
    display: none; /* Awalnya tersembunyi */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Background hitam transparan */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal Box */
#editCutiModal .modal-content {
    background: #fff;
    padding: 20px;
    width: 400px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

/* Animasi Modal */
@keyframes fadeIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Tombol Close */
#editCutiModal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

/* Input & Select Styling */
#editCutiModal input,
#editCutiModal textarea,
#editCutiModal select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Tombol Simpan */
#editCutiModal button {
    width: 100%;
    background: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

#editCutiModal button:hover {
    background: #0056b3;
}
