/* warning color in bootstrap #FCF8E3 !important; */

/*
.alert-danger {
color: #a94442;
background-color: #f2dede;
border-color: #ebccd1;
}
*/

body {
  padding-top:    60px;
  padding-bottom: 40px;
  min-height:   2000px;
}

@media (max-width: 980px) {
  /* Enable use of floated navbar text */
  .navbar-text.pull-right {
    float: none;
    padding-left: 5px;
    padding-right: 5px;
  }
}

#main .container, #main .container-fluid {
    background:white;
}

input:invalid {
  background-color: #F2DEDE;
}

.danger {
  background-color: #F2DEDE;
}

.text-danger {
    color: RED;
}

.text-warning {
  color: #a94442;
}

.text-green {
    color: #5cb85c;
}

.text-darkgreen {
    color: darkgreen;
}

.text-dimgrey {
    color:dimgray;
}

/*  */

.not-done a {
  color:orange !important;
}

.clickable {
  cursor:pointer;
}

#help {
  cursor:pointer;
}

#help-content {
  display:none;
}

.defect {
  color:red !important;
}

/* Utility classes */

.white-background {
    background-color:white;
}

.bright {
  color:red !important;
}

.number {
  text-align:right;
}

.text-right {
  text-align:right;
}

.uppercase {
  text-transform: uppercase;
}

.lowercase {
  text-transform: lowercase;
}

.nowrap {
  white-space: nowrap !important;
}

.display-none {
    display:none;
}

pre.pre-wrap {
  margin:0;
  padding:0;
  border:0;

  white-space: pre-wrap;
  word-wrap: break-word;

  background-color:inherit;
  font-size:inherit;
}

.border-left
{
  border-left:1px solid silver;
}

.border-left-dashed
{
  border-left:1px dashed silver;
}

.border-left-dotted
{
  border-left:1px dotted silver;
}

.bd-ls-rd
{
    border-left:1px solid silver;
    border-right:1px dashed silver;
}

.border-right
{
  border-right:1px solid silver;
}

tr.border-top th, tr.border-top td, .border-top
{
  border-top:2px solid silver;
}

tr.border-bottom th, tr.border-bottom td, .border-bottom
{
  border-bottom:2px solid silver;
}

.bg-highlight,
.bg-highlight th,
.bg-highlight td {
    background-color: #fcf8e3;
}

.bg-highlight-strong,
.bg-highlight-strong th,
.bg-highlight-strong td {
    background-color: #f6eaac;
}

/* iDeliver specific Utility Classes */

.sold-out {
  color:red;
  font-weight:bold;
}

.sold-none {
  color:#0000FF; /* BLUE */
  font-weight:bold;
}

.no-return {
    font-style:italic;
}

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

table .alert-container .alert {
  margin:0;
}

div.row.dashboard h3 {
  border-bottom:1px solid grey;
}

dl.anchors h4 {
  margin-bottom:0;
}

dl.anchors dt {
  margin-bottom:5px;
}

dl.anchors dd {
  margin-bottom:20px;
}

/* Printing related */

@media print {

  .no-print, .no-print *
  {
    display: none !important;
  }

  /* Don't show the URL of Anchors when printing */
  a[href]:after {
    content: none !important;
  }
}


/*  OVERRIDES */

/*** Bootstrap Overrides */

a.dropdown-toggle {
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.dropdown-menu .dropdown-header {
  font-size:14px;
  font-style:italic;
}

.dropdown-menu .dropdown-header.menu {
  font-size:14px;
  font-style:italic;
  padding: 3px 0;
}

.dropdown-menu .submenu a {
  padding-left:30px;
}

.dropdown-menu .submenu.divider {
  margin: 2px 20px;
}

/*** Modal Dialog Box backgrounds

 Snarfed from: https://jsfiddle.net/tunom37u/4/

 Required by the runsheet section editing.

 */

.modal-mask {
  position: fixed;
  z-index: 9998;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .5);
  display: table;
  transition: opacity .3s ease;
}

.modal-wrapper {
  display: table-cell;
  vertical-align: middle;
}

/*** Run Sections */

.panel-heading {
    cursor:grab;
}

.panel-heading h6 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-body.run-section {
    padding: 8px;
    padding-top: 4px;
    overflow: hidden;
    max-height: 86px;
    min-height: 86px;
}

.panel-body.run-section .detail {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.panel.panel-success.highlight {
    border: 1px solid darkgreen;
}

.panel.panel-info.highlight {
    border: 1px solid darkblue;
}

.panel.highlight .panel-heading h6,
.panel.highlight .panel-body.run-section {
    font-weight:bold;
}

.panel-heading .topleft {
  position: absolute;
  top: 0px;
  left: 8px;
}

.panel-heading .topright {
  position: absolute;
  top: 1px;
  right: 4px;
}

tr.address-section.highlight .sequence-no,
tr.address-section.highlight .caption,
tr.delivery-section.highlight .sequence-no,
tr.delivery-section.highlight .caption
{
    font-weight:bold;
}

/* Following two need to match the info and success colours of bootstrap */

tr.address-section .caption {
    background-color:#dff0d8;
}

tr.delivery-section .caption {
    background-color:#d9edf7;
}

table.run-section th {
    cursor:pointer;
}

th.text-left.sort-asc:after { content: '\0000a0\0025B3';}
th.text-left.sort-dsc:after { content: '\0000a0\0025BD'; }

th.text-right.sort-asc:before { content: '\0025B3\0000a0'; }
th.text-right.sort-dsc:before { content: '\0025BD\0000a0'; }

div.tags span.remove-tag {
    margin-right: 3px;
    color:silver;
    cursor:pointer;
}

div.tags span.tag.badge {
    cursor:default;
    margin-right:6px;
    margin-bottom:3px;
}

div.tags input.form-control.new-tag {
    width:inherit;
    display:inline-block;
    text-transform: uppercase;
}

/***  the individual sections a bit more space.*/

.rs-col:not(:first-child),.rs-col:not(:last-child) {
  padding-right:3px;
  padding-left:3px;
}

.rs-col .panel.panel-info,
.rs-col .panel.panel-success {
  margin-bottom: 6px;
}

.rs-col .display-order {

}

/*** Datepicker Overrides */

input.datepicker {
  padding: 6px 12px;
}

div.datepicker {
  z-index:1050 !important;
}

/*** Validity Overides */

.validity-tooltip {
  /* make it show up over modal dialog boxes*/
  z-index:10000;
}

/*** sortable styles for html4Sortable */
.sortable-placeholder {
  border: 1px dashed #CCC;
  background: none;
}

.short {
    margin-bottom: 0;
}

/*** A generic styles for the weekly view

  Assumes that it is being used along side a bootstrap
  :table.table.table-striped.

*/

.week-view {
    width: auto;
}

.table.week-view>tbody>tr>td {
    padding: 6px;
}

/*** Allocations */

.allocations .autosize-sibling {
  padding-top:10px !important;
}

.allocations .autosize {
  width:20px;
  min-width:20px;
  padding-right:8px;
  text-align:right;
}

.returns .autosize {
  width:50px;
  min-width:50px;
  padding-right:8px;
  text-align:right;
}

.delivery-fees .autosize {
  width:50px;
  min-width:50px;
  padding-right:8px;
  text-align:right;
}

.allocations .allocation-caption,
.returns     .allocation-caption {
  padding-right:14px !important;
  text-align:right;
}

.allocations-summary .allocation-caption {
    text-align:right;
}

/*** Subscription Ranks */

.rank-1, .rank-3, .rank-5, .rank-7, .rank-9, .rank-11, .rank-13  {
  /* leave it to be white */
  /* background-color: #fcf8e3; */
  /* border-color: #bce8f1; */
}

.rank-2, .rank-4, .rank-6, .rank-8, .rank-9, .rank-10, .rank-12, .rank-14 {
  background-color: #fcf8e3; /* light yellow */
  /* light blue background-color: #d9edf7; */
  /* border-color: #faebcc; */
}

/*** Styles for the Subagent Supply Forms */

div.retailer-docket h3 {
  margin-top:    40px;
  border-bottom: 2px solid black;
}

div.retailer-docket th,
div.retailer-docket td {
  padding: 4px 8px;
}

div.retailer-docket tr.header th {
  text-align:right;
  vertical-align:top;
}

div.retailer-docket tr.publication-header th {
  border-bottom:1px solid black;
}

div.retailer-docket tr.publication th,
div.retailer-docket tr.publication td
{
  border-bottom:1px solid silver;
}

/* Overrides for Select2 to try and make it behave properly when resizing, apparently it only works in Bootstrap3. */

.select2-container {
    width: 100% !important;
}
