/** BLACK THEME */
:root {
    --body-bg: var(--page-background); /*hsl(240, 16%, 19%);*/
    --main-header-bg: #1e2125;
    /* --main-sidebar-bg:    #4c5367;*/
    --main-sidebar-bg: #1c1d1e;
    --body-bg-lighter: hsl(209, 22%, 24%);
    --body-color: hsl(9, 40%, 47%);
    --border-color: #8080809e;/*grey;*//*#828282;*/
    --text-color: var(--text-color);
    --headings-color: var(--text-color);

    --text-color-dark: silver;

    --page-background: #36393e;
    --primary-color: #18171b;
    --accent-color: #42a7ff;
    --accent-color-dark: #0f8fff;
    --text-color: silver;
    --link-color: #42a7ff;
    --link-hover-color: var(--color-primary); /*#0f8fff;*/
    --header-top-background: #1e2125;
    --header-bottom-background: #2e3136;
    --highlight-color: #ff3;
    --error-color: #ed2e40;
    --success-color: #1da40e;
    --versionadded-background-color: rgba(67, 76, 103, 0.8);
    --versionadded-border-color: rgba(114, 137, 218, 0.3);
    --deprecated-background-color: rgba(217, 83, 79, 0.25);
    --deprecated-border-color: rgba(217, 83, 79, 0.6);
    --deprecated-text-color: #d9534f;
    --form-input-background: #414449;
    --form-input-color: silver;
    --form-input-border-color: #5f6165;
    --black: #fcfcfc;
    --gray-darker: #aaa;
    --gray-dark: #999;
    --gray: #777;
    --gray-light: #5e5e5e;
    --gray-lighter: #2e3136;
    --gray-lightest: #7d7b7f;
    --white: #36393e;
    --border-color-1: #2e3136;
    --border-color-2: #5f6165;
}
/* Patch btn-xs for boorstrap4 */
.btn-group-xs > .btn, .btn-xs {
    padding: .25rem .4rem;
    font-size: .875rem;
    line-height: .5;
}

hr {
    border-color: silver;
}

.modal-content strong, .popover-body strong, .popover strong {
    color: var(--deprecated-text-color);
    font-size: larger;
}

.bs-popover-auto[x-placement^=bottom] > .arrow::after, .bs-popover-bottom > .arrow::after {
    border-bottom-color: var(--header-bottom-background);
}

.close {
    color: silver;
}

/* select 2 */

.select2-container--bootstrap {
    color: silver !important;
    background: var(--header-bottom-background)!important;
    border: 1px solid grey !important;

    border-radius: var(--border-radius);
    box-shadow: 0 0 0 1px rgba(43,45,80,.16), 0 0 0 1px rgba(6,122,184,0), 0 0 0 2px rgba(6,122,184,0), 0 1px 1px rgba(0,0,0,.08);

}
.select2-container--bootstrap .select2-selection {

    font-size: var(--font-size-base) !important;
    line-height: 2em;
}
.select2-container--bootstrap .select2-results__option[aria-selected=true] {
    color:var(--link-hover-color);
}
.select2-container--bootstrap .select2-results__option--highlighted {
    color:var(--link-color);
    border: 1px solid var(--link-hover-color);
    transition-duration: 0.4s;
}

.select2-container--bootstrap .select2-selection,
.select2-search .select2-search--dropdown,
.select2-dropdown,
.select2-dropdown .select2-dropdown--below {
    color: silver !important;
    background: var(--header-bottom-background)!important;
}
.select2-dropdown .select2-dropdown--below {
    color: silver !important;
    background: var(--header-top-background) !important;
}

.select2-search__field {
    color: silver !important;
    background: var(--page-background)!important;
}
.select2-dropdown .select2-dropdown--below {
    border: 1px solid var(--primary-color) !important;
}
.select2-container--bootstrap .select2-selection {
    max-width: 100%;
}

/* SELECT2 IN MAIN-HEADER */
.main-header .select2-selection__rendered {
    line-height: 20px !important;
}
.main-header .select2-container .select2-selection--single {
    height: 20px !important;
    padding-top: 0px;
}
.main-header .select2-selection__arrow {
    height:20px !important;
}
.main-header .select2-container .select2-selection--single .select2-selection__rendered {
    padding-right: 8px;
}


/* DAtatable */

.dataTables_paginate .paginate_button {
    cursor:pointer;
    color: var(--link-color);
    margin: auto 2px;
}

.dataTables_paginate .paginate_button:hover {
    color: var(--link-hover-color);
}

.dataTables_paginate .current  {
    font-size: var(--font-size-lg);
}
.dataTables_paginate {
    padding-top: 0.85em;
}

.dataTables_info {
    padding-top: 0.85em;
    float:left;
}

.table thead th {
    vertical-align: bottom;
     border-bottom: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: silver !important;
    border-bottom: 1px solid var(--border-color);
    background: none;
}
.dataTables_length{float: left;}
.dataTables_length label {
        color: silver;

    }

.dataTables_length select, .dataTables_filter input {
        background: none;
        color: silver;
        border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    }



/* HEADER NAV*/
.preloader-animation {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    /*background: url("https://loading.io/spinners/wave/lg.wave-ball-preloader.gif") center no-repeat;*/
    background-color: rgba(0, 0, 0, 0.799);

    vertical-align: middle;
}
.preloader-content {
    text-align:center;
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.preloader-content img {
    margin-bottom:20px;
}

.main-header {
    background: var(--main-header-bg);
}

.main-sidebar {
    background: var(--main-sidebar-bg);
}

.sidebar-menu .header {
    margin-top: 10px;
}

.sidebar-menu a {
    padding-bottom: 5px;
}

body.page-login {
    background-size: cover;
}

.bottom-logo-container {
    /*  width:100%;
      height:100%;
      background-image:url(images/bear-logo.png) ;
      background-position: left bottom;
      background-size: 300px;
      background-repeat: no-repeat;*/
    position: absolute;
    bottom: 5px;
    left: 5px;
}

body {
    /* Correct horizontal scroll on body ?? */
    overflow-x: hidden;
}
body, html {
    background: var(--body-bg);
    color: var(--text-color);
}

body, html, .form-control {
    font-size: var(--font-size-base);
}

a {
    color: var(--link-color);
    text-decoration: none;
}

.datagrid tbody tr:hover td, .datagrid tbody tr:hover th {
    transition-duration: 0.5s;
    background-color: #40444c;
}

.table {
    color: var(--text-color);
    text-decoration: none;
}

.datagrid thead {
    background: var(--main-header-bg);
    color: white;
}
.datagrid td, .datagrid th{
    border-bottom:none;
}

.table td, .table th {
    border-top: none ;/*1px solid grey;*/
}

.table-striped td, .table-striped th, datagrid tr:last-child > td {
    border-top: 1px solid var(--border-color) !important;
}
.datagrid tr:last-child > td {
    border-bottom: 1px solid var(--border-color) !important;
}
form {
    background: none !important;
}

.form-control:disabled, .form-control[readonly], input:disabled {
    border-color: #6a6d73;
    border-top:none!important;
    border-right:none!important;
    border-left: none!important;
    background-color: var(--white);
}

.form-widget input.form-control, .form-widget select.form-control, .form-widget textarea.form-control, fieldset {
    color: silver !important;
    background: var(--header-bottom-background)!important;
    border: 1px solid grey !important;
}

a.btn, .btn, .page-link {
    color: var(--text-color) !important;
}

a.btn, .btn, .badge, .page-link {
    background: none;
    border: 1px solid;
}

.btn.inactive {
    color:grey;
    border-color:grey;
}
.btn.active {
    color:var(--link-color)!important;
    border-color:var(--link-color)!important;
}

.page-item.disabled {
    display: none;
}


body.easyadmin-mobile-sidebar-visible .main-sidebar {
    left: 0;
    position: fixed;
}

.btn-primary, .badge-primary {
    color: var(--link-hover-color) !important;
    border-color: var(--link-hover-color) !important;
}

.btn-secondary, .badge-secondary {
    color: var(--deprecated-text-color);
    boder-color: var(--deprecated-text-color);
}

.badge-danger, label-danger, text-danger {
    color: #cd3c66 !important;

}
.popover {
    border: var(--border-width) solid var(--border-color);
    border-radius: .25rem;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.modal-content, .popover-body, .popover {
    background: var(--header-bottom-background); /*var(--main-sidebar-bg);*/
    color: var(--text-color);

}

.modal-header, .popover-header, #modal-filters .modal-header {
    color: var(--text-color);
    background: var(--header-bottom-background);
}

.modal-backdrop {
    background-color: var(--header-bottom-background);
}

.dropdown-divider{
    border-color:grey;
 padding: .25rem 0;
}
.dropdown-item {
color: silver !important;
}

.dropdown-menu {
color: silver !important;
background-color: var(--header-bottom-background);
}

.dropdown-item:focus, .dropdown-item:hover {
color: silver !important;
background-color: var(--header-bottom-background);
}

.box {
background: var(--header-bottom-background);
margin-right: 25px;

}
/* DataTable */
table.dataTable tbody tr {
    background: none;
}
/* END BLACK THEME */

/* GENERAL */
.content-footer {
    background: none;
}

:root {
    --font-size-base: 0.775rem;
    --font-size-lg: 1rem;
    --font-size-sm: 0.7125rem;
    --main-header-height: 20px;
}

input[type='file'] {
    margin-top: 10px;
}

.header-actions {
    display: flex;
    justify-content: center;
}

.wrapper {
    height: 100vh;
    width: 100%;
    display: grid;
    grid-row-gap: 0px;
    grid-template-columns: var(--sidebar-width) auto;
    grid-template-rows: auto 1fr auto;
    grid-column-gap: 0px;

    grid-template-areas: "header header" "main-content main-content" "footer footer";

}

@media (min-width: 992px) {
    .wrapper {
        grid-template-areas: "header header" "sidebar main-content" "sidebar footer";
    }

}

.main-content {
    grid-area: main-content;
}

.footer {
    grid-area: footer;
}

.form-widget input.form-control, .form-widget select.form-control, .form-widget textarea.form-control {
    max-width: none;
}

.treeview-menu a {
    padding: 3px 5px 3px 11px;
}

.user-details {
    text-align: center;
}

.wrapper {
    margin: 0px;
    /* width:100%;*/
}

.login-wrapper .form-widget input {
    font-size: var(--font-size-base);
    height: 38px;
    line-height: 38px;
}


/*alert*/
.alert .alert-close {
    top: 0px;
}

a, .btn, a:hover .fa {
    transition-duration: 0.4s;
}

a.btn, .btn {
    background: none;
    border: 1px solid;
    border-radius: 1em;
}

a.btn:hover, .btn:hover {
    color: var(--link-color) !important;
    border-color: var(--link-hover-color);
    background: none !important
}

/* LOgin pages*/
.header-logo {
    padding: 30px 10px;
}

/* HEADER NAV*/
.main-header .navbar {
    margin-bottom: 0px;
}

.main-header {
    padding: 15px 10px;
}

.navbar-custom-menu .user-name:hover, .navbar-custom-menu .fa:hover {
    color: var(--link-hover-color) !important;
    transition-duration: 0.4s;
}

.main-sidebar {
    padding: 10px 30px;

}

.login-wrapper {
    color: var(--text-color);
    margin-top: -243px;
}

@media only screen and (max-width: 600px) {
    .login-wrapper {
        margin-top: -165px;
    }
}


.login-wrapper section.content {
    background-color: #36393ec4;
}

.login-wrapper .main-header {
    display: block;
    padding: 25px;
    width: 100%;
    background-color: #1e2125de;
}

/** boootstrap cdn reboot compensation */
fieldset {
    margin: 10px 0;
    padding: 10px 20px 15px;
}

.content-header {
    border-bottom: none;
}

/*var(--border-width) var(--border-style) var(--border-color); */
.content-footer {
    border: none;
}

a:hover, a:hover .fa {
    color: var(--link-hover-color);
    text-decoration: var(--link-hover-decoration);
}

.navbar-custom-menu .user-avatar {
    max-width: unset !important;
}

/* DROP DOWN (From AdminLte3 + custom) */
.img-size-100 {
    width: 100px;
    height: 100px;
}

.img-size-50 {
    width: 50px;
    height: 50px;
}

.img-size-32, .img-size-50, .img-size-64 {
    height: auto;
}

.img-circle {
    border-radius: 50%;
}
/*
@media (min-width: 768px) {
    .dropdown .dropdown-menu {
        display: block;
        opacity: 0;
        -webkit-transition: all 200ms ease-in;
        -moz-transition: all 200ms ease-in;
        -ms-transition: all 200ms ease-in;
        -o-transition: all 200ms ease-in;
        transition: all 200ms ease-in;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
    }
}*/

.dropdown-menu-lg {
    max-width: 300px;
    min-width: 280px;
    padding: 0;
}

.dropdown-menu-lg .dropdown-item {
    padding: .5rem 1rem;
}

.dropdown-menu-right {
    right: 0;
    left: auto;
}

a.dropdown-item:hover {
    background: var(--body-bg);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: .25rem 1rem;
    clear: both;
}

.dropdown-item-title {
    font-size: 1rem;
    margin: 0;
}

.media {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-start;
}

.media-body {
    -ms-flex: 1;
    flex: 1;
}

/** RATING **/
.rate {
    font-weight: 100;
    width: 85px;
    height: 30px;
    position: relative;
    cursor: default;
    user-select: none;
    font-size: 30px !important;
}

.rate-base-layer {
    width: 100%;
    height: 30px;
    overflow: hidden;
    position: absolute;
    top: 0px;
    display: block;
    white-space: nowrap;

}

.rate-select-layer {
    width: 0%;
    height: 30px;
    overflow: hidden;
    position: absolute;
    top: 0px;
    display: block;
    white-space: nowrap;
    color: var(--link-hover-color) !important;
}

.rate-hover-layer {
    width: 70%;
    height: 30px;
    overflow: hidden;
    position: absolute;
    top: 0px;
    display: none;
    white-space: nowrap;
    color: var(--link-hover-color) !important;
}

/** MySEARCH **/
.mySearch {
    width: 100%;
    margin: 10px 0;
    transition-duration: 1s;

}
.mySearch .result {
    transition-duration: 1s;
}
.mySearch .searchbar {
    width: 100%;
    margin-bottom: auto;
    margin-top: auto;
    height: 40px;
    background-color: #353b48;
    border-radius: 30px;
    padding: 5px;

    transition: width 0.4s linear;
}

.mySearch .search_input {
    color: silver;
    border: 0;
    outline: 0;
    background: none;
    line-height: 30px;
    transition: width 0.4s linear;
    font-size:1.25em;
    padding: 0 10px;
    width: 80%;
    caret-color: var(--link-color);
    transition: width 0.4s linear;
}

.mySearch .searchbar_hover_style {
    width: 50px;

}

.mySearch .searchbar_hover_style:hover {
    width: 100% !important;
}

.mySearch .searchbar_hover_style .search_input {
    width: 0px !important;
    display: none;
    caret-color: transparent;
}

.mySearch .searchbar_hover_style:hover > .search_input {
    display: inline;
    padding: 0 10px;
    width: 80% !important;
    caret-color: var(--link-hover-color) !important;
    transition: width 0.4s linear;
}

.mySearch .searchbar_hover_style:hover > .search_icon {
    background: silver;
    color: red;
}

.mySearch .search_icon {
    background: silver;
    color: red;
    height: 30px;
    width: 30px;
    float: right;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    /*color:white;*/
    text-decoration: none;
}



/* CHECKBOXES */
/*Checkboxes styles*/
input[type="checkbox"] { display: none; }

#remember_me {
    display:inline;
}

input[type="checkbox"] + label {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    font: 14px/20px 'Open Sans', Arial, sans-serif;
    color: #ddd;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

input[type="checkbox"] + label:last-child { margin-bottom: 0; }

input[type="checkbox"] + label:before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    border: 1px solid #6cc0e5;
    position: absolute;
    left: 0;
    top: 2px;
    opacity: .6;
    -webkit-transition: all .12s, border-color .08s;
    transition: all .12s, border-color .08s;
}

input[type="checkbox"]:checked + label:before {
    width: 10px;
    top: -7px;
    left: 5px;
    border-radius: 0;
    opacity: 1;
    border-top-color: transparent;
    border-left-color: transparent;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* FlashMessage */
#flash-messages {
    margin-top: 10px;
}

.mini-preview-wrapper {
    z-index: 1000;
}


/* Form select dark theme */
.select2-container--bootstrap .select2-selection--multiple .select2-selection__choice {
    color: auto;
    background: #f5f5f500;
    border: 1px solid #6174d1;
    height: 2em;
    font-size: 1.2em;
}