/* layout */

body, html { position: absolute; left: 0; right: 0; top: 0; bottom: 0;
             background-color: white; font-family: Arial, Helvetica, sans-serif;
             font-size: 10pt; margin: 0; }
div, ul { margin: 0; padding: 0; }


.logo { position: relative; margin: 0 10px; height: 70px;
        background: white url(/images/logo.png) no-repeat left center; background-size: 219px 23px }
.logo .home { display: block; position: absolute; width: 253px; height: 68px; }
.logo .user { position: absolute; right: 0; bottom: 7px; }
.logo .company { position: absolute; right: 0; top: 16px; }

#menu_bar { margin: 0 10px; background-color: white; }

#body { padding: 20px; }

/* content */

#body h1 small { font-size: 15px }

.table-striped > tbody > tr:nth-of-type(even),
#body tr.odd { background-color: #eeeeee; }
.table-striped > tbody > tr:nth-of-type(odd),
#body tr.even { background-color: white; }

.table-striped > tbody > tr.collapse-child:nth-of-type(even),
#body tr.collapse-child.odd { background-color: #f3f3f3; }
.table-striped > tbody > tr.collapse-child:nth-of-type(even),
#body tr.collapse-child.even { background-color: #f9f9f9; }

.table-striped > tbody > tr.search-result:nth-of-type(even) { background-color: #e4eee4; }
.table-striped > tbody > tr.search-result:nth-of-type(odd) { background-color: #f4fff4; }
.table-striped tr { height: 26px }

tr:hover.clickable-row a { text-decoration: underline; }
tr:hover.clickable-row a.action { text-decoration: none; }
tr:hover.clickable-row td { background-color: rgba(0, 128, 0, 0.02); }
tr.clickable-row a { display: inline-block; width: 100%; }
tr.clickable-row a:after { content: "\200B"; }
tr.clickable-row .clickable-row-no-space a:after { content: '' }

.roundborder { border: 1px solid #ccc; border-radius: 8px; padding: 0px; margin: 0 20px 20px 0;
  background-image: linear-gradient(bottom, rgb(247,247,247) 0%, rgb(255,255,255) 20px);
  background-image: -o-linear-gradient(bottom, rgb(247,247,247) 0%, rgb(255,255,255) 20px);
  background-image: -moz-linear-gradient(bottom, rgb(247,247,247) 0%, rgb(255,255,255) 20px);
  background-image: -webkit-linear-gradient(bottom, rgb(247,247,247) 0%, rgb(255,255,255) 20px);
  background-image: -ms-linear-gradient(bottom, rgb(247,247,247) 0%, rgb(255,255,255) 20px);
}

.roundborder .input-row { height: 38px; clear: both; border-bottom: 1px solid #ccc;
 }

.roundborder .input-row label {
  display: block; float: left; height: 38px; clear: both; width: 100px;
  padding: 0 10px; background-color: #393; color: #fff; line-height: 38px; margin-right: 10px;
  background-image: linear-gradient(top, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.0) 20px);
  background-image: -o-linear-gradient(top, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.0) 20px);
  background-image: -moz-linear-gradient(top, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.0) 20px);
  background-image: -webkit-linear-gradient(top, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.0) 20px);
  background-image: -ms-linear-gradient(top, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.0) 20px);
}
.roundborder .input-row a {
  display: block; float: left; height: 38px; line-height: 38px;
}

.roundborder .input-row:last-of-type { border-bottom: 0; }
.roundborder .input-row:first-of-type label { border-top-left-radius: 6px; }
.roundborder .input-row:last-of-type label { border-bottom-left-radius: 6px; }

.clear { clear: both; }
.clearfix:after { clear: both; content: '.'; display: block; height: 0; visibility: hidden; }
.clearfix { zoom: 1; }

.hidden { display: none;}

a.action { color: black; white-space: nowrap; font-size: 13px; line-height: 1.2em; padding: 2px 4px; background: #eee; border: 1px solid #ccc; border-top-color: #fff; border-left-color: #fff; border-radius: 3px; }
a.action:hover { color: black; background: #f4f4f4; text-decoration: none; border-bottom-color: #aaa; border-right-color: #aaa; }

/* Bootstrap overrides */

div h1 { margin-top: 5px; }
div h2 { margin-top: 0; }
div h1, div h2, div h3, div h4 { color: #339933; }
div h1 { font-size: 2em; }
div h2 { font-size: 1.5em; line-height: 37px; }
div h3 { font-size: 1.17em; line-height: 35px; }
div h4 { font-size: 1.10em; line-height: 28px; }
div.panel-heading h3 { line-height: 1.1; }

a.btn { color: black; }
.btn.btn-primary {
  background-color: #44cc44;
  background-image: -moz-linear-gradient(top,#44cc44,#339933);
  background-image: -webkit-gradient(linear,0 0,0 100%,from(#44cc44),to(#339933));
  background-image: -webkit-linear-gradient(top,#44cc44,#339933);
  background-image: -o-linear-gradient(top,#44cc44,#339933);
  background-image: linear-gradient(to bottom,#44cc44,#339933);
  border-color: #339933 #339933 #226622;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#44cc44',endColorstr='#ff339933',GradientType=0);
}

.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active,
.btn.btn-primary.active,
.btn.btn-primary.disabled,
.btn.btn-primary[disabled] {
  color: #ffffff;
  background-color: #339933;
}

.btn.btn-row-spaced { margin-right: 8px; }
.btn .glyphicon { margin-right: 8px; }

.btn.btn-primary:active,
.btn.btn-primary.active {
  background-color: #226622;
}
.btn.btn-primary,
.btn.btn-danger { color: #fff; }

.btn.btn-secondary { background-color: #eeeeee; border-color: #cccccc; }
.btn.btn-secondary.active {
  color: #ffffff;
  background-color: #44cc44;
  background-image: -moz-linear-gradient(top,#44cc44,#339933);
  background-image: -webkit-gradient(linear,0 0,0 100%,from(#44cc44),to(#339933));
  background-image: -webkit-linear-gradient(top,#44cc44,#339933);
  background-image: -o-linear-gradient(top,#44cc44,#339933);
  background-image: linear-gradient(to bottom,#44cc44,#339933);
  border-color: #339933 #339933 #226622;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#44cc44',endColorstr='#ff339933',GradientType=0);
}

ul.nav-tabs.green li.active a {
  background-color: #44cc44;
  background-image: -moz-linear-gradient(top,#44cc44,#339933);
  background-image: -webkit-gradient(linear,0 0,0 100%,from(#44cc44),to(#339933));
  background-image: -webkit-linear-gradient(top,#44cc44,#339933);
  background-image: -o-linear-gradient(top,#44cc44,#339933);
  background-image: linear-gradient(to bottom,#44cc44,#339933);
  border-color: #339933 #339933 #226622;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#44cc44',endColorstr='#ff339933',GradientType=0);
  color: #ffffff;
}

ul.nav-tabs.green .badge {
  background-color: #fff;
  color: #339933;
}

.nav-pills .active a {
  background-color: #44cc44;
  background-image: -moz-linear-gradient(top,#44cc44,#339933);
  background-image: -webkit-gradient(linear,0 0,0 100%,from(#44cc44),to(#339933));
  background-image: -webkit-linear-gradient(top,#44cc44,#339933);
  background-image: -o-linear-gradient(top,#44cc44,#339933);
  background-image: linear-gradient(to bottom,#44cc44,#339933);
  border-color: #339933 #339933 #226622;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#44cc44',endColorstr='#ff339933',GradientType=0);
}

ul.dropdown-menu>li>a:hover, ul.dropdown-menu>li>a:focus, ul.dropdown-submenu:hover>a, ul.dropdown-submenu:focus>a {
  background-color: #44cc44;
  background-image: -moz-linear-gradient(top,#44cc44,#339933);
  background-image: -webkit-gradient(linear,0 0,0 100%,from(#44cc44),to(#339933));
  background-image: -webkit-linear-gradient(top,#44cc44,#339933);
  background-image: -o-linear-gradient(top,#44cc44,#339933);
  background-image: linear-gradient(to bottom,#44cc44,#339933);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#44cc44',endColorstr='#ff339933',GradientType=0);
}

div.navbar {
  margin-bottom: 0px;

  background-color: #44cc44;
  background-image: -moz-linear-gradient(top,#44cc44,#339933);
  background-image: -webkit-gradient(linear,0 0,0 100%,from(#44cc44),to(#339933));
  background-image: -webkit-linear-gradient(top,#44cc44,#339933);
  background-image: -o-linear-gradient(top,#44cc44,#339933);
  background-image: linear-gradient(to bottom,#44cc44,#339933);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#44cc44',endColorstr='#ff339933',GradientType=0);
}

div.navbar .navbar-nav>li>a {
  color: white;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

div.navbar .navbar-nav>li>a:hover {
  color: white;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}

ul.navbar-nav li.dropdown:hover ul.dropdown-menu{
    display: block;
}
.navbar .dropdown-menu {
 margin-top: 0px;
}
ul.navbar-nav .glyphicon { margin-right: 8px; }

.well .well-header {
  margin: -19px -19px 15px -19px;
  padding: 0 19px;
  border-bottom: 1px solid #ddd;
}

span.label > a { color: #fff }
.alert-validation { background-color: rgba(0, 0, 0, 0.02); }
.alert-validation .alert-link { color: rgba(0, 0, 0, 0.8); }

.alert-danger h1, .alert-danger h2,
.alert-danger h3, .alert-danger h4{ color: rgba(0, 0, 0, 0.7) }
.alert-danger a { color: #822 }

.alert-validation li { margin: 0.2em 0.5em; list-style: none }
.alert-validation svg { margin: 0 0.5em 0 0 }

/* helpers */

.float-left { float: right }
.float-right { float: right }
.text-nowrap { white-space: nowrap;}
.spacer { margin-bottom: 1em }
table .minimal-width { width: 1% }

.spinner.glyphicon { font-size: 2px; margin: 2em 7em 2em 3em; }
.spinner.row { font-size: 2px; margin: 2em auto; }
.spinner {
  color: black;
  font-size: 5px;
  margin: 10em auto;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  position: relative;
  text-indent: -9999em;
  -webkit-animation: load4 1.3s infinite linear;
  animation: load4 1.3s infinite linear;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}
@-webkit-keyframes load4 {
  0%,
  100% { box-shadow: 0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0; }
  12.5% { box-shadow: 0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em }
  25% { box-shadow: 0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em; }
  37.5% { box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em; }
  50% { box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em; }
  62.5% { box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em; }
  75% { box-shadow: 0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0; }
  87.5% { box-shadow: 0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em; }
}
@keyframes load4 {
  0%,
  100% { box-shadow: 0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0; }
  12.5% { box-shadow: 0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em; }
  25% { box-shadow: 0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em; }
  37.5% { box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em; }
  50% { box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em; }
  62.5% { box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em; }
  75% { box-shadow: 0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0; }
  87.5% { box-shadow: 0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em; }
}

input[type="text"].error {
  background-color: #f2dede;
  color: #a94442;
}

table.cellSpacing8 th,
table.cellSpacing8 td { padding-right: 8px }

.alert-thin { padding: 4px 15px; margin-bottom: 2px }

textarea.autosize { width: 100%; min-width: 100%; max-width: 100%; min-height: 4em; field-sizing: content; }

/* mobile */

#body .btn-mobile { line-height: 44px; }

/* printer */

@media print {
  div.logo .home  { display: none; }
  .logo .company { display: none; }
  .logo .user { display: none; }
  #menu_bar { display: none; }

  .btn.btn-secondary.active { font-weight: bold; text-decoration: underline; }
}

/* specific pages */

#customer_list table.customers { table-layout:fixed; }
#customer_list table.customers .actions { width: 250px; }
#customer_list table.customers.privilege_reports .actions { width: 330px; }
#customer_list table.customers .company-id { width: 85px; }
#customer_list table.customers .address a,
#customer_list table.customers .address { width: 150px; }
#customer_list table.customers .delete { width: 75px; }
#customer_list table.customers tr td.address a { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; display: block  }

@media (min-width: 1200px) {
  #customer_list table.customers .address a,
  #customer_list table.customers .address { width: 200px; }
}

@media (min-width: 1400px) {
  #customer_list table.customers .address a,
  #customer_list table.customers .address { width: 300px; }
}

#customer_list_alt table.customers { table-layout:fixed; width: 100% }
#customer_list_alt table.customers .actions { width: 250px; }
#customer_list_alt table.customers.reports-enabled .actions { width: 330px; }
#customer_list_alt table.customers .company-id { width: 85px; }
#customer_list_alt table.customers .address a,
#customer_list_alt table.customers .address { width: 150px; }
#customer_list_alt table.customers .delete { width: 75px; }
#customer_list_alt table.customers tr td.address a { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; display: block  }
#customer_list_alt table.customers .collapse-button {width: 20px;}

@media (min-width: 1200px) {
  #customer_list_alt table.customers .address a,
  #customer_list_alt table.customers .address { width: 200px; }
}

@media (min-width: 1400px) {
  #customer_list_alt table.customers .address a,
  #customer_list_alt table.customers .address { width: 300px; }
}

table.pricings .delete,
table.shipment-list .delete,
table.users .delete,
table.sites .delete { width: 75px; }

#pricing-form div.aligned-inputs .input-group { width: 100% }
#pricing-form input.top {background-color: #eeeeee;}
#pricing-form input.error {background-color: #f2dede;}
#pricing-form input.top.error {background-color: #e2cccc;}

@media (max-width: 990px) {
  #receive-list table .site { display: none }
}

#receive-modify div.aligned-inputs .input-group { width: 100% }
#receive-modify div.aligned-inputs .input-group-addon { width: 120px }
#receive-modify div.aligned-inputs .btn { width: 121px }
#receive-modify .spacer { margin-bottom: 10px }
#receive-modify .bold { font-weight: bold; }
#receive-modify table.products { width: 100% }
#receive-modify table.products tr { border-bottom: 1px solid #eee; }
#receive-modify table.products td input { width: 100% }
#receive-modify table tfoot td.number { text-align: right; padding-right: 10px; }
#receive-modify div.containers .input-group { width: 100% }
#receive-modify div.containers .input-group-addon { width: 120px; text-align: left }
#receive-modify .action-buttons .input-group { width: 1px }
#receive-modify .action-buttons select { width: auto }
@media print {
  #receive-modify .action-buttons  { display: none; }
}

#shipment-form div.aligned-inputs .input-group { width: 100% }
#shipment-form div.aligned-inputs .input-group-addon { width: 120px }
#shipment-form div.aligned-inputs.shipment-details .input-group-addon { width: 180px }
#shipment-form div.aligned-inputs .btn { width: 121px }
#shipment-form .spacer { margin-bottom: 16px }

#shipment_lines table input {width: 80px;}
#shipment_lines .generic tr.product-group input,
#shipment_lines .summary input {background-color: #efefef;}
#shipment_lines .generic input.error,
#shipment_lines .summary input.error {background-color: #f2dede;}
#shipment_lines .summary.weight-difference td.weight { background-color: #f2dede }

table.collapsible .collapse-button {width: 20px;}
span.collapse-button,
td.collapse-button span { width: 13px; height: 13px; display: inline-block;
                          border: 1px solid black; background-color: white;
                          cursor: pointer; cursor: hand;
                          font-size: 13px; line-height: 11px; text-align: center;
}
td.collapse-button span { margin-left: 5px; }

#select-customer,
#select-site,
#select-date { float: left; width: 200px; }
.input-row input { height: 16px; margin-top: 8px; }

#shipment_lines .x-td { white-space: nowrap; }
#shipment_lines a.collapse { color: #339933; font-weight: bold; display: inline; }
#shipment_lines table.table-condensed > tbody > tr > td { padding: 0 5px; }

table.shipments { table-layout: fixed; width: 100% }
table.shipments th.actions { width: 30px; }
table.shipments th.site { width: 160px; }
table.shipments th.weight { width: 80px; }
table.shipments th.price { width: 120px; }
table.shipments th.date  { width: 80px; }
table.shipments .actions { text-align: center }
table.shipments .actions input[type="checkbox"] { margin: 4px 0 0 0 }
table.shipments .actions label { display: block; margin: 0 }
table.shipments .weight,
table.shipments .price { text-align: right; padding-right: 2em; }
table.shipments td {height: 26px;}

#billing-list .action-button {  margin-bottom: 8px; }

table.shipment-list .actions { width: 180px; }

#shipmentshare .aligned-inputs .input-group { width: 100% }
#shipmentshare .aligned-inputs .input-group-addon { width: 120px }
#shipmentshare table { width: 100% }
#shipmentshare table tr { height: 2.5em }
#shipmentshare .bold { font-weight: bold }
#shipmentshare tr.bold { background-color: #f8f8f8 }
#shipmentshare input { font-weight: lighter }
#shipmentshare .remove-row,
#shipmentshare .remove-column,
#shipmentshare .add-column { display: inline-block; font-weight: normal;
  color: black; background-color: rgb(238, 238, 238); border: 0; border-radius: 50%;
  width: 24px; height: 24px; line-height: 24px; font-size: 18px; margin: 0px 0px 0px 8px; padding: 2px 4px;
}
#shipmentshare .add-column:hover { text-decoration: none; color: black; }
#shipmentshare .remove-row,
#shipmentshare .remove-column { color: #a00 }

#shipmentshare .client-group { height: 2.5em; }
#shipmentshare .client-group td { padding: 0.2em 0 }
#shipmentshare .client-group:nth-of-type(even) { background-color: #eeeeee; }

#shipment_percentages .input-group { float: left }
#shipment_percentages div.error { display: none; background-color: rgba(0, 0, 0, 0.02); line-height: 18pt; margin-top: 5px; padding: 0px 5px; position: relative; border-top-right-radius: 5px; border-bottom-right-radius: 5px }
#shipment_percentages div.error:after { left: -24px; top: 50%; border: solid transparent;	content: " ";	height: 0;width: 0;	position: absolute;	pointer-events: none;	border-right-color: rgba(0, 0, 0, 0.02); border-width: 9pt;margin-top: -9pt; }

#user-sites .disabled-checkbox { display: none; }

#percentage a { margin-top: 4px; }

#percentage_modal .product-add ul { list-style-type: none }
#percentage_modal .product-add ul ul { margin-left: 17px }

#percentage_modal .total .error { background-color: rgba(0, 0, 0, 0.05); line-height: 18pt; margin-top: 5px; padding: 0px 5px 0 12px; position: relative; border-top-left-radius: 14px; border-bottom-left-radius: 14px }
#percentage_modal .total .error:after { left: 100%; top: 50%; border: solid transparent;	content: " ";	height: 0;width: 0;	position: absolute;	pointer-events: none;	border-left-color: rgba(0, 0, 0, 0.05); border-width: 9pt;margin-top: -9pt; }

table.users td.privilege { width: 16px }
