/* switch box/
/* The switch - the box around the slider */
svg>g[class^="raphael-group-"]>text {
    display: none;
}
@media print {
    #app {
        padding: 0 !important;
    }
}

.form-control:disabled,
.form-control[readonly] {
    background-color: #e9ecef;
    opacity: 1;
}
html.dark-mode .form-control[readonly] { 
    background-color: #1b1f24 !important;
}
.form-control{
    appearance: auto;
}
/* penyesuaian utk tgl */
input[type="date"].form-control {
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type="date"].form-control-sm {
    padding: 0.25rem 0.5rem;
    border-radius: 0.2rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
select.form-control {
    /* Menghapus style default */
    appearance: none;
    background-image: none;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #ced4da; 
}

/* Tambahkan indikator dropdown sama seperti .form-select */
select.form-control::after,
select.form-control::before {
    display: inline-block;
}

/* Tambahkan ikon panah dropdown agar mirip .form-select */
select.form-control {
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em auto;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpolygon points='4,6 8,10 12,6' fill='gray'/%3E%3C/svg%3E");
}

select.form-control-sm {
    /* Menghapus style default */
    appearance: none;
    background-image: none;
    padding: 0.25rem 1.75rem 0.25rem 0.5rem;
    border-radius: 0.2rem;
    border: 1px solid #ced4da; 
}

/* Tambahkan ikon panah dropdown agar mirip .form-select-sm */
select.form-control-sm {
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 0.875em auto;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpolygon points='3.5,5 7,8.5 10.5,5' fill='gray'/%3E%3C/svg%3E");
}
pre {
    display: block;
    padding: 9.5px;
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.42857143;
    color: #333;
    word-break: break-all;
    word-wrap: break-word;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
}

html.dark-mode pre {
    background-color: #504f4f;
    color: rgba(255, 255, 255, 0.8);
}

.freeze {
    /* digunakan untuk freeze table column, class ini di taruh di td dan th nya */
    position: sticky;
    left: 0px;
}

.switch-sm {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-inline .form-control {
    display: inline-block;
    width: auto;
    vertical-align: middle;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -5px;
    margin-left: -5px;
}

.form-row>.col {
    padding-left: 5px;
    padding-right: 5px;
}

label {
    margin-bottom: 0.5rem;
}


/* Hide default HTML checkbox */

.switch-sm input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */

.slider-sm {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider-sm:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider-sm {
    background-color: #2196F3;
}

input:focus+.slider-sm {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider-sm:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}


/* Rounded sliders */

.slider-sm.round-sm {
    border-radius: 34px;
}

.slider-sm.round-sm:before {
    border-radius: 50%;
}


/* Hide default HTML checkbox */


/* The switch - the box around the slider */

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}


/* The slider */

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}


/* Rounded sliders */

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.w-100 {
    width: 100px;
}

.pointer {
    cursor: pointer;
}

.coret {
    text-decoration: line-through;
}

.text-white,.text-white td, .text-white th {
    color: #fff !important;
}
.text-yellow,.text-yellow td, .text-yellow th {
    color: #f0ad4e !important;
}
.text-muted,.text-muted td, .text-muted th {
    color: #6c757d !important;
}
.textError {
    border-color: #ed5565 !important;
}

.text-bold {
    font-weight: bold;
}

.ng-table thead tr th {
    text-align: left;
}

.table-reponsive {
    border-style: none;
}

.nowrap {
    white-space: nowrap;
}

.hover-blue:hover {
    color: blue;
}

.hover-red:hover {
    color: red;
}

.hover-navy:hover {
    color: #008a8a;
}

/* Drop Zone */
.my-drop-zone {
    border: dotted 3px lightgray;
}

.nv-file-over {
    border: dotted 3px red;
}

.another-file-over-class {
    border: dotted 3px green;
}

.p-0 {
    padding: 0px !important;
}

.no-border {
    border: none !important;
}

.no-border-text {
    border-radius: 0;
    border-color: transparent !important;
    /*border-bottom-style: dotted !important;
    border-bottom-color: grey !important; */
}

.cell-input {
    padding: 0px !important;
}


@media print {
    .pagebreak {
        page-break-after: always;
    }

    .no-print,
    .no-print * {
        display: none !important;
    }

    .btn-scroll-to-top {
        display: none !important;
    }
}