/**********************************************************************************************************************/
/*** VARIABLES                                                                                                        */
/**********************************************************************************************************************/
:root {
    --theme-color-primary: #ce650c;
    --theme-color-primary-hover: #b35505;
    --theme-color-primary-alpha: #eea91d;
    --theme-color-primary-highlight: #ff9135;
}


/**********************************************************************************************************************/
/*** STRUCTURE                                                                                                        */
/**********************************************************************************************************************/

.content-errors {
    padding: 0 .5rem;
}


/**********************************************************************************************************************/
/*** ELEMENTS                                                                                                         */
/**********************************************************************************************************************/

/* COLORS */
.theme-text-color-primary {
    color: var(--theme-color-primary) !important;
}
.theme-bg-color-primary {
    background-color: var(--theme-color-primary) !important;
}

.theme-text-color-primary-alpha {
    color: var(--theme-color-primary-alpha) !important;
}
.theme-bg-color-primary-alpha {
    background-color: var(--theme-color-primary-alpha) !important;
}

.text-highlight {
    color: var(--theme-color-primary-highlight) !important;
}
.text-highlight:hover {
    color: var(--theme-color-primary-hover) !important;
}

.card-header .card-title {
    color: var(--theme-color-primary-highlight) !important;
}

/* LISTS */
.list-group .list-group-item strong {
    color: #999 !important;
}
.list-group .list-group-item:last-child {
    border-radius: 0 0 5px 5px !important;
}

/* TABLES */
table tr td {
    vertical-align: middle !important;
}
table tr td a {
    white-space: nowrap !important;
}
table tfoot td {
    font-weight: bold !important;
}
.table tbody + tbody{
    border: none;
}

/* IMAGES */
img.brand-logo-text {
    max-width: 160px;
}
img.login-logo {
    max-width: 340px;
}
img.img-50x50 {
    max-width: 50px;
    max-height: 50px;
}
img.img-100x100 {
    max-width: 100px;
    max-height: 100px;
}
img.img-150x150 {
    max-width: 150px;
    max-height: 150px;
}
img.img-200x200 {
    max-width: 200px;
    max-height: 200px;
}
img.img-160x45 {
    max-width: 160px;
    max-height: 45px;
}
img.img-50x100 {
    max-width: 50px;
    max-height: 100px;
}
.imageBox {
    max-width: 300px;
    height: 150px;
    max-height: 150px;
    margin: 0 auto;
}
.imageBox img {
    max-width: 100%;
    max-height: 100%;
}


/**********************************************************************************************************************/
/*** HELPERS                                                                                                          */
/**********************************************************************************************************************/

/* MOUSE CURSORS */
.mouse-pointer {
    cursor: pointer;
}
.mouse-grap {
    cursor: grab;
}

/* HORIZONTAL RULES */
hr.separator {
    width: 75%;
    margin: 30px auto;
    height: 1px;
    border: none;
    color: #e0e0e0;
    background-color: #e0e0e0;
}

/* POSITIONING */
.valign-middle {
    vertical-align: middle;
}

/* ICONS */
.icon-sm {
    font-size: 0.8rem;
}
.icon-md {
    font-size: 1.2rem;
}
.icon-lg {
    font-size: 1.5rem;
}
.icon-xg {
    font-size: 1.8rem;
}
.icon-2x {
    font-size: 2rem;
}
.icon-3x {
    font-size: 3rem;
}
.icon-4x {
    font-size: 4rem;
}
.icon-5x {
    font-size: 5rem;
}
.text-icon {
    color: #9e9e9e;
}
.text-icon:hover {
    text-decoration: none;
}
.heading-icon {
    font-size: 0.6em !important;
    color: #9e9e9e;
}
.heading-icon:hover {
    text-decoration: none;
}


/**********************************************************************************************************************/
/*** COMPONENTS                                                                                                       */
/**********************************************************************************************************************/

/* Actions DropDown */
.actionsDropdown .dropdown-item{
    display: flex;
    justify-content: space-between;
}
.actionsDropdown .dropdown-item.actionActive{
    background-color: #3f474e;
    color: var(--theme-color-primary-highlight);
}
.actionsDropdown .dropdown-item .actionLabel{
    flex-grow: 1;
    cursor: pointer;
}
.actionsDropdown .dropdown-item .actionButton{
    margin: 0 0 0 10px;
    padding: 0 4px;
    border-radius: 3px;
    cursor: pointer;
    transition: opacity 400ms;
}
.actionsDropdown .dropdown-item .actionButton:hover{
    background-color: #555;
    color: var(--theme-color-primary-highlight);
}
@media(min-width: 500px){
    .dropdown-item:not(:hover) .actionButton {
        opacity: 0;
    }
}

/* Modal */
.modal-loading{
    text-align: center;
    margin: 40px 0;
}


/* Filter Conditions */
.box-filter-conditions ul.list-group{
    margin: 0 0 20px 0;
    padding: 5px;
    border-radius: 5px;
    background-color: #51565e;
}
.box-filter-conditions ul.list-group li{
    padding: 5px;
    display: flex;
    justify-content: space-between;
    background: transparent;
}
.box-filter-conditions ul.list-group li .form-control{
    width: auto !important;
    margin: 0 5px 0 0;
}
.box-filter-conditions ul.list-group li .fields{
    display: flex;
    flex-grow: 1;
}
.box-filter-conditions ul.list-group li .buttons{
    display: flex;
    align-items: center;
}









/**********************************************************************************************************************/
/*** OVERRIDES                                                                                                        */
/**********************************************************************************************************************/

/* Theme */
.nav-link.active {
    background-color: var(--theme-color-primary) !important;
}
.nav-treeview .nav-link.active {
    background-color: #fff !important;
}

.btn-primary {
    background-color: var(--theme-color-primary) !important;
    border-color: var(--theme-color-primary) !important;
}
.btn-primary:hover {
    background-color: var(--theme-color-primary-hover) !important;
    border-color: var(--theme-color-primary-hover) !important;
}

.dark-mode .table td {
    border-top-color: rgba(0, 0, 0, .125) !important;
    color: #ddd !important;
}
.dark-mode .table th {
    border: 0 !important;
    color: #ddd !important;
}
.dark-mode .list-group-item {
    border-color: rgba(0, 0, 0, .125) !important;
}
.dark-mode .close {
    color: #000;
}

.dark-mode .form-control:is(:-webkit-autofill, :autofill) {
    -webkit-box-shadow: 0 0 0 1000px black inset !important;
    border: 1px solid var(--theme-color-primary) !important;
}

.dark-mode .modal-footer, .dark-mode .modal-header {
	border-color: rgba(0, 0, 0, .125) !important;
	background: #272b2f !important;
}
.dark-mode .close {
	color: #fff;
	font-size: 30px;
	line-height: 27px;
}
.modal-backdrop.show {
	opacity: .7;
}

/* Bootstrap multiple modals backdrop fix */
body div.modal-backdrop:nth-of-type(2) {
    z-index: 1100 !important;
}
body div.modal-backdrop:nth-of-type(3) {
    z-index: 1102 !important;
}
body div.modal-backdrop:nth-of-type(4) {
    z-index: 1104 !important;
}
body div.modal-backdrop:nth-of-type(5) {
    z-index: 1106 !important;
}

/* DataTable */
.table:not(.table-borderless) thead th {
    border-top: 0 !important;
}
.table tbody th {
    position: sticky;
    top: 48px;
    z-index: 2;
}
.table tfoot td {
    border: 0;
}
div.dataTables_wrapper div.dataTables_info {
    padding: 10px !important;
}
.dtfh-floatingparenthead {
    top: 57px !important;
}
.dtfh-floatingparenthead table {
    background-color: #25292d !important;
}

/* Sweet Alert */
.swal2-html-container, .swal2-html-container i {
    margin-bottom: 15px;
}

/* Badges */
.badge {
    font-weight: normal !important;
}
