﻿
.scrollTable {
    overflow: auto;
    white-space: nowrap;
}

    .scrollTable table {
        width: 150%;
    }

.marginbutton {
    margin-bottom: 20px
}

.headertable {
    text-align: center !important;
    color: white !important;
    background-color: #34495e !important;
}

.caption-table {
    text-align: center !important;
}

.medec-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    font-family: Arial, sans-serif;
    margin-top: 20px;
}

.form-section {
    margin-bottom: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group label {
        font-weight: 600;
        margin-bottom: 6px;
        font-size: 14px;
    }

    .form-group input,
    .form-group textarea {
        border: none;
        padding: 12px 16px;
        border-radius: 100px;
        background-color: #f0f0f0;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
    }

    .form-group select {
        border: none;
        padding: 5px 16px;
        border-radius: 100px;
        background-color: #f0f0f0;
        font-size: 14px;
    }

    .form-group textarea {
        border-radius: 20px;
    }

.btnSave {
    color: #FFFFFF;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    background-color: #52BB0B;
    border-color: #47a447;
    border-radius: 17px;
    width: 147px;
}

.section-title {
    background-color: #dbeeff;
    font-weight: bold;
    padding: 6px 10px;
    margin-bottom: 10px;
    font-size: 16px;
}

.line-green {
    position: relative;
    padding-left: 20px; /* space for the border */
}

    .line-green::before {
        content: "";
        position: absolute;
        top: 15px;
        left: 0;
        height: 50%;
        width: 7px;
        background-color: #52BB0B;
        margin-left: -30px;
    }

.circle {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0; /* ⬅️ hilangkan auto biar nempel kiri */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border: none;
    padding: 0;
}

    .circle svg {
        width: 18px;
        height: 18px;
    }


#TblAttachment td {
    word-wrap: break-word; /* Pecah teks panjang */
    white-space: normal; /* Izinkan teks turun ke baris berikutnya */
    vertical-align: middle; /* Rata tengah vertikal */
}

/* Agar badge nama file tidak bikin tabel melebar */
#TblAttachment .badge {
    max-width: 200px; /* Batas lebar maksimum nama file */
    overflow: hidden;
    text-overflow: ellipsis; /* Tambahkan "..." di akhir teks yang kepanjangan */
    display: inline-block;
    white-space: nowrap;
}
/* Responsive styles */
@media (max-width: 768px) {
    .main-section {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }

    body {
        overflow: auto !important;
    }

    .main-content {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

        .main-content h1 {
            font-size: 24px;
            line-height: 30px;
            font-weight: 600;
            word-break: break-word;
            margin-bottom: 20px;
        }

        .main-content p {
            font-size: 18px;
        }

    .heart-image {
        margin-top: 40px;
    }

    .form-vertical {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-header {
        flex-direction: column; /* jadi atas-bawah */
        align-items: center;
    }

    .profile-table table,
    .profile-table table tr,
    .profile-table table td,
    .profile-table table th {
        display: block; /* bikin stack */
        width: 100% !important;
        text-align: left;
    }

        .profile-table table th {
            background: #f4f4f4;
            padding: 6px;
        }

        .profile-table table td {
            padding: 6px;
            border-bottom: 1px solid #ddd;
        }

    /* styling untuk ID employee biar tetap rapi */
    .frame-11621 {
        margin: 10px auto;
        width: auto;
    }
}

.main-content p {
    font-size: 37px;
}

.form-subtitle {
    font-size: 15px;
    font-weight: bold;
}

.form-full-row {
    grid-column: span 3;
}

.input-with-unit {
    display: flex;
    align-items: center;
}

    .input-with-unit input {
        flex: 1;
    }

.unit-label {
    margin-left: 8px;
    white-space: nowrap;
    color: #666;
}

.datepicker {
    width: auto !important;
    max-width: 300px;
}

.custom-download-button {
    box-sizing: border-box;
    /* Auto layout */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 7px 12px;
    gap: 2px;
    margin: 0 auto;
    width: 119px;
    height: 31px;
    background: #FFFFFF; /* White */
    border: 1.5px solid #52BB0B; /* Green/Green 1 */
    border-radius: 100px;
    /* Optional: Remove default button styling */
    font-size: 14px;
    color: #52BB0B;
    cursor: pointer;
}

    .custom-download-button i {
        margin-right: 4px;
    }

.custom-delete-button {
    /* Auto layout */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 7px 12px;
    gap: 2px;
    width: 119px;
    height: 28px;
    background: #FFF0F0;
    border: none;
    border-radius: 100px;
    color: #D11A2A; /* Optional: text color for delete */
    font-size: 14px;
    cursor: pointer;
    box-sizing: border-box;
}

    .custom-delete-button i {
        margin-right: 4px;
        color: #D11A2A;
    }

    /* Optional: hover effect */
    .custom-delete-button:hover {
        background-color: #ffd6d6;
    }

.button-group {
    display: flex;
    flex-direction: row;
    gap: 8px; /* spacing between buttons */
    justify-content: center; /* optional: center align in <td> */
    align-items: center;
}

#another_image {
    border-radius: 12px;
    background-color: #52BB0B;
    width: 10em;
    height: 2.5em;
}

.btn-wrapper {
    display: flex;
    flex-wrap: wrap; /* biar kalau sempit turun ke bawah */
    gap: 10px; /* jarak antar tombol */
    justify-content: center; /* biar tombolnya rata tengah */
}

    .btn-wrapper .btn-draft,
    .btn-wrapper .btn-submit {
        flex: 1 1 auto; /* tombol bisa grow/shrink otomatis */
        max-width: 200px; /* batas maksimal */
        min-width: 120px; /* batas minimal */
        padding: 10px 15px;
        border-radius: 17px;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        text-align: center;
    }

/* Style khusus tombol Draft */
.btn-draft {
    color: #52BB0B;
    background-color: #F5FBF1;
    border: 1px solid #47a447;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

/* Style khusus tombol Submit */
.btn-submit {
    color: #fff;
    background-color: #52BB0B;
    border: 1px solid #47a447;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

/* Responsive tweak kalau layar kecil (mobile) */
@media (max-width: 600px) {
    .btn-wrapper {
        flex-direction: column; /* tombol jadi ke bawah */
    }
}


/* Default (desktop besar) */
.swal-responsive {
    width: 60% !important;
    max-width: 1000px !important;
    height: 85% !important;
    position: fixed !important;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto !important;
}

/* Layar medium (≤ 1366px) */
@media (max-width: 1366px) {
    .swal-responsive {
        width: 75% !important;
        height: auto !important;
    }
}

/* Layar kecil (≤ 1280px) */
@media (max-width: 1280px) {
    .swal-responsive {
        width: 90% !important;
        height: auto !important;
    }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
    .swal-responsive {
        width: 95% !important;
        height: auto !important;
        max-height: 90% !important;
        overflow-y: auto !important; /* biar konten bisa discroll */
    }
}

@media (max-width: 768px) {
    #TblAttachment th,
    #TblAttachment td {
        font-size: 13px;
        padding: 6px;
    }

    #TblAttachment .badge {
        max-width: 120px;
    }

    .custom-download-button,
    .custom-delete-button {
        font-size: 12px;
        padding: 4px 6px;
    }
}