﻿/* Make multiline possible in Bootstrap tooltip */
.tooltip-inner {
    padding: 15px;
    white-space:pre;
    max-width:none;
    text-align: left;
}

.margin-top {
    margin-top: 10px;
}

.flex-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.row.btn-pad {
  margin-right:0;
  margin-left:0;
}
.row.btn-pad > [class*='col-'] {
  padding-right:10px;
  padding-left:0;
}

/* Order Screen CSS */
.delivery-type {
    width: 30%;
}

.delivery-type button:focus,
.delivery-type button:active:focus {
    outline: none;
}


/* ORDER MODAL CSS */

.form-error {
    color: orangered;
    display: none;
}

textarea {
    resize: none;
}

textarea#order-remarks {
    height: 200px;
}

/* these are so the curved right ends match the other form-controls*/
.form-control {
    border-radius: 16px;
}
.form-control#remarks {
    border-radius: 0px 16px 16px 0px;
}

/* so the fucking labels fit in the modal, i hate css */
label, input, .multiselect-selected-text, .form-control#type, .form-control#version, .form-control#remarks {
    font-size: 16px;
}

/* so the tokens look halfway decent */
.tokenfield .token {
    margin-top: 2px;
    margin-bottom: 2px;
    margin-left: -10px;
    margin-right: 20px;
    font-size: 15px;
}

/* exclamation mark */
.order-modal-feedback {
    display: none;
    margin-top: 0px;
    color: dodgerblue;
    font-size: 27px;
}

/* this is to ensure the autocomplete dropdown appears on top of the modal, not behind */
.ui-autocomplete {
    z-index:2000 !important;
    font-size: 16px;
    font-family: "DINMittelschrift", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

-uit-autocomplete:focus {
    background-color: orange;
}

/* END ORDER MODAL CSS */

.header, .header:hover {
    color: white
}

.create-order tbody {
   max-height: 100px;
   overflow: auto;
}

.order-remarks {
    margin-top: 30px;
}

.order-remarks>.nav-tabs>li.active>a, .order-remarks>.nav-tabs>li.active>a:hover, .order-remarks>.nav-tabs>li.active>a:focus {
    background: #f9f9f9;
    border-bottom-color: #f9f9f9;
}

.order-remarks>.tab-content {
    background: #f9f9f9;
}

.order-remarks>.nav-tabs>li>a:hover {
    background: #f9f9f9;
    border-bottom-color: #f9f9f9;
}

.ingest-status, .catalogue{
    table-layout: fixed;
    width: 100%;
}

/* ID Column */
.ingest-status th:first-child {
    width: 15%;
}

/* Type Column */
.ingest-status th:nth-child(4) {
    width: 20%
}

/* Status Column */
.ingest-status th:last-child {
    width: 20%;
}

.ingest-status, .adminpanel, .orderoverview, .orderdetail{
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: normal;
    word-break: normal;
    width: 100%;
}

.orderdetail td {
    font-size: 90%;
}

.orderoverview .nestedtable a :hover{
    background-color: #f2f2f2;
}

.nestedtable-row, .nestedtable-row .col {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nestedtable .col:not(:last-child) {
    border-right: 1px solid #ccc
}

.nestedtable-header {
    border-bottom: 1px solid #ccc
}

.orderoverview thead::after {
    content: none !important
}

.orderoverview tr:nth-of-type(2n+1):hover {
    background-color: #dddddd
}

/* Expanded Order Row*/
.orderoverview tr:nth-of-type(2n+1)[aria-expanded="true"] {
    background-color: #c4c4c4
}

.orderoverview tr:nth-of-type(2n+1)[aria-expanded="true"] .caret {
    border-top: none;
    border-bottom: 4px solid #000000;
}

.orderoverview .orderoverview-cancelled, .orderoverview .orderoverview-cancelled:hover, .orderoverview .orderoverview-cancelled .col {
    background-color: #f16060 !important;
}

.clickable {
    cursor: pointer;
}

/* Studio Column */
.catalogue th:first-child {
    width: 18%;
}

/* ID Column */
.catalogue th:nth-child(2) {
    width: 15%;
}

/* Add to Cart Column */
.catalogue th:last-child {
    width: 10%;
}

.adminpanel th:first-child {
    width: 15%;
}

.adminpanel th:last-child {
    width: 10%;
}

/* Dropdown button*/
.orderoverview th:first-child {
    width: 1%;
}

/* Cancel button*/
.orderoverview th:last-child {
    width: 7%;
}
/* asset detail view */

.status-indicator {
    text-align: center;
    display: inline-block;
    overflow: auto;
    text-overflow: ellipsis;
    color: white;
    border-radius: 25px;
    padding: 0px 5px 0px 5px;
}

.status-indicator.done {
    background-color: #5cb85c;
}

.status-indicator.in-progress {
    background-color: #f0ad4e;
}

.status-indicator.corrupt {
    background-color: #d9534f;
}

.status-indicator.incomplete {
    background-color: #5bc0de;
}

.asset-list {
    list-style-type: none;
}

.asset-list li {
    margin-left: -50px;
}

.asset-list li {
    overflow: no-content;
    text-overflow: ellipsis;
}

.asset-description {
    cursor: pointer;
    border-radius: 5px;
    margin: 5px 0px 5px 0px;
    padding: 3px 5px 3px 5px;
}

.asset-description:hover {
    background-color: #eb7335;
    color: white;
}

.asset-list li.active span.asset-description {
    background-color: #333;
    color: white;
}

/* see what can be removed of the multiselect css */
.multiselect {
    display: block;
    width: 100%;
    height: 38px;
    padding: 6px 20px;
    font-size: 17px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 10px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
    -o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}

.multiselect:hover {
    background-color: white;
    border: 1px solid #ccc;
    cursor: default;
}

/*.dropdown-toggle:focus {
    background-color: black;
}*/

.multiselect:focus {
    background-color: white;
    border-color: #66afe9;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

.multiselect::-moz-placeholder {
    color: #b4b4b4;
    opacity: 1;
}
.multiselect:-ms-input-placeholder {
    color: #b4b4b4;
}
.multiselect::-webkit-input-placeholder {
    color: #b4b4b4;
}
.multiselect[disabled], .multiselect[readonly], fieldset[disabled] .multiselect {
    background-color: #f5f5f5;
    opacity: 1;
}
.multiselect[disabled], fieldset[disabled] .multiselect {
    cursor: not-allowed;
}

a.disabled {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.65;
  filter: alpha(opacity=65);
  -webkit-box-shadow: none;
          box-shadow: none;
}

/* Hacky solution to get all columns in a row to have equal height.*/
.col-height {
    margin-bottom: -99999px;
    padding-bottom: 99999px;
}

/* Because bootstrap supports tables with 4 columns, and tables with 6, but no tables with 5 columns. Digiism.*/
.col-xs-5ths,
.col-sm-5ths,
.col-md-5ths,
.col-lg-5ths {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

.col-xs-5ths {
    width: 20%;
    float: left;
}

@media (min-width: 768px) {
    .col-sm-5ths {
        width: 20%;
        float: left;
    }
}

@media (min-width: 992px) {
    .col-md-5ths {
        width: 20%;
        float: left;
    }
}

@media (min-width: 1200px) {
    .col-lg-5ths {
        width: 20%;
        float: left;
    }
}

.nav > li.tab-settings > a {
    padding: 10px 10px;
}
