
/* --------- navbar --------- */

.navbar-brand {
    padding-right: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.navbar-brand > img {
    object-fit: contain;
    max-height: 100%;
    height: 100%;
}

.navbar {
    border-bottom: 1px solid #ddd;
    margin-bottom: 0;
    background-color: white;
}

.nav a {
    color: red;
}

.nav > li.active,
.nav > li > a:hover,
.nav .open > a,
.nav .open > a:hover,
.nav .open > a:focus {
    background-color: red;
    color: white;
}

.nav > li.active > a,
.nav > li > a:hover {
    color: white;
}

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover {
    background-color: red;
}

/* ajax spinner */

#ajax-spinner {
    position: fixed;
    top: 25px; /* half of navbar height */
    bottom: 0px;
    left: 0px;
    right: 0px;
    z-index: 100;
    width: 100%;
    height: 100%;
    background: url("../images/spinner.gif") no-repeat scroll center center #808080;
    opacity: 0.6;
}

/* homepage */

.jumbotron {
    margin-top: 30px;
}

/* --------- forms --------- */

input {
    padding-left: 12px !important; /* same as select2 */
}

.text-right input {
    text-align: right;
    font-weight: bold;
}

/* --------- tables --------- */

.dataTables_wrapper {
    margin-top: 10px;
}

.dataTables_info {
    line-height: 80px;
    white-space: nowrap;
}

.dataTables_paginate {
    text-align: right;
}

.table tbody > tr > td {
    vertical-align: middle;
}

.table td:first-child {
    min-width: 200px;
    max-width: 300px;
}

.table td:last-child {
    text-align: right
}

.table .btn {
    margin: 1px;
}

.table td .not-processed {
    color: red;
}

/* --------- html5-like input[type=search] clear X icon (removed by bootstrap) --------- */

.clearable {
  background: #fff url(../images/icoX.gif) no-repeat right -10px center;
  border: 1px solid #999;
  padding: 3px 25px 3px 9px; /* Use the same right padding (25) in jQ! */
  border-radius: 3px;
  transition: background 0.4s;
}

.clearable.x {
    background-position: right 10px center; /* (jQ) Show icon */
}

.clearable.onX {
    cursor: pointer; /* (jQ) hover cursor style */
}

/* --------- alert, prompt, confirm ui dialogs --------- */

.ui-widget-overlay.ui-front {
    position: fixed;
    background: #000;
    opacity: .5;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.ui-dialog p {
    font-size: 14px;
    margin-top: 5px;
}

.ui-dialog .form-group {
    margin: 5px 0;
}

.no-close .ui-dialog-titlebar-close {
  display: none;
}

/* --------- flashes --------- */

#flashes {
    margin-top: 20px;
}

#flashes .alert {
    margin-bottom: 0;
}

/* --------- general --------- */

h1 {
    margin: 20px 0;
}

h1 b {
    color: #428bca;
}

.warning {
    color: red;
    font-weight: bold;
    text-align: center;
    border: 1px solid red;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

input, textarea {
    color: black;
}

div.vertical-space-sm {
    min-height: 10px;
}

.spinner {
    display: inline-block;
    opacity: 0;
    width: 0;

    -webkit-transition: opacity 0.25s, width 0.25s;
    -moz-transition: opacity 0.25s, width 0.25s;
    -o-transition: opacity 0.25s, width 0.25s;
    transition: opacity 0.25s, width 0.25s;
}

.has-spinner.active {
    cursor:progress;
}

.has-spinner.active .spinner {
    opacity: 1;
    width: auto; /* This doesn't work, just fix for unkown width elements */
}

.has-spinner.btn-mini.active .spinner {
    width: 10px;
}

.has-spinner.btn-small.active .spinner {
    width: 13px;
}

.has-spinner.btn.active .spinner {
    width: 16px;
}

.has-spinner.btn-large.active .spinner {
    width: 19px;
}

body {
    padding-bottom: 75px;
}

#footer {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;

    border: 1px solid #ddd;
    background-color: rgb(255, 255, 255);
}
