/*
.field_with_errors {
  padding: 2px;
  background-color: red;
  display: table;
}
*/

body {
  margin-bottom: 30px;
  overflow: scroll;
  padding-top: 80px; 
}

/*------------------------------------------------------------------
header
*/

.page-header{
  margin: 20px 0 10px;
  padding-bottom: 0;
}

.page-header h1{
  font-size: 26px;
  margin: 0;
}

#messages .bs-callout {
  margin-top: 20px;
  margin-bottom: 10px;
}

/*------------------------------------------------------------------
navbar
*/
.navbar {
  border-top: 3px solid #EC602F;
}

/*------------------------------------------------------------------
Panel
*/

.panel-heading a.btn.pull-right {
  margin: -8px -11px 0 0;
}
.panel-heading a.btn.btn-sm.pull-right {
  margin: -6px -11px 0 0;
}
.panel-heading a.btn.btn-xs.pull-right {
  margin: -3px -9px 0 0;
}

.panel .table td {
  padding-top: 10px;
}

.panel .table.table-condensed td {
  padding-top: 6px;
}


/*------------------------------------------------------------------
Diverse
*/

.m10 {
  margin: 10px;
}

.ml10 {
  margin-left: 10px;
}
.mt10 {
  margin-top: 10px;
}

.mb15 {
  margin-bottom: 15px;
}

.numeric {
  text-align:right;
}

.center {
  text-align: center;
}

.navtext{
  text-transform: uppercase;
  font-size: 13px;
  padding: 0 15px;
  color: #999;
}

.in .well{
  margin-bottom: 0;
  min-height: 0;
}

.well h3,
.well h4 {
  margin-bottom: 0;
  text-align: center;
}

/*------------------------------------------------------------------
Lable
*/
.label-block {
    display: block;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}


/*------------------------------------------------------------------
Table
*/

.table thead > tr > th, 
.table tbody > tr > th, 
.table tfoot > tr > th, 
.table thead > tr > td, 
.table tbody > tr > td, 
.table tfoot > tr > td,
.table thead > tr > th.vertical, 
.table tbody > tr > th.vertical, 
.table tfoot > tr > th.vertical, 
.table thead > tr > td.vertical, 
.table tbody > tr > td.vertical, 
.table tfoot > tr > td.vertical {
  vertical-align: middle;
}

td.negative {
    color: #FF0000 !important;
}
td.negative a {
    color: #FF0000 !important;
}
td.zero {
    color: #808080 !important;
}
td.zero a {
    color: #808080 !important;
}
table#stats td.selected {
    background: url("/images/icons/zoom_out.png") no-repeat scroll 4px 4px #EEEEEE;
}
table#stats td.loading {
    background: url("/images/loading.gif") no-repeat scroll 4px 4px #EEEEEE;
}

/*------------------------------------------------------------------
Tablesorter
*/

table .header {
    cursor: pointer;
}
table .header:after {
    border-color: #000000 transparent;
    border-style: solid;
    border-width: 0 4px 4px;
    content: "";
    float: right;
    margin-top: 7px;
    visibility: hidden;
}
table .headerSortUp, table .headerSortDown {
    background-color: #F7F7F9;
    background-color: #fcfcfc;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
}
table .header:hover:after {
    visibility: visible;
}
table .headerSortDown:after, table .headerSortDown:hover:after {
    opacity: 0.6;
    visibility: visible;
}
table .headerSortUp:after {
    border-color: #000000 transparent -moz-use-text-color;
    border-style: solid solid none;
    border-width: 4px 4px medium;
    box-shadow: none;
    opacity: 0.6;
    visibility: visible;
}

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

.form-inline .form-divider {
  border-bottom: 1px solid #eee;
  margin: 5px 0 15px 0;
}

.form-inline .form-group {
  margin-bottom: 15px;
}

.form-inline .bs-callout {
  margin: 5px 0;
}

.form-inline label {
  color: #666;
}

.input-group-btn{
  width: auto;
}
td .input-group{
  float: right;
}

/*------------------------------------------------------------------
Tabs
*/
.ui-widget,
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button {
  font-family: sans-serif,'Helvetica Neue',Arial,'Liberation Sans';
  font-size: 1em;
}

.ui-widget a,
.ui-widget a:active,
.ui-widget a:hover {
    color: #428BCA;
    text-decoration: none;
}

.ui-widget a.btn {
  color: #fff;
}

.ui-widget a.btn.btn-default {
  color: #333;
}

.ui-tabs .ui-tabs-panel {
    padding: 10px;
}

.ui-datepicker .ui-datepicker-title select {
    font-size: 13px;
}

/*------------------------------------------------------------------
#no-more-tables
*/
#no-more-tables form {
  margin-bottom: 0;
}

/*------------------------------------------------------------------
Label
*/
.label {
  font-weight: normal;
  font-size: 12px;
  padding: 3px 6px;
}

/*
 * Callouts
 *
 * Not quite alerts, but custom and helpful notes for folks reading the docs.
 * Requires a base and modifier class.
 */

/* Common styles for all types */
.bs-callout {
  margin: 20px 0;
  padding: 20px;
  border-left: 3px solid #eee;
}
.bs-callout h4 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 18px;
  font-weight: 500;
}
.bs-callout p:last-child {
  margin-bottom: 0;
}

/* Variations */
.bs-callout-danger {
  background-color: #fdf7f7;
  border-color: #eed3d7;
}
.bs-callout-danger h4 {
  color: #b94a48;
}
.bs-callout-warning {
  background-color: #faf8f0;
  border-color: #faebcc;
}
.bs-callout-warning h4 {
  color: #c09853;
}
.bs-callout-info {
  background-color: #f4f8fa;
  border-color: #bce8f1;
}
.bs-callout-info h4 {
  color: #3a87ad;
}

/*------------------------------------------------------------------
Buttons
*/

.btn-inverse.active,
.btn-old.active {
  color: rgba(255, 255, 255, 0.75);
}

.btn-inverse {
  color: #ffffff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  background-color: #363636;
  *background-color: #222222;
  background-image: -moz-linear-gradient(top, #444444, #222222);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#444444), to(#222222));
  background-image: -webkit-linear-gradient(top, #444444, #222222);
  background-image: -o-linear-gradient(top, #444444, #222222);
  background-image: linear-gradient(to bottom, #444444, #222222);
  background-repeat: repeat-x;
  border-color: #222222 #222222 #000000;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff444444', endColorstr='#ff222222', GradientType=0);
  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}

.btn-inverse:hover,
.btn-inverse:focus,
.btn-inverse:active,
.btn-inverse.active,
.btn-inverse.disabled,
.btn-inverse[disabled] {
  color: #ffffff;
  background-color: #222222;
  *background-color: #151515;
}

.btn-inverse:active,
.btn-inverse.active {
  background-color: #080808 \9;
}

.btn-old {
  color: #333333;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
  background-color: #f5f5f5;
  *background-color: #e6e6e6;
  background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
  background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
  background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
  background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
  background-repeat: repeat-x;
  border: 1px solid #cccccc;
  *border: 0;
  border-color: #e6e6e6 #e6e6e6 #bfbfbf;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  border-bottom-color: #b3b3b3;
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  *zoom: 1;
  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
     -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
          box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}         
          
.btn-old:hover, .btn-old:focus, .btn-old:active, .btn-old.active, .btn-old.disabled, .btn-old[disabled] {
  color: #333333;
  background-color: #e6e6e6;
  *background-color: #d9d9d9;
}
.btn-old:active,
.btn-old.active {
  background-color: #cccccc \9;
}

.btn-old:hover,
.btn-old:focus {
  color: #333333;
  text-decoration: none;
  background-position: 0 -15px;
  -webkit-transition: background-position 0.1s linear;
     -moz-transition: background-position 0.1s linear;
       -o-transition: background-position 0.1s linear;
          transition: background-position 0.1s linear;
}

.btn-old:focus {
  outline: thin dotted #333;
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}


/* Responsive design */

@media (min-width: 1200px) {

}

/* Desktop
------------------------- */
@media (max-width: 980px) {
  .page-header,
  #messages .bs-callout {
    margin-top: 10px;
  }
  body { 
    padding-top: 0px; 
  }
}

/* Tablet to desktop
------------------------- */
@media (min-width: 768px) and (max-width: 979px) {

}

/* Tablet
------------------------- */
@media (max-width: 767px) {

}

@media (min-width: 767px) {

}

@media (max-width: 480px) {

}

@media (min-width: 481px) {

}

@media only screen and (max-width: 979px) {
  
  #no-more-tables .btn-block,
  #no-more-tables .label-block  {
    max-width: 100px;
  }
  
  /* Force table to not be like tables anymore */
  #no-more-tables table,
  #no-more-tables thead,
  #no-more-tables tbody,
  #no-more-tables th,
  #no-more-tables td,
  #no-more-tables tr {
    display: block;
  }
 
  /* Hide table headers (but not display: none;, for accessibility) */
  #no-more-tables thead tr,
  #no-more-tables tbody tr.nd,
  #no-more-tables tbody td.nd {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
 
  #no-more-tables tr { border: 1px solid #ccc; }
 
  #no-more-tables td {
    /* Behave like a "row" */
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 45%;
    white-space: normal;
    text-align:left;
  }
 
  #no-more-tables td:before {
    /* Now like a table header */
    position: absolute;
    /* Top/left values mimic padding */
    top: 8px;
    left: 6px;
    width: 50%;
    padding-right: 10px;
    white-space: nowrap;
    text-align:left;
    font-weight: bold;
    display: block;
  }
  
  #no-more-tables form td:before {
    line-height: 35px;
  }

 
  /*
  Label the data
  */
  #no-more-tables td:before { 
    content: attr(data-title); 
  }
  
  #no-more-tables.newrow td {
    /* Behave like a "row" */
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 10px;
    white-space: normal;
    text-align:left;
  }
  
  #no-more-tables.newrow td:before {
    /* Now like a table header */
    position: static;
    width: 95%;
    white-space: nowrap;
    text-align:left;
    font-weight: bold;
    display: block;
  }
  
}