/* Not Found Page Styles */#login-buttons {
  display: inline-block;
  margin-right: 0.2px;
  line-height: 1;
}
#login-buttons .login-button {
  position: relative;
}
#login-buttons button.login-button {
  width: 100%;
}
#login-buttons .login-buttons-with-only-one-button {
  display: inline-block;
}
#login-buttons .login-buttons-with-only-one-button .login-button {
  display: inline-block;
}
#login-buttons .login-buttons-with-only-one-button .login-text-and-button {
  display: inline-block;
}
#login-buttons .login-display-name {
  display: inline-block;
  padding-right: 2px;
  line-height: 1.5;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
#login-buttons .loading {
  line-height: 1;
  background-image: url(data:image/gif;base64,R0lGODlhEAALAPQAAP///wAAANra2tDQ0Orq6gYGBgAAAC4uLoKCgmBgYLq6uiIiIkpKSoqKimRkZL6+viYmJgQEBE5OTubm5tjY2PT09Dg4ONzc3PLy8ra2tqCgoMrKyu7u7gAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCwAAACwAAAAAEAALAAAFLSAgjmRpnqSgCuLKAq5AEIM4zDVw03ve27ifDgfkEYe04kDIDC5zrtYKRa2WQgAh+QQJCwAAACwAAAAAEAALAAAFJGBhGAVgnqhpHIeRvsDawqns0qeN5+y967tYLyicBYE7EYkYAgAh+QQJCwAAACwAAAAAEAALAAAFNiAgjothLOOIJAkiGgxjpGKiKMkbz7SN6zIawJcDwIK9W/HISxGBzdHTuBNOmcJVCyoUlk7CEAAh+QQJCwAAACwAAAAAEAALAAAFNSAgjqQIRRFUAo3jNGIkSdHqPI8Tz3V55zuaDacDyIQ+YrBH+hWPzJFzOQQaeavWi7oqnVIhACH5BAkLAAAALAAAAAAQAAsAAAUyICCOZGme1rJY5kRRk7hI0mJSVUXJtF3iOl7tltsBZsNfUegjAY3I5sgFY55KqdX1GgIAIfkECQsAAAAsAAAAABAACwAABTcgII5kaZ4kcV2EqLJipmnZhWGXaOOitm2aXQ4g7P2Ct2ER4AMul00kj5g0Al8tADY2y6C+4FIIACH5BAkLAAAALAAAAAAQAAsAAAUvICCOZGme5ERRk6iy7qpyHCVStA3gNa/7txxwlwv2isSacYUc+l4tADQGQ1mvpBAAIfkECQsAAAAsAAAAABAACwAABS8gII5kaZ7kRFGTqLLuqnIcJVK0DeA1r/u3HHCXC/aKxJpxhRz6Xi0ANAZDWa+kEAA7AAAAAAAAAAAA);
  width: 16px;
  background-position: center center;
  background-repeat: no-repeat;
}
#login-buttons .login-button,
.accounts-dialog .login-button {
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
  padding: 4px 8px;
  font-size: 80%;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.5;
  text-align: center;
  color: #fff;
  background: #596595;
  border: 1px solid #464f75;
  border-radius: 4px;
}
#login-buttons .login-button:hover,
.accounts-dialog .login-button:hover {
  background: #7580ac;
}
#login-buttons .login-button:active,
.accounts-dialog .login-button:active {
  background: #7580ac;
  box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.2) inset;
  -webkit-box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.2) inset;
}
#login-buttons .login-button.login-button-disabled,
.accounts-dialog .login-button.login-button-disabled,
#login-buttons .login-button.login-button-disabled:active,
.accounts-dialog .login-button.login-button-disabled:active {
  color: #ddd;
  background: #aaa;
  border: 1px solid #c3c3c3;
  box-shadow: none;
  -webkit-box-shadow: none;
}
.accounts-dialog * {
  padding: 0;
  margin: 0;
  line-height: inherit;
  color: inherit;
  font: inherit;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.accounts-dialog .login-button {
  width: auto;
  margin-bottom: 4px;
}
#login-buttons .login-buttons-padding {
  display: inline-block;
  width: 30px;
}
#login-buttons .login-display-name {
  margin-right: 4px;
}
#login-buttons .configure-button {
  background: #ff2a00;
  border-color: #cc2200;
}
#login-buttons .configure-button:active,
#login-buttons .configure-button:hover {
  background: #ff5533;
  border-color: #ff2a00;
}
#login-buttons .login-image {
  display: inline-block;
  position: absolute;
  left: 6px;
  top: 6px;
  width: 16px;
  height: 16px;
}
#login-buttons .text-besides-image {
  margin-left: 18px;
}
#login-buttons .no-services {
  color: red;
}
#login-buttons .login-link-and-dropdown-list {
  position: relative;
}
#login-buttons .login-close-text {
  float: left;
  position: relative;
  padding-bottom: 8px;
}
#login-buttons .login-text-and-button .loading,
#login-buttons .login-link-and-dropdown-list .loading {
  display: inline-block;
}
#login-buttons.login-buttons-dropdown-align-left #login-dropdown-list .loading {
  float: right;
}
#login-buttons.login-buttons-dropdown-align-right #login-dropdown-list .loading {
  float: left;
}
#login-buttons .login-close-text-clear {
  clear: both;
}
#login-buttons .or {
  text-align: center;
}
#login-buttons .hline {
  text-decoration: line-through;
  color: lightgrey;
}
#login-buttons .or-text {
  font-weight: bold;
}
#login-buttons #signup-link {
  float: right;
}
#login-buttons #forgot-password-link,
#login-buttons #resend-passwordless-code {
  float: left;
}
#login-buttons #back-to-login-link {
  float: right;
}
#login-buttons a,
.accounts-dialog a {
  cursor: pointer;
  text-decoration: underline;
}
#login-buttons.login-buttons-dropdown-align-right .login-close-text {
  float: right;
}
.accounts-dialog {
  border: 1px solid #ccc;
  z-index: 1000;
  background: white;
  border-radius: 4px;
  padding: 8px 12px;
  margin: -8px -12px 0 -12px;
  width: 250px;
  box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.2);
  font-size: 16px;
  color: #333;
}
.accounts-dialog > * {
  line-height: 1.6;
}
.accounts-dialog > .login-close-text {
  line-height: inherit;
  font-size: inherit;
  font-family: inherit;
}
.accounts-dialog label,
.accounts-dialog .title {
  font-size: 80%;
  margin-top: 7px;
  margin-bottom: -2px;
}
.accounts-dialog label {
  display: inline;
}
.accounts-dialog input[type=text],
.accounts-dialog input[type=email],
.accounts-dialog input[type=password] {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
}
.accounts-dialog input[type=text][type],
.accounts-dialog input[type=email][type],
.accounts-dialog input[type=password][type] {
  height: auto;
}
.accounts-dialog .login-button-form-submit {
  margin-top: 8px;
}
.accounts-dialog .message {
  font-size: 80%;
  margin-top: 8px;
  line-height: 1.3;
}
.accounts-dialog .error-message {
  color: red;
}
.accounts-dialog .info-message {
  color: green;
}
.accounts-dialog .additional-link {
  font-size: 75%;
}
.accounts-dialog .accounts-close {
  position: absolute;
  top: 0;
  right: 5px;
  font-size: 20px;
  font-weight: bold;
  line-height: 20px;
  text-decoration: none;
  color: #000;
  opacity: 0.4;
}
.accounts-dialog .accounts-close:hover {
  opacity: 0.8;
}
.accounts-dialog #login-buttons-cancel-reset-password {
  float: right;
}
.accounts-dialog #login-buttons-cancel-enroll-account {
  float: right;
}
#login-dropdown-list {
  position: absolute;
  top: -1px;
  left: -1px;
}
#login-buttons.login-buttons-dropdown-align-right #login-dropdown-list {
  left: auto;
  right: -1px;
}
#login-buttons-message-dialog .message {
  /* we intentionally want it bigger on this dialog since it's the only thing displayed */
  font-size: 100%;
}
.accounts-centered-dialog {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  z-index: 1001;
  position: fixed;
  left: 50%;
  margin-left: -258px / 2;
  top: 50%;
  margin-top: -40px;
  /* = approximately -height/2, though height can change */
}
#configure-login-service-dialog {
  width: 530px;
  margin-left: -538px / 2;
  margin-top: -300px;
  /* = approximately -height/2, though height can change */
}
#configure-login-service-dialog table {
  width: 100%;
}
#configure-login-service-dialog input[type=text] {
  width: 100%;
  font-family: "Courier New", Courier, monospace;
}
#configure-login-service-dialog ol {
  margin-top: 10px;
  margin-bottom: 10px;
}
#configure-login-service-dialog ol li {
  margin-left: 30px;
}
#configure-login-service-dialog .configuration_labels {
  width: 30%;
}
#configure-login-service-dialog .configuration_inputs {
  width: 70%;
}
#configure-login-service-dialog .new-section {
  margin-top: 10px;
}
#configure-login-service-dialog .url {
  font-family: "Courier New", Courier, monospace;
}
#configure-login-service-dialog-save-configuration {
  float: right;
}
.configure-login-service-dismiss-button {
  float: left;
}
#just-verified-dismiss-button,
#messages-dialog-dismiss-button {
  margin-top: 8px;
}
.hide-background {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  /* XXX consider replacing with DXImageTransform */
  background-color: #000000;
  /* fallback for IE7-8 */
  background-color: rgba(0, 0, 0, 0.7);
}
#login-buttons input[type=text],
.accounts-dialog input[type=text],
#login-buttons input[type=email],
.accounts-dialog input[type=email],
#login-buttons input[type=password],
.accounts-dialog input[type=password] {
  padding: 4px;
  border: 1px solid #aaa;
  border-radius: 3px;
  line-height: 1;
}
#not-found {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    gap: 3rem;
}

#not-found .not-found-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#not-found .not-found-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

#not-found .not-found-title {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: url(img/bg-footer.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    min-height: 400px;
    padding: 2rem;
}

#not-found .not-found-title h1 {
    font-size: 2.5rem;
    color: #1f2128;
    margin-bottom: 1.5rem;
    margin-top: 0;
    font-weight: 700;
    line-height: 1.2;
}

#not-found .not-found-title a.gotohomepage {
    background-color: #0d6efd;
    color: #fff;
    padding: 0.75rem 2rem;
    display: inline-block;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}

#not-found .not-found-title a.gotohomepage:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    #not-found {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
        min-height: calc(100vh - 150px);
    }

    #not-found .not-found-image {
        max-width: 300px;
    }

    #not-found .not-found-title {
        width: 100%;
        text-align: center;
        align-items: center;
        min-height: auto;
        padding: 1rem;
    }

    #not-found .not-found-title h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    #not-found .not-found-title a.gotohomepage {
        width: 100%;
        max-width: 250px;
    }
}


.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05) !important;
}

.badge {
    font-size: 0.75rem;
    padding: 0.5em 0.75em;
}

.btn-group .btn {
    border-radius: 0.375rem !important;
}

.btn-group .btn:first-child {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.btn-group .btn:last-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.input-group-text {
    border-color: #dee2e6;
}

.pagination .page-link {
    border-radius: 0.375rem;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Animasi untuk loading state */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Custom scrollbar untuk table */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem !important;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .table-responsive {
        font-size: 0.875rem;
    }

    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .card-header h5 {
        font-size: 1rem;
    }

    .table th,
    .table td {
        padding: 0.5rem;
    }
}

/* Hover effects untuk buttons - Exclude modal elements */
.btn-outline-primary:hover:not(.modal *) {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.btn-outline-danger:hover:not(.modal *) {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Smooth transitions - Exclude modal elements to prevent flickering */
.btn:not(.modal *),
.card:not(.modal *),
.form-control:not(.modal *),
.form-select:not(.modal *) {
    transition: all 0.2s ease-in-out;
}

/* Custom focus states - Exclude modal elements to prevent flickering */
.form-control:focus:not(.modal *),
.form-select:focus:not(.modal *) {
    transform: translateY(-1px);
}

/* Modal-specific CSS to prevent flickering */


/* Ensure modal elements are stable */
.modal .modal-content,
.modal .modal-header,
.modal .modal-body,
.modal .modal-footer {
    transition: none !important;
    transform: none !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Fix for form elements in modals */
.modal .form-control,
.modal .form-select,
.modal .btn,
.modal input,
.modal textarea,
.modal select {
    transition: none !important;
    transform: none !important;
}

/* Prevent Select2 flickering in modals */
.modal .select2-container {
    transition: none !important;
    transform: none !important;
}

.modal .select2-container--default .select2-selection {
    transition: none !important;
    transform: none !important;
}

/* Additional modal stability fixes */
.modal .modal-dialog {
    transition: none !important;
    transform: none !important;
}

.modal .modal-backdrop {
    transition: none !important;
    transform: none !important;
}

/* Prevent any animation conflicts in modals */
.modal.show .modal-dialog {
    transition: none !important;
    transform: none !important;
}

.modal.fade .modal-dialog {
    transition: none !important;
    transform: none !important;
}

/* Fix for dropdown menus in modals */
.modal .dropdown-menu {
    transition: none !important;
    transform: none !important;
}

/* Fix for tooltips in modals */
.modal .tooltip {
    transition: none !important;
    transform: none !important;
}

/* Fix for popovers in modals */
.modal .popover {
    transition: none !important;
    transform: none !important;
}

/* Badge animations - Exclude modal elements */
.badge:not(.modal *) {
    transition: all 0.2s ease;
}

.badge:hover:not(.modal *) {
    transform: scale(1.05);
}

/* Table row hover effects - Exclude modal elements */
.table tbody tr:not(.modal *) {
    transition: all 0.2s ease;
}

.table tbody tr:hover:not(.modal *) {
    transform: scale(1.01);
}

/* Pagination improvements - Exclude modal elements */
.pagination .page-link:not(.modal *) {
    transition: all 0.2s ease;
}

.pagination .page-link:hover:not(.modal *) {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-label-page {
    background: #1B3C73;
    width: 100%;
    padding: 10px;
    color: white;
}

.section-action-page {
    margin: 2vh 0;
    float: right;
}

.section-title-page {
    display: flex;
    justify-content: center;
}


.header-form {
    display: flex;
    justify-content: center;
    padding: 20px;
    margin-bottom: 30px;
    border-bottom: 1px #c6c6c6 solid;
}

.img-dashboard {
    width: 200px;
    height: 200px;
    object-fit: cover;
    /* Opsional */
}

.card-text {
    font-size: 16px;
    font-weight: bold;
}

.card-custom {
    background-color: white;
    margin: 5px 0;
}

.card-custom-body {
    padding: 5px 10px;
    display: flex;
    flex-direction: column;
}

.img-fluid2 {
    display: flex;
    /* Menggunakan flexbox untuk layout */
    width: 100%;
    /* Mengisi lebar kolom */
    height: 100%;
    /* Mengisi tinggi kolom */
}

.img-fluid2 img {
    width: 100%;
    /* Pastikan gambar tidak melampaui lebar container */
    max-height: 300px;
    /* Menjaga rasio aspek gambar */
    object-fit: cover;
    /* Mengatur properti object-fit */
}

/* Styling untuk kartu dokumen dengan Fancybox - Exclude modal elements */
.document-card:not(.modal *) {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.document-card:hover:not(.modal *) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #0d6efd !important;
}

.document-card:hover .document-icon i:not(.modal *) {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.document-card .document-icon:not(.modal *) {
    transition: all 0.3s ease;
}

.document-card .btn:not(.modal *) {
    transition: all 0.3s ease;
    font-weight: 500;
}

.document-card .btn:hover:not(.modal *) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Styling untuk Fancybox modal */
.fancybox__container {
    z-index: 1050;
}

.fancybox__toolbar {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.fancybox__button {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.fancybox__button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.fancybox__caption {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem;
    backdrop-filter: blur(10px);
}

/* Responsive design untuk kartu dokumen */
@media (max-width: 768px) {
    .document-card {
        margin-bottom: 1rem;
    }

    .document-card .document-icon i {
        font-size: 2rem !important;
    }

    .document-card h6 {
        font-size: 0.9rem;
    }

    .document-card .btn {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Animasi loading untuk dokumen */
.document-loading {
    position: relative;
    overflow: hidden;
}

.document-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Custom styling untuk PDF viewer */
.fancybox__content .fancybox__pdf {
    width: 100%;
    height: 80vh;
    border: none;
    border-radius: 10px;
}

/* Custom styling untuk gambar */
.fancybox__content .fancybox__image {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Styling untuk Slip Gaji Sederhana */
.payroll-slip {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
}

.payroll-header {
    text-align: left;
    margin-bottom: 30px;
    border-bottom: 2px solid #1B3C73;
    padding-bottom: 15px;
}

.company-logo {
    max-height: 80px;
    position: absolute;
    margin-left: 100px;
}

.print-controls {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px 0;
}

.print-controls .btn:not(.modal *) {
    background-color: #1B3C73;
    border-color: #1B3C73;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.print-controls .btn:hover:not(.modal *) {
    background-color: #0f2a52;
    border-color: #0f2a52;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.section-subtitle {
    margin: 20px 0 10px 0;
    border-left: 3px solid #1B3C73;
    padding-left: 10px;
}

.section-subtitle h4 {
    color: #1B3C73;
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.payroll-data {
    padding: 0 10px;
}

.data-row {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    min-height: 30px;
}


.data-label {
    font-weight: bold;
    color: #000000;
    font-size: 14px;
    text-align: left;
    padding-right: 10px;
    flex: 0 0 180px;
    max-width: 180px;
}

.data-value {
    font-size: 14px;
    color: #000000;
    text-align: right;
    word-break: break-all;
    min-width: 150px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.data-value .symbol {
    color: #000000;
    font-weight: bold;
    margin-right: 2px;
    width: 18px;
    text-align: right;
    order: 1;
    white-space: nowrap;
}

.data-value .amount {
    text-align: right;
    flex: 1;
    order: 2;
    color: #000000;
}

.data-value.text-left {
    text-align: left !important;
    justify-content: flex-start !important;
}

.col-separator {
    flex: 0 0 auto;
    width: 20px;
    text-align: center;
    color: #333;
}

.separator {
    border: none;
    border-top: 1px solid #ddd;
    margin: 15px 0;
}

.final-salary {
    font-size: 16px !important;
    font-weight: bold !important;
    color: #1B3C73 !important;
}

/* Responsive untuk slip gaji */
@media (max-width: 768px) {
    .payroll-slip {
        margin: 10px;
        padding: 15px;
    }

    .company-logo {
        max-height: 60px;
    }

    .payslip-header .company-logo {
        flex: 0 0 80px !important;
        width: 80px !important;
    }

    .data-label {
        font-size: 12px;
    }

    .data-value {
        font-size: 12px;
    }

    .data-label {
        flex: 0 0 150px;
        max-width: 150px;
    }

    .col-separator {
        width: 15px;
    }

    .data-value {
        text-align: left;
        font-size: 12px;
    }

    .data-value .symbol {
        width: 25px;
        margin-right: 4px;
        margin-left: 0;
        text-align: right;
    }

    .data-value.text-left {
        text-align: left !important;
        justify-content: flex-start !important;
    }
}

@media print {
    @page {
        margin: 0 !important;
        padding: 0 !important;
    }

    body {
        margin: 0 !important;
        padding: 0 !important;
    }

    .print-controls {
        display: none !important;
    }

    .payroll-slip {
        box-shadow: none !important;
        margin: 0 !important;
        padding: 15px !important;
        page-break-inside: avoid;
        max-width: 420px !important;
        width: 420px !important;
        min-height: 298px !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }

    .payroll-header {
        margin-bottom: 12px !important;
        padding-bottom: 6px !important;
    }

    .company-logo {
        max-height: 40px !important;
    }

    .payslip-header .company-logo {
        flex: 0 0 60px !important;
        width: 60px !important;
    }

    .data-label {
        font-size: 11px !important;
        flex: 0 0 120px !important;
        max-width: 120px !important;
    }

    .data-value {
        font-size: 11px !important;
    }

    .section-subtitle h4 {
        font-size: 14px !important;
    }

    .final-salary {
        font-size: 14px !important;
        font-weight: bold !important;
    }

    .data-row {
        margin-bottom: 4px !important;
    }

    .section-subtitle {
        margin: 10px 0 6px 0 !important;
        padding-left: 6px !important;
    }

    body {
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
    }
}


/* slip tuban */

.payslip-container {
    /* ukuran a4 landscape */
    width: 297mm;
    height: 210mm;
    margin: 0 auto;
    padding: 15px;
    font-family: Arial, sans-serif;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Header Styles */
.payslip-header {
    display: flex;
    margin-bottom: 10px;
}


.logo-circle {
    width: 100px;
    height: 100px;
}




.company-info {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
}

.company-name {
    font-size: 16px;
    font-weight: bold;
    color: #1B3C73;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.company-details {
    font-size: 11px;
    margin: 1px 0;
    color: #555;
    line-height: 1.2;
}

.branch-name {
    font-size: 15px;
    font-weight: bold;
    color: #1B3C73;
    margin: 4px 0 3px 0;
    letter-spacing: 0.5px;
}

.company-address, .company-contact {
    font-size: 11px;
    margin: 1px 0;
    color: #555;
    line-height: 1.2;
}

/* Document Title */
.document-title {
    text-align: center;
    margin: 12px 0;
}

.title-separator {
    border: 2px solid #333;
    margin-bottom: 6px;
}

.payslip-title {
    font-size: 14px;
    font-weight: bold;
    margin: 3px 0;
}

.payslip-period {
    font-size: 12px;
    font-weight: bold;
    margin: 3px 0;
}

/* Employee Information */
.employee-info {
    display: flex;
    margin-bottom: 12px;
    padding: 5px;
}

.employee-left, .employee-right {
    flex: 1;
    padding: 5px;
}

.info-row {
    display: flex;
    margin-bottom: 3px;
}

.info-label {
    min-width: 150px;
    font-weight: bold;
    font-size: 12px;
}

.info-separator {
    margin: 0 5px;
}

.info-value {
    flex: 1;
    font-weight: bold;
    border-bottom: 1px solid #000;
    font-size: 12px;
}

/* Earnings and Deductions */
.earnings-deductions {
    display: flex;
    margin-bottom: 12px;
}

.earnings-section, .deductions-section {
    flex: 1;
    margin: 0 8px;
}

.section-title {
    background: #e9ecef;
    padding: 5px;
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 12px;
}

.earnings-list, .deductions-list {
    margin-bottom: 6px;
}

.earnings-item, .deductions-item {
    display: flex;
    margin-bottom: 2px;
    font-size: 11px;
}

.earnings-label, .deductions-label {
    min-width: 150px !important;
    font-size: 11px;
}
.earnings-separator, .deductions-separator {
    width: 80px;
    font-size: 11px;
}

.earnings-amount, .deductions-amount {
    font-weight: bold;
    margin-left: 5px;
    width: 100%;
    text-align: right;
    border-bottom: 1px solid #000;
    font-size: 11px;
}

.total-separator {
    border: 1px solid #333;
    margin: 5px 0;
}
.total-container {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
}


.total-earnings, .total-deductions {
    width: 100%;
    display: flex;
    padding: 5px;
    justify-content: space-between;
    font-weight: bold;
    font-size: 11px;
}
.total-label, .net-pay-label {
    min-width: 150px;
    font-weight: bold;
    font-size: 11px;
}
.total-separator1 {
    width: 80px;
    font-size: 11px;
}
.total-amount {
    width: 100%;
    text-align: right;
    border-bottom: 1px solid #000;
    font-size: 11px;
}

/* Net Pay Summary */
.net-pay-summary {
    display: flex;
   
}
.net-left {
    flex: 1;
    padding: 5px;
}
.net-right {
    flex: 1;
    padding: 5px;
}

.double-separator {
    border: 2px solid #333;
    margin-bottom: 8px;
}

.net-pay {
    display: flex;
    font-weight: bold;
    font-size: 13px;
}
.net-pay-amount {
    width: 100%;
    text-align: right;
    border-bottom: 1px solid #000;
    font-size: 13px;
}
.net-pay-formula {
    font-size: 10px;
    margin-top: 2px;
}
.net-pay-description {
    font-size: 10px;
    margin-top: 2px;
}

.amount-in-words {
    display: flex;
    margin-top: 4px;
}


.terbilang-label {
    min-width: 150px;
    font-weight: bold;
    font-style: italic;
    font-size: 11px;
}

.terbilang-value {
    margin-left: 10px;
    flex: 1;
    text-align: left;
    font-style: italic;
    text-transform: capitalize;
    font-size: 11px;
}

.terbilang-separator {
    margin: 0 5px;
}

/* Footer */
.payslip-footer {
    display: flex;
    width: 100%;
    margin-top: 8px;
}

.footer-left, .footer-right {
    flex: 1;
    text-align: center;
}



.approval-text, .approval-title, .finance-title {
    font-size: 12px;
    margin-bottom: 3px;
}

.date-location {
    font-size: 12px;
    margin-bottom: 8px;
}

.stamp {
   height: 60px;
}



.stamp-text {
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 1.1;
}

.signature-line-container {
    width: 100%;
    display: flex;
    justify-content: center;
}
.signature-line {
    width: 300px;
    border: 1px solid #333;
   
}

.signature-name {
    font-weight: bold;
    font-size: 11px;
    margin-bottom: 5px;
  
   
   
}

.signature-space {
    height: 60px;
    
}

/* Print-specific styles for payslip-container */
.payslip-container.print-mode {
    width: 297mm !important;
    height: 210mm !important;
    padding: 15px !important;
    box-shadow: none !important;
    margin: 0 !important;
    page-break-inside: avoid !important;
}

/* Hide print button when printing */
.payslip-container.print-mode ~ .d-flex {
    display: none !important;
}

/* Ensure proper sizing for PDF generation */
body.print-mode .payslip-container {
    width: 297mm !important;
    height: 210mm !important;
    padding: 15px !important;
    box-shadow: none !important;
    margin: 0 !important;
}

/* Optimize logo for print */
.payslip-container.print-mode .logo-circle img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Ensure content fits on page */
.payslip-container.print-mode .earnings-item,
.payslip-container.print-mode .deductions-item {
    page-break-inside: avoid !important;
}

.payslip-container.print-mode .net-pay-summary {
    page-break-inside: avoid !important;
}

.payslip-container.print-mode .payslip-footer {
    page-break-inside: avoid !important;
}

/* Further optimize spacing for print */
.payslip-container.print-mode .payslip-header {
    margin-bottom: 8px !important;
}

.payslip-container.print-mode .document-title {
    margin: 10px 0 !important;
}

.payslip-container.print-mode .employee-info {
    margin-bottom: 10px !important;
}

.payslip-container.print-mode .earnings-deductions {
    margin-bottom: 10px !important;
}

.payslip-container.print-mode .total-container {
    margin: 6px 0 !important;
}

.payslip-container.print-mode .double-separator {
    margin-bottom: 6px !important;
}

.payslip-container.print-mode .payslip-footer {
    margin-top: 6px !important;
}

/* ========================================
   Loading Overlay Styles
   ======================================== */
/* Loading overlay - tidak memblokir interaksi navbar */
#loading {
    pointer-events: none; /* Semua elemen di dalam loading tidak memblokir interaksi */
}

#loading .loader,
#loading p {
    pointer-events: auto; /* Loader dan teks tetap visible */
}

#loading .loading {
    width: 80vw;
    height: 80vh;
    background-color: rgba(0, 0, 0, 0);
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none; /* Membolehkan klik menembus overlay loading */
    z-index: 1; /* Tetap di atas konten tapi tidak memblokir navbar */
}

/* HTML: <div class="loader"></div> */
#loading .loader {
    width: 20px;
    height: 80px;
    background: #935936;
    position: relative;
}

#loading .loader:before {
    content: "";
    position: absolute;
    top: 10px;
    left: -22px;
    width: 25px;
    height: 60px;
    background: radial-gradient(farthest-side, #fff 92%, #0000) 60% 6px/4px 4px,
        radial-gradient(50% 60%, #53707b 92%, #0000) center/70% 55%,
        radial-gradient(farthest-side, #53707b 92%, #0000) 50% 3px/14px 14px,
        radial-gradient(142% 100% at bottom right, #0000 64%, #53707b 65%) bottom/57% 40%,
        conic-gradient(from -120deg at right, #53707b 36deg, #0000 0) 100% 3px/51% 12px,
        conic-gradient(from 120deg at top left,
            #0000,
            #ef524a 2deg 40deg,
            #0000 43deg) top/100% 10px;
    background-repeat: no-repeat;
    transform: rotate(-26deg);
    transform-origin: 100% 80%;
    animation: l16 0.25s infinite linear alternate;
}

#loading .loader:after {
    content: "";
    position: absolute;
    width: 6px;
    height: 12px;
    left: -6px;
    bottom: 15px;
    border-radius: 100px 0 0 100px;
    background: #53707b;
}

@keyframes l16 {
    100% {
        transform: rotate(0);
    }
}

/* ========================================
   Navbar Interaction Fix
   ======================================== */
/* Memastikan navbar tetap dapat diklik saat loading */
.navbar {
    position: relative;
    z-index: 1030; /* Bootstrap navbar default z-index, lebih tinggi dari loading overlay */
    pointer-events: auto; /* Memastikan navbar dapat diklik */
}

/* ========================================
   Scan Barcode Page Styles
   ======================================== */
/* ScanBarcode specific styles */
.min-vh-100 {
    min-height: 100vh;
}

.bg-gradient {
    background: linear-gradient(120deg, #0a1a7a 0%, #b89d6c 100%) !important;
}

/* Memastikan background gradient diterapkan pada container scanBarcode */
.container-fluid.min-vh-100.bg-gradient {
    background: linear-gradient(120deg, #0a1a7a 0%, #b89d6c 100%) !important;
}

/* Memastikan layout scanBarcode full width tanpa padding/margin */
/* Target section dan container-fluid yang berisi scanBarcode */
section:has(.container-fluid.min-vh-100.bg-gradient),
section:has(.container-fluid.min-vh-100.bg-gradient) .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Memastikan scanner barcode tetap di atas walaupun ada banyak pengumuman */
.container-fluid.min-vh-100.bg-gradient .row {
    align-items: flex-start !important;
}

.container-fluid.min-vh-100.bg-gradient .row > .col-12.col-lg-6:first-child {
    align-self: flex-start !important;
}

/* Fallback untuk browser yang tidak support :has() */
.container-fluid.min-vh-100.bg-gradient {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* ========================================
   Login Page Styles
   ======================================== */
/* Memastikan login page full width tanpa margin/padding */
body:has(.login-container),
html:has(.login-container) {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow-x: hidden;
}

.login-container {
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* Screen reader only - untuk input scanner */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Mencegah autocomplete suggestion pada scanner input */
#scanner-input::-webkit-autofill,
#scanner-input::-webkit-contacts-auto-fill-button,
#scanner-input::-webkit-credentials-auto-fill-button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Mencegah suggestion dropdown */
#scanner-input::-webkit-calendar-picker-indicator {
    display: none !important;
}

/* Mencegah browser autocomplete */
#scanner-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: inherit !important;
}

/* Profile Image Container */
.profile-image-container {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    will-change: transform;
    transform: translateZ(0);
}

/* Profile Image - Selalu memenuhi lingkaran avatar */
.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #fff;
    display: block;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease;
    image-orientation: from-image;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

/* Hover effect untuk gambar */
.profile-image-container:hover .profile-image {
    transform: scale(1.05);
}

/* Memastikan gambar tetap proporsional */
.profile-image[src*=".jpg"],
.profile-image[src*=".jpeg"],
.profile-image[src*=".png"],
.profile-image[src*=".gif"],
.profile-image[src*=".webp"] {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Optimasi untuk gambar berdasarkan orientasi */
.profile-image.landscape,
.profile-image.portrait,
.profile-image.square {
    object-position: center;
}

/* Loading state untuk container */
.profile-image-container.loading {
    background: #f8f9fa;
    position: relative;
}

/* Loading spinner untuk container */
.profile-image-container.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
}

.profile-image.loading {
    opacity: 0.7;
}

.profile-image.loading::before {
    display: none;
}

/* Fallback untuk gambar yang tidak dapat dimuat */
.profile-image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #6c757d;
    color: white;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Mencegah flicker pada modal dan form elements */
.modal,
.btn-modal-edit,
.btn-modal-edit-shift,
.form-control {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Mencegah flicker pada select2 dropdown */
.select2-container {
    z-index: 9999;
}

.modal .select2-container {
    z-index: 99999;
}

/* Pastikan select2 tidak overlap dengan SweetAlert modal */
.swal2-container ~ .select2-container {
    z-index: 1000 !important;
}

/* Ketika SweetAlert muncul, turunkan z-index select2 choice tags */
.swal2-container ~ * .select2-container--default .select2-selection--multiple .select2-selection__rendered li.select2-selection__choice,
.swal2-show ~ * .select2-container--default .select2-selection--multiple .select2-selection__rendered li.select2-selection__choice {
    z-index: 1000 !important;
    pointer-events: none !important;
}

/* Ketika SweetAlert tidak ada, kembalikan z-index normal */
.select2-container--default .select2-selection--multiple .select2-selection__rendered li.select2-selection__choice {
    position: relative;
    z-index: auto;
}

/* Pastikan select2 dropdown (bukan choice tags) tetap bisa digunakan */
.select2-container--default .select2-dropdown {
    z-index: 99999 !important;
}

/* Alternatif: Turunkan z-index semua select2 ketika ada SweetAlert */
body.swal2-height-auto .select2-container,
body.swal2-no-backdrop .select2-container {
    z-index: 1000 !important;
}

body.swal2-height-auto .select2-container--default .select2-selection--multiple .select2-selection__rendered li.select2-selection__choice,
body.swal2-no-backdrop .select2-container--default .select2-selection--multiple .select2-selection__rendered li.select2-selection__choice {
    z-index: 1000 !important;
    pointer-events: none !important;
}

/* Spin animation untuk loading */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive untuk layar kecil */
@media (max-width: 768px) {
    .profile-image-container {
        width: 48px;
        height: 48px;
    }
}

/* Responsive untuk layar sangat kecil */
@media (max-width: 576px) {
    .profile-image-container {
        width: 40px;
        height: 40px;
    }

    .profile-image-container.loading::before {
        width: 12px;
        height: 12px;
        margin: -6px 0 0 -6px;
    }

    .profile-image {
        object-fit: contain !important;
    }

    .profile-image-container {
        border: 1px solid #dee2e6;
    }
}

/* Responsive untuk layar besar */
@media (min-width: 1200px) {
    .profile-image-container {
        width: 64px;
        height: 64px;
    }

    .profile-image-container.loading::before {
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
    }
}