@page {
    size: auto
}

@media print {
    tfoot {
        page-break-inside: auto;
    }
}

/*
* global style rules for our software
*/
body {
    background-color: #f9fbfd;
}

.validation-error {
    font-size: 13px;
    color: #ff4f70;
}

.hidden {
    display: none !important;
}

/*
 * bootstrap customization
 *
*/
.nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover {
    border-bottom: 0 !important;
}

.modal-colored-header .close {
    outline: none;
}

.form-control {
    border: 1px solid #ddd;
}

/* custom switch button*/
/* use
    .switch-warning = warning switcher
    .custom-switch  = default blue switcher

 */
.custom-switch .custom-control-label::before {
    left: -2.25rem;
    pointer-events: all;
    border-radius: 10.5rem;
    width: 44px;
    height: 24px;
}

.custom-switch .custom-control-label::after {
    top: calc(.25rem + 3px);
    left: calc(-2.25rem + 3px);
    width: calc(1rem - -2px);
    height: calc(1rem - -2px);
    border-radius: 50%;
    transition: transform .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.custom-control-label {
    position: relative;
    vertical-align: top;
    cursor: pointer;
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::after {
    background-color: #fff;
    transform: translateX(1.2rem);
}

.switch-warning .custom-control-input:checked ~ .custom-control-label::before {
    color: #fff;
    background-color: #fdc16a;
    border-color: #fdc16a;
}


.bg-dark-opacity {
    background: rgba(0, 0, 0, 0.6);
}


/* start style dropdown-toggle after and before */
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.dropdown-toggle:empty::after {
    margin-left: 0;
}

.dropup .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0;
    border-right: 0.3em solid transparent;
    border-bottom: 0.3em solid;
    border-left: 0.3em solid transparent;
}

.dropup .dropdown-toggle:empty::after {
    margin-left: 0;
}


.dropright .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid transparent;
    border-right: 0;
    border-bottom: 0.3em solid transparent;
    border-left: 0.3em solid;
}

.dropright .dropdown-toggle:empty::after {
    margin-left: 0;
}

.dropright .dropdown-toggle::after {
    vertical-align: 0;
}

.dropleft .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
}

.dropleft .dropdown-toggle::after {
    display: none;
}

.dropleft .dropdown-toggle::before {
    display: inline-block;
    margin-right: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid transparent;
    border-right: 0.3em solid;
    border-bottom: 0.3em solid transparent;
}

.dropleft .dropdown-toggle:empty::after {
    margin-left: 0;
}

.dropleft .dropdown-toggle::before {
    vertical-align: 0;
}

/* end style dropdown-toggle after and before */
/* draggable input */
.draggable-input {
    position: relative;
    height: 100px;
    padding: 5px;
    border: 2px dashed #ddd;
}

.draggable-input .draggable-icon {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.draggable-input .draggable-icon i {
    margin-top: 10px;
    margin-bottom: 10px;
}

.draggable-input .draggable-input-label {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    cursor: pointer;
}

.draggable-preview-col {
    padding-left: 0;
}

@media only screen and (max-width: 760px) {
    .draggable-preview-col {
        padding-left: 15px;
        margin-top: 15px;
    }
}

.draggable-preview {
    padding: 5px;
    border: 2px dashed #ddd;
    height: 100px;
}

.draggable-preview img {
    width: 100%;
    height: 100%;
}

.mh-40vh {
    min-height: 40vh
}

.mh-60vh {
    min-height: 60vh
}

/* prefix */
.prefix {
    position: relative;
}

.prefix > p {
    position: absolute;
    top: 8px;
    left: -36px;
}

/*cursor pointer*/
.cursor-pointer {
    cursor: pointer !important;
}

/* permissions */
.permissions-card {
    margin-bottom: 15px;
}

.permissions-card .card-header {
    padding: 10px;
    display: flex;
    justify-content: space-between;
}

.permissions-card .card-header h4 {
    position: relative;
    top: 3px;
}

.permissions-card .card-header .custom-switch {
    padding: 0;
    margin: 0;
    left: -9px;
    top: -6px;
}

.permissions-card .card-body {
    padding: 10px 25px;
}

#modal-add-permission-group {
    background-color: #33333394;
}

#modal-add-permission-group .modal-dialog {
    margin-top: 120px;
}

/* add permission group*/
.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
    width: 100% !important;
}

.delete-permission-group {
    position: absolute;
    background: #fff;
    border: 1px solid;
    padding: 1px 3px;
    border-radius: 50%;
    color: #ff4f70;
    left: -10px;
    top: -10px;
    cursor: pointer;
}

.delete-permission-group:hover {
    background-color: #ddd;
}

.profile-img-holder {
    cursor: pointer;
    position: relative;
    font-family: 'Font Awesome 5 Free';
}

.profile-img-holder::before {
    content: "\f03e";
    position: absolute;
    border-radius: 50%;
    right: 15px;
    top: 5px;
    background: #5f76e8;
    color: #fff;
    padding: 2px 5px;
}

input:focus::-webkit-input-placeholder, textarea:focus::-webkit-input-placeholder {
    opacity: 0;
}

.reference-generate {
    position: absolute;
    right: -47px;
    top: 1.5px;
    background: #5f76e8;
    padding: 5px;
    color: white;
    cursor: pointer;
}

.modal-child-overly {
    background-color: rgba(1, 1, 1, 0.5);
}

label.pre-text {
    white-space: pre-wrap !important;
}

.modal * {
    font-size: 0.8rem;
}
table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control, table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control {
    padding-left: 33px !important;
    padding-top: 10px !important;
}