/* style khusus untuk my custom */

/* untuk fix table header */
.table-fix-head          { overflow: auto; height: 500px; }
.table-fix-head thead th { position: sticky; top: 0; z-index: 1; }

/*  text align */
.left { text-align: left; }
.center { text-align: center; }
.right { text-align: right; }
.justify { text-align: justify; }
.middle { vertical-align: middle; }
.nowrap { white-space: nowrap; }
.bold { font-weight: bold; }

/* form-control */
.form-control:focus {
    outline: none;
    color: #495057;
    background-color: #fff;
    border-color: #3051d3;
    box-shadow: 0 0 0 .2rem rgba(48,81,211,.3)
}

/* Search Custom */
.custom-search {
    margin: 0;
}

.custom-search .form-search {
    padding: 2px 6px;
    margin-bottom: 0;
    float: right;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: .25rem;
    color: #495057;
    background: #fff;
    border: 1px solid #ced4da;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
    width: 200px;
}

.form-sm {
    height: calc(1.5em + .5rem + 2px);
    padding: .25rem .5rem;
    font-size: .79625rem;
    line-height: 1.5;
    border-radius: .2rem;
}

.custom-search .form-search:hover {
	border-color: #3051d3;
}

.custom-search .form-search:focus {
    width: 270px;
    outline: none;
    color: #495057;
    background-color: #fff;
    border-color: #3051d3;
    box-shadow: 0 0 0 .2rem rgba(48,81,211,.3)
}

.custom-search button {
    border: 0;
    background: transparent;
    padding: 0px 5px;
    top: 3px;
    right: 12px;
    position: absolute;
	opacity: 0.5;
    margin-bottom: 0;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.custom-search button:hover {
    background: transparent;
}

.custom-search button [data-icon]:before {
    color: #666666;
}

@media (max-width: 768px) {
    .custom-search .form-search {
        width: 100%;
    }

    .custom-search .form-search:focus {
        width: 200px;
    }
    
    .btn-block {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }
}
/* End Search Custom */

/* BlockUI */
.blockUI.blockMsg.blockElement {
	/* background-color: transparent !important;
	border: 0 !important; */
    top: 50% !important;
}

/* pagination and summary responsive */
.dataTables-paginate {
    margin: 0;
    white-space: nowrap;
    text-align: right;
}

.dataTables-info {
    padding-top: 0.42em;
    white-space: nowrap;
}

.dataTables-paginate ul.pagination {
    margin: 2px 0;
    white-space: nowrap;
    justify-content: flex-end;
}

.form-control-paging {
    width: 100%;
    padding: 2.5px 5px 2px 5px;
    font-size: 14px;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out
}

.toggle-password {
    position: relative;
    cursor: pointer;
    top: 30px;
    left: 320px;
}

@media (max-width: 768px) {
	#summary {
		text-align: center;
		vertical-align: middle;
	}

	.dataTables-paginate ul.pagination {
		justify-content: center;
	}

    .toggle-password {
        top: 30px;
        left: 180px;
    }
}

/* panel */
.panel {
    margin-bottom: 20px;
    background-color: white;
    border: 1px solid transparent;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    -webkit-box-shadow: 0 1px 1px rgb(0 0 0 / 5%);
    box-shadow: 0 1px 1px rgb(0 0 0 / 5%);
}

.panel-primary > .panel-heading {
    color: white;
    background-color: #3151D3;
    border-color: #3151D3;
}

.panel-heading {
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    -webkit-border-radius: 3px 3px 0 0;
    -moz-border-radius: 3px 3px 0 0;
    border-radius: 3px 3px 0 0;
}

.panel-body {
    padding: 15px;
}

.panel-title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 16px;
    line-height: 100%;
    color: white;
}

.float-right {
    float: right !important;
}

.float-left {
    float: left !important;
}

/* Password visibility toggle (otomatis untuk semua input password) */
.password-visibility-wrapper {
    position: relative;
}

.password-visibility-wrapper .password-visibility-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 2px;
    cursor: pointer;
    opacity: 0.5;
    line-height: 0;
    z-index: 5;
}

.password-visibility-wrapper .password-visibility-toggle:hover {
    opacity: 1;
}

.password-visibility-wrapper .password-visibility-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
    color: #6c757d;
}

.password-visibility-wrapper .password-visibility-input {
    padding-right: 40px;
}

/* ============================================================
   SELECT2 — selaraskan dengan form-control template
   ============================================================ */
/* Select2 4.x mengganti <select> dengan elemen sendiri, sehingga
   .form-control tidak lagi berlaku. Aturan di bawah menyamakan
   tinggi, border, radius, dan fokus dengan input Bootstrap lain. */
.select2-container--default .select2-selection--single {
    /* Tinggi mengikuti .form-control Bootstrap: line-height 1.5 + padding
       atas/bawah .47rem + border 1px di kedua sisi. */
    height: calc(1.5em + .94rem + 2px);
    padding: 0;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    background-color: #fff;
    font-size: .875rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: calc(1.5em + .94rem);
    padding-left: .75rem;
    padding-right: 30px;
    color: #495057;
    font-size: .875rem;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6c757d;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(1.5em + .94rem);
    width: 30px;
    right: 4px;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    height: calc(1.5em + .94rem);
    margin-right: 22px;
    color: #adb5bd;
    font-weight: 400;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #dc3545;
}

/* Fokus mengikuti .form-control:focus milik template. */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #3051d3;
    box-shadow: 0 0 0 .2rem rgba(48, 81, 211, .3);
    outline: none;
}

/* Dropdown. */
.select2-container--default .select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: .25rem;
    box-shadow: 0 .25rem .75rem rgba(22, 24, 27, .12);
    background-color: #fff;
}

.select2-container--default .select2-search--dropdown {
    padding: 8px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    height: 34px;
    padding: 4px 10px;
    border: 1px solid #ced4da;
    border-radius: .2rem;
    color: #495057;
    font-size: .8125rem;
    outline: none;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #3051d3;
    box-shadow: 0 0 0 .2rem rgba(48, 81, 211, .25);
}

.select2-container--default .select2-results > .select2-results__options {
    max-height: 260px;
    overflow-y: auto;
}

.select2-container--default .select2-results__option {
    padding: 8px 12px;
    font-size: .875rem;
    color: #495057;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #3051d3;
    color: #fff;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #eef1fb;
    color: #3051d3;
}

/* Status "Loading more results…" saat memuat halaman berikutnya. */
.select2-container--default .select2-results__option--load-more,
.select2-container--default .select2-results__option.loading-results {
    padding: 10px 12px;
    color: #6c757d;
    font-size: .8125rem;
    font-style: italic;
    text-align: center;
}

/* Select2 di dalam modal harus bisa menimpa z-index modal. */
.select2-container--open {
    z-index: 1056;
}

/* Di layar kecil dropdown mengikuti lebar penuh. */
@media (max-width: 576px) {
    .select2-container--default .select2-results > .select2-results__options {
        max-height: 200px;
    }
}
