:root {
    --bd-primary: #6154e8;
}
.swal2-container {
    z-index: 20000 !important;
}
.budi-swal {
    border-radius: 20px !important;
    font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif !important;
}
.budi-swal .swal2-title {
    font-size: 1.25rem !important;
    line-height: 1.5;
}
.budi-swal .swal2-html-container {
    font-size: 0.9rem !important;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.budi-toast {
    border: 1px solid #ebe8f5 !important;
    box-shadow: 0 12px 40px #24243e18 !important;
}
.budi-swal .btn-primary {
    background: #6154e8;
    border-color: #6154e8;
}
.budi-table {
    font-size: 13px;
    --bs-table-hover-bg: #f8f7ff;
    --bs-table-border-color: #efedf6;
}
.budi-table thead th {
    background: #f8f9fc;
    color: #77768d;
    font-size: 11px;
    letter-spacing: 0.05em;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 1px solid #e8e6f1;
    padding: 16px 18px;
}
.budi-table td {
    padding: 17px 18px;
    vertical-align: middle;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.budi-table tbody tr:last-child td {
    border-bottom: 0;
}
.budi-table th:first-child,
.budi-table td:first-child {
    padding-left: 24px;
}
.budi-table th:last-child,
.budi-table td:last-child {
    padding-right: 24px;
}
.budi-table-wrap > .budi-table {
    min-width: 760px;
}
.budi-table td:last-child {
    min-width: 150px;
    max-width: 310px;
}
.budi-table td .form-control {
    min-width: 130px;
}
.budi-table td .btn {
    font-size: 12px;
    white-space: nowrap;
}
.status-badge {
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.02em;
    padding: 8px 11px;
    white-space: nowrap;
}
.status-badge.text-bg-success {
    background: #e6f7ed !important;
    color: #217548 !important;
}
.status-badge.text-bg-warning {
    background: #fff3d7 !important;
    color: #956714 !important;
}
.status-badge.text-bg-danger {
    background: #fce9eb !important;
    color: #b33c50 !important;
}
.status-badge.text-bg-primary {
    background: #eeebff !important;
    color: #6154e8 !important;
}
.status-badge.text-bg-secondary {
    background: #eff1f6 !important;
    color: #667085 !important;
}
.pagination {
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 0;
}
.page-link {
    border-radius: 8px !important;
    color: #6154e8;
}
.page-item.active .page-link {
    background: #6154e8;
    border-color: #6154e8;
}
@media (max-width: 575.98px) {
    .budi-table th,
    .budi-table td {
        padding: 12px;
    }
    .budi-toast {
        max-width: calc(100vw - 24px) !important;
    }
    .swal2-popup {
        max-width: calc(100vw - 24px);
    }
}

/* Consistent table numbering, empty state and mobile toolbar. */
.budi-table{width:100%;border-collapse:separate;border-spacing:0}.budi-table th.table-number,.budi-table td.table-number{width:64px;min-width:64px;max-width:64px;padding:15px 12px;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}.budi-table thead th{height:52px;vertical-align:middle}.budi-table td{border-color:#eeedf4}.budi-table td strong{font-size:13px;font-weight:650}.budi-table td .small{font-size:11px}.budi-table-wrap{border-top:1px solid #efedf6}.table-search{display:flex;align-items:stretch;gap:8px;max-width:100%;width:320px}.table-search .form-control{flex:1;min-width:0;width:0;height:42px}.table-search .btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:0 0 auto;min-height:42px;padding:8px 14px;font-size:13px}.table-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:220px;padding:36px 20px;text-align:center;border-top:1px solid #efedf6;max-width:100%;overflow-wrap:anywhere}.empty-state-icon{display:grid;place-items:center;width:52px;height:52px;background:#f2f0fa;border-radius:16px;color:#8b83af;font-size:24px}.table-empty-state strong{font-size:14px;color:#57536e}.table-empty-state p{font-size:12px;color:#8a879c;margin:0;max-width:280px}.table-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:18px 22px;border-top:1px solid #efedf6}.table-footer nav{max-width:100%}.table-footer nav .d-none.flex-sm-fill{gap:16px;align-items:center}.table-footer nav p{margin-bottom:0}.table-footer nav .d-none.flex-sm-fill>div:first-child{display:none}.table-responsive:focus-visible{outline:2px solid #b6acf5;outline-offset:-2px}
@media(max-width:767.98px){.table-search{width:100%;flex-basis:100%}.table-footer{flex-direction:column;align-items:center;padding:15px}.table-empty-state{min-height:190px;padding:28px 16px}.budi-table th.table-number,.budi-table td.table-number{min-width:50px;width:50px;max-width:50px;padding:12px 8px}.budi-table td,.budi-table th{font-size:12px}.table-footer .pagination{justify-content:center}.budi-table-wrap>.budi-table{min-width:680px}}
@media print{.table-search{display:none!important}.table-footer nav{display:none!important}.budi-table th,.budi-table td{font-size:10px;padding:8px}.budi-table-wrap>.budi-table{min-width:0}}
/* Table-first CRUD actions and reusable Bootstrap dialogs. */
.record-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;white-space:nowrap}.record-actions form{margin:0}.budi-table td .action-icon,.action-icon{display:inline-flex;align-items:center;justify-content:center;width:35px;height:35px;min-width:35px;min-height:35px;padding:0;border-radius:10px;font-size:15px;border:1px solid transparent}.action-view{background:#eaf1ff;color:#3471c8;border-color:#dce8ff}.action-view:hover{background:#dce8ff;color:#1a54a7}.action-edit{background:#fff5dc;color:#a77618;border-color:#ffedbf}.action-edit:hover{background:#ffedbf;color:#885b0c}.action-delete{background:#ffedf0;color:#c34862;border-color:#ffdce3}.action-delete:hover{background:#ffdce3;color:#a9233e}.record-modal{border:0;border-radius:20px;overflow:hidden;box-shadow:0 20px 70px #24243e25}.record-modal .modal-header{padding:20px 24px;border-bottom:1px solid #eeedf5}.record-modal .modal-title{font-size:17px;font-weight:750}.record-modal .modal-footer{padding:16px 24px;background:#fcfbff;border-color:#eeedf5}.record-details{margin:0}.record-details>div{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px;padding:12px 0;border-bottom:1px solid #f0eef7}.record-details dt{font-size:12px;font-weight:650;color:#868198}.record-details dd{margin:0;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.record-details>div:last-child{border-bottom:0}.record-operations:not(:empty){display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start;margin-top:22px;padding-top:20px;border-top:1px solid #eeedf5}.record-operations>form{width:100%;padding:16px;border:1px solid #eeedf5;border-radius:12px;background:#faf9ff}.record-modal .form-control,.record-modal .form-select{min-height:44px}.record-modal .modal-body{overscroll-behavior:contain}.record-modal .modal-body .btn-primary{background:#6154e8;border-color:#6154e8}@media(max-width:575.98px){.record-actions{gap:5px}.budi-table td .action-icon{width:34px;height:36px;min-width:34px}.record-modal .modal-header{padding:17px}.record-modal .modal-title{font-size:15px}.record-modal .modal-body.p-4{padding:18px!important}.record-details>div{grid-template-columns:1fr;gap:4px;padding:11px 0}.record-modal .modal-footer{padding:14px 18px}.modal-dialog-scrollable{height:calc(100% - 1rem);height:calc(100dvh - 1rem)}.record-modal{border-radius:16px}}
.employee-avatar{width:88px;height:88px;flex-shrink:0;border-radius:22px;overflow:hidden;background:#eeebff;display:grid;place-items:center;font-size:44px;color:#8d82c6}.employee-avatar img{width:100%;height:100%;object-fit:cover}.employee-tabs{overflow-x:auto;max-width:100%;padding:4px 2px 10px;scrollbar-width:thin}.employee-tabs .nav{width:max-content;min-width:100%}.employee-tabs .nav-link{border:1px solid #e8e5f2;background:#fff;color:#696078;border-radius:12px;padding:12px 16px;font-size:13px;white-space:nowrap}.employee-tabs .nav-link.active{background:#6154e8;color:#fff;border-color:#6154e8}.employee-tabs .nav-link .badge{font-size:10px}.employee-tabs .nav-link:focus-visible{outline:2px solid #aea5ef;outline-offset:2px}@media(max-width:575.98px){.employee-avatar{width:70px;height:70px;border-radius:18px}.employee-tabs .nav-link{padding:11px 13px;font-size:12px}}
.photo-frame{position:relative}.photo-frame img{display:block;width:100%;height:100%;object-fit:cover}.photo-fallback{position:absolute;inset:0;display:grid;place-items:center;background:#eeebff;color:#9589c6;line-height:1}.photo-dropzone{display:flex;align-items:center;gap:20px;padding:22px;border:1.5px dashed #cec8e5;border-radius:16px;background:#fbfaff;transition:background .15s,border-color .15s}.photo-dropzone.is-dragging{background:#eeebff;border-color:#6154e8}.photo-upload-preview{width:112px;height:112px;flex-shrink:0;border-radius:18px;overflow:hidden;background:#eeebff;font-size:44px}.photo-upload-content{flex:1;min-width:0}.photo-file-status{overflow-wrap:anywhere;font-size:12px}.profile-photo-upload label[role="button"]:focus-visible{outline:3px solid #b5adf4;outline-offset:3px}.employee-avatar img{font-size:0}.profile-photo-upload input:focus-visible+div{outline:2px solid #b5adf4;border-radius:8px}.photo-upload-preview .d-none,.photo-frame .d-none{display:none!important}@media(max-width:575.98px){.photo-dropzone{flex-direction:column;align-items:center;text-align:center;padding:20px 16px;gap:15px}.photo-upload-content .d-flex{justify-content:center}.photo-upload-preview{width:108px;height:108px}.photo-upload-content{width:100%}}
.photo-frame img{image-orientation:from-image}

/* Label profil: persegi panjang, tinggi selaras, teks panjang tetap responsif. */
.employee-profile-labels{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;max-width:100%}
.employee-profile-labels .status-badge,.employee-profile-labels .badge-soft{display:inline-flex;align-items:center;min-height:32px;padding:7px 12px;border-radius:6px;font-size:12px;font-weight:600;line-height:1.5;letter-spacing:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.employee-profile-labels .status-badge{flex-shrink:0}
.employee-profile-labels .badge-soft{min-width:0}
.generated-document{font-family:Georgia,'Times New Roman',serif;font-size:15px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;color:#263047;background:white;padding:clamp(12px,3vw,36px);border:1px solid #eceaf2;border-radius:8px;tab-size:4}

.attendance-time-badge{display:inline-flex;flex-direction:column;align-items:flex-start;gap:3px;padding:8px 11px;border:1px solid transparent;border-radius:6px;line-height:1.4;max-width:100%;vertical-align:middle}
.attendance-time-value{font-size:13px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.attendance-time-label{font-size:11px;font-weight:600;overflow-wrap:anywhere}
.attendance-time-red{color:#a91f3d;background:#fff0f2;border-color:#f4c7d0}
.attendance-time-blue{color:#174baf;background:#edf4ff;border-color:#c9daf8}
.attendance-time-neutral{color:#667085;background:#f3f4f7;border-color:#e3e6ec}

.attendance-status-on-time{color:#174baf;background:#edf4ff}
