/* General */
.page-header {
    padding-top: 38px;
}

.cursor-disabled {
    cursor: not-allowed;
}

/* Override shadow settings */
.panel, body .container .well, body .container-fluid .well,
body .container .jumbotron, body .container-fluid .jumbotron {
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    -ms-box-shadow: none;
    -o-box-shadow: none;
    border: none;
}

/* fixing a flicker on the nav fixed header */
body > .navbar-fixed-top {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}


/* ============ */
/* === LOGO === */
/* ============ */

/* shown on the login page and in the header */
.logo {
    display: block;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.5em;
    text-align: center;
}

.logo img {
  max-height: 40px;
}

.logo a {
    color: inherit;
}

.logo a:hover,
.logo a:focus {
    text-decoration: none;
}

.logo sup.badge {
    background-color: rgb(255,0,0);
}

/* custom logo styles in the header */
.navbar-header .logo {
    padding-right: 15px;
}

/* ========================= */
/* === LOGIN PAGE / FORM === */
/* ========================= */

/* custom styles for logo on login page */
body > .login .logo {
    padding-bottom: 55px;
    font-size: 30px;
    color: #009688;
    font-weight: 400;
}

.form-signin {
    max-width: 330px;
    padding: 15px;
    margin: 0 auto;
    /* initially hidden to fix a focus bug */
    display: none;
}

.login  .form-signin-heading {
  text-align: center;
  margin-bottom: 30px;
}

.login .login-form-division {
  width: 100%;
  height: 13px;
  border-bottom: 1px solid black;
  text-align: center;
}

.login .login-form-division .login-form-division-text {
  font-size: 18px; 
  background-color: #eeeeee; 
  padding: 0 10px;
}

.login  .form-signin-heading {
  text-align: center;
}

.form-signin .checkbox {
    margin-bottom: 10px;
}
.form-signin .checkbox {
    font-weight: normal;
}
.form-signin .form-control {
    position: relative;
    height: auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 10px;
    font-size: 16px;
}
.form-signin .form-control:focus {
    z-index: 2;
}
.form-signin input[type="text"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* ===================== */
/* === LOGIN LOADER  === */
/* ===================== */
.login .loader {
    display: table;
    width: 100%;
    height: 350px;
}

.login .loader h1 {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    font-size: 72px;
}

/* File input field */
form.job-import input#filename {
    padding: 5px;
}

input[readonly] {
    background-color: white !important;
    cursor: text !important;
}

/* Scheduling */
ul.scheduling-navbar {
    list-style-type: none;
    padding: 0px;
    margin: 0px;
    margin-bottom: 20px;
    float: right;
    clear: all;
}
ul.scheduling-navbar li {
    display: inline-block;
}

@media (max-device-width: 1400px) {
  .dropdown-toggle.truncate-username {
    max-width: 120px;
    text-overflow: ellipsis;
    overflow: hidden;
  }
}

legend {
    padding-top: 20px;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 40px;
    color: #666;
}

.table.matching {
    font-size: 13px;
}

/* ===================== */
/* === LOCKOUT PAGE  === */
/* ===================== */
.lockout {
  padding: 15px;
}

/* ====================== */
/* === RESOURCE SETUP === */
/* ====================== */

.resource-table {
  background-color: rgba(0, 0, 0, 0);
  margin: 0;
}

.table .resource-table {
  background-color: rgba(0, 0, 0, 0);
}

.bench-cell {
  width: 20%;
  border-right-style: solid;
  border-right-width: 1px;
  border-right-color: rgb(221, 221, 221);
}
.geaerbox-cell {
  width: 50%;
}
.coolerloop-cell {
  width: 30%;
  border-left-style: solid;
  border-left-width: 1px;
  border-left-color: rgb(221, 221, 221);
}
.scheduling-status-cell {
  width: 10%;
  border-left-style: solid;
  border-left-width: 1px;
  border-left-color: rgb(221, 221, 221);
}
.resource-table>tbody>tr>td {
  margin: 0;
  padding: 0;
  border-top: none;
  width: 50%;
}
.resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.resource-list li {
  display: inline-block;
}


/* =================== */
/* === PANEL FIXES === */
/* =================== */

.panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.panel-header>h1,
.panel-header>.h1,
.panel-header>h2,
.panel-header>.h2,
.panel-header>h3,
.panel-header>.h3 {
  margin-top: 0;
  margin-bottom: 0;
}

/* ===================== */
/* === JOB LIST PAGE === */
/* ===================== */

/* loader shown before the js runs */
.job-list-loader,
.eventlog-loader {
    display: table;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 61px);
}
.job-list-loader h1,
.eventlog-loader h1 {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    font-size: 72px;
}

/* Left-align the col header buttons */
table.job-list th a {
    text-align: left;
    padding-left: 5px;
    margin-left: -5px;
}

/* Hiding the delete button header as it is not useful or clickable */
table.job-list th:last-child a {
    display: none;
}

/* FIXME: for all the elements below, choose a sensible and consistent
set of colours */
.label-MRT {
    background: #66aacc;
}
.label-TMD {
    background: #dd5555;
}
/* split jobs have the TMD label faded out */
.label-TMD.split {
    opacity: 0.4;
}
.label-forecast {
    background: gray;
}
.label-pending {
    background: #dd5555;
}
.label-excluded {
    background: #dd5555;
}
.label-actual_pinned {
    background: orange;
}
.label-actual_incomplete_data {
    background: #555;
}
.label-actual_complete_data {
    background: #4caf50;
}
.label-table-matching, .label-formula-matching, .label-plant {
    background: transparent;
    color: gray;
}
.label-no-matching {
    background: #dd5555;
}

.btn-inline, .btn-delete, .btn-header, .btn-alert_details {
    margin: 0;
}
.alert_details {
    background-color: #f46356;
    padding: 10px;
}

.filter_completed {
    margin-right: 30px;
}

.filter_completed label.control-label {
    font-size: 14px;
    margin: 0px;
    margin-right: 10px;
}

/* Loader is visible, checkbox hidden until JS loaded */
.filter_completed .loader {
    display: inline-block;
    width: 92px;
}

.filter_completed input {
    display: none;
}

form#form-filter .form-group {
    margin-top: 10px;
}

/**
 * Clear buttton on the search field on the job list page. Tried to do this
 * with html5 search field but that doesnt play nice with bootstrap
 */
form#form-filter input[name="search_query"] + .glyphicon-remove-circle {
    /* hidden by default */
    display: none;
    position: absolute;
    right: 5px;
    top: 0;
    bottom: 0;
    height: 14px;
    margin: auto;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.5;
}


/* ============================= */
/* === JOB IMPORT PAGE FIXES === */
/* ============================= */

body.job-import {
  background-color: #ffffff !important;
}

body.job-import h2 {
  margin-top: 0px;
  text-align: center;
}

/* hide the Choose File button until after the js has made it look better */
form.job-import input[type="file"],
form.job-import .form-group {
    display: none;
}

form.job-import input[type="text"] {
  width: 50px;
  padding-left: 6px;
}
form.job-import label {
  color: #333;
}

/* this is the spinner we show before revealing the upload button */
form.job-import .loader {
    height: 56px;
    padding-top: 15px;
    padding-left: 50px;
}
/* ================================= */
/* === JOB IMPORT ERROR MESSAGES === */
/* ================================= */

.csv-import-message.panel {
    background: transparent;
    margin-bottom: 0px;
}

.csv-import-message.panel .panel-heading {
    background-color: transparent;
    padding: 0px;
}

.csv-import-message.panel .panel-title {
    font-size: 14px;
}

/* ================================================ */
/* === RESOURCE OCCUPANCIES / FACILITY CALENDAR === */
/* ======= these pages are almost identical ======= */
/* ================================================ */

form.resource-occupancies .form-group,
form.facility-calendar .form-group {
    height: 50px;
    margin-top: 0px;
}

form.resource-occupancies textarea#id_note {
    height: 100px;
}

/**
 * For some reason, the typeahead selects mean the height of the following row
 * is not correct - this fixes that
 */
form.resource-occupancies .form-group:nth-of-type(5) {
    margin-top: 7px;
}

/* ====================================================== */
/* ============= DELETE CONFIRMATION DIALOG ============= */
/* = used on job list, resource occ., facility calendar = */
/* ====================================================== */
.table-delete-confirm.bootbox table > tbody > tr > th {
    width: 140px;
}


/* ================================================= */
/* === ADVANCED SEARCH PAGES - JOB LIST AND LOGS === */
/* ================================================= */

.advanced-search-form  {
  background-color: #51928c;
  margin: 0px;
  overflow: hidden;
}

.advanced-search-form .form-group {
  margin: 0px;
  overflow: auto;
}

/**
 * We have to reset / unset a lot of the styling for the form elements from
 * the material theme because we are on a green background and dont need the
 * focus state stuff
 */
.advanced-search-form input.form-control,
.advanced-search-form select.form-control,
.advanced-search-form .form-group.is-focused input.form-control,
.advanced-search-form .form-group.is-focused select.form-control {
  border: none;
  background: #ffffff;
  box-shadow: none;
  color: #555;
  padding-left: 10px;
  padding-right: 10px;
  height: 28px;
  font-size: 14px;
  padding-top: 0px;
  padding-bottom: 0px;
}

.advanced-search-form select.form-control {
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
  appearance: menulist;
}

.advanced-search-form .form-group label.control-label,
.advanced-search-form .form-group.is-focused label.control-label {
  color: #000000;
  margin: 0px;
  padding: 0px;
  line-height: 28px;
}

.advanced-search-form .buttonRow {
  margin-right: 0px;
}

.advanced-search-form .btn {
  min-width: 113px;
  width: 100%;
}


/* ================================================= */
/* ===           MATCHING RULES PAGES            === */
/* ================================================= */

.regex-tooltip-text {
  cursor: pointer;
  text-decoration-skip-ink: none;
}

.regex-tooltip-text + .tooltip {
  background-color: #9e9e9e;
  padding: 0;

}

.regex-tooltip-text + .tooltip > .tooltip-inner {
  background-color: #9e9e9e;
  font-weight: bold;
  text-align: left;
}


/* ================================================= */
/* ===                 MODALS                    === */
/* ================================================= */


.modal-dialog h4,
.modal-date-hint {
    text-align: center;
}
