/* AdminLTE fixes */
@media (max-width: 767px) {
    .main-header .navbar .dropdown-menu li a {
        color: #000 !important;
    }

    .main-header .navbar .dropdown-menu li a:hover {
        color: #fff !important;
    }

    .skin-black .main-header .navbar .dropdown-menu li a:hover,
    .skin-black-light .main-header .navbar .dropdown-menu li a:hover {
        color: #000 !important;
    }
}

html, body {
    height: auto;
}

body {
    background: none;
}

#container {
    width: 100%;
    background: none;
}

#content {
    padding: 0 25px 25px;
}

#menu {
    padding: 10px 10px 10px 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #aaa;
    background-color: #fff;
}

#menu li {
    margin-right: 15px;
    display: inline;
}

#content h1 {
    padding: 0;
    background: transparent;
    margin-bottom: 20px;
    font-size: 140%;
    color: #000;
}

.navbar-nav > .user-menu > .dropdown-menu > li.user-header {
    height: auto;
}

/* tables */
table.table-list-admin thead th, table.table-list-admin tfoot th {
    font-weight: bold;
    background: #ddd;
}

table.table-list-admin thead th.no-sort {
    padding-right: 8px;
}

td, th {
    padding: 7px;
}

th {
    font-weight: bold;
}

td.shrink, th.shrink {
    width: 1px;
    white-space: nowrap;
}

table img.admin-list {
    max-width: 32px;
    max-height: 32px;
    margin-right: 10px;
}

/* Modal */
.modal-dialog .modal-footer button.pull-right {
    margin-left: 8px;
}

.modal a {
    color: #fff;
}

.modal a:hover {
    color: #ccc;
}

/* Footer */
#footer {
    clear: both;
    padding: 25px;
    margin-top: 0;
    height: auto;
    font-family: arial, sans-serif;
    font-size: 80%;
    float: right;
    color: #666;
    background: none;
}

#footer img {
    vertical-align: middle;
}

#sf_admin_container fieldset h2 {
    font-size: 110%;
    font-family: arial, sans-serif;
    font-style: italic;
}

.sf_admin_form_field_logo div div {
    margin-left: 120px;
}

#sf_admin_container .sf_admin_form_field_logo div div label {
    display: inline;
    float: none;
}

#header h1 {
    width: auto;
}

.checkbox label, .radio label {
    padding-left: 0;
}

/* Forms */

.form-inline .checkbox, .form-inline .radio {
    padding-right: 10px;
}

.checkbox label, .radio label {
    padding-left: 0;
}

.control-label.required:after {
    content: " *";
    color: red;
}

form .form-group .chosen-container input {
    padding-left: 10px !important;
}

textarea.form-control {
    resize: vertical;
    height: 250px;
    max-height: 500px;
}

/* Flash messages */
.row-flash {
    padding-top: 12px;
    margin-bottom: 15px;
}

.row-flash .alert {
    margin-bottom: 10px;
}

/* AdminLTE Boxes */

.box .box-header .pull-right {
    margin-left: 10px;
}

.box .box-header .pull-right {
    margin-left: 10px;
}

.box-header h3.box-title {
    height: 32px;
    line-height: 32px;
}

.box-show .row-attribute {
    padding: 10px 0;
    margin-right: 3px;
}

.box-show .row-attribute:nth-child(odd) {
    background-color: #f9f9f9;
}

.box-show .row-attribute div:first-of-type {
    font-weight: bold;
}

.box.box-users .callout {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

/* Entity show */
dl.entity dt, dl.entity dd {
    padding: 12px 0;
    min-height: 44px;
}

dl.entity dt {
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

dl.entity dt:after {
    content: " :";

}

img.admin-show {
    max-height: 250px;
}

/* bootstrap sm md lg for entity show */
@media (min-width: 768px) {
    dl.entity dt {
        width: 30%;
        text-align: right;
        float: left;
        padding-right: 10px;
        clear: both;
    }

    dl.entity dd {
        padding-left: 30%;
    }
}

dl.entity dd:nth-of-type(2n) {
    background-color: #f9f9f9;
}

/* Ellipsis */
.ellipsis, .box h3.box-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

td.ellipsis {
    max-width: 0;
}

/* Modal spinner */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(120, 120, 120, 0.75);
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
}

.loader {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #333;
    width: 90px;
    height: 90px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    position: fixed;
    top: 45%;
    left: 50%;
}

/* spin animation */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Dropzone */
.dropzone {
    border-style: dashed;
}

.dropzone .dz-message {
    margin: 3em 0;
}

/* Misc */
.btn i {
    margin-right: 2px;
}

.checkbox label, .radio label {
    padding-left: 0;
}

.color-preview {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 0.5em;
}

.text-gray {
    color: #eee !important;
}

/* Sidebar (LeftMenu) */
.main-sidebar .user-panel {
    padding: 10px 5px
}

.main-sidebar .user-panel .user-infos {
    padding: 5px 5px 0 58px;
    line-height: 1;
    color: #fff;
    font-weight: 600;
}

.main-sidebar .user-panel .user-infos p.whos-online {
    padding-top: 8px;
}
.main-sidebar .user-panel .user-infos p.whos-online small {
    font-size: 10px;
}

/* Callout */
.box .box-header .pull-right .callout {
    position: relative;
    top: 2px;
    display: inline-block;
    padding: 5px 10px 5px 10px;
}
.box .box-header .pull-right .callout i.fa {
    margin-right: 2px;
}

/* PrettyFile hack to show validation */
div.prettyfile input[type=file] {
    width: 1px;
    height: 1px;
    position: relative;
    left: 10px;
    top: 10px;
    display: block !important;
}

.strength-meter {
    display: flex;
    gap: 5px;
    height: 5px;
    margin-bottom: 15px;
}

.strength-meter-fill {
    flex: 1;
    background: transparent;
    transition: background 0.5s ease-in-out;
    border-radius: 3px;
}

.password-requirements ul {
    list-style-type: none;
    padding-left: 0;
}

.password-requirements li {
    margin-bottom: 5px;
}

.password-requirements .iCheck-helper {
    margin-bottom: 5px;
}

.password-requirements ul li {
    margin: 6px 0 6px 0;
}

.login-box .strength-meter {
    width: auto;
}

.strength-meter:not(.login-box .strength-meter) {
    width: 25%;
}
