/**
 * @file
 * Styles for uc_order module.
 */

table.sticky-enabled.sticky-table {
  border-collapse: separate !important;
  border: 2px solid #F6F6F6;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}

table.category-products.sticky-enabled.sticky-table td.active {
  background-color: #F6F6F6;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}

table.uc-orders-table.sticky-enabled.sticky-table td.active {
  background: transparent;
}

table.uc-customer-table.sticky-enabled.sticky-table td.active {
  background: transparent;
}

table.order-pane-table.sticky-enabled.sticky-table {
  border-collapse: separate !important;
}

table.order-pane-table.sticky-enabled.sticky-table th {
  text-align: center;
}

table.uc-order-history.sticky-enabled.sticky-table {
  margin: 20px auto;
  border: 2px solid #F6F6F6;
  border-collapse: separate !important;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}

table.uc-order-history.sticky-enabled.sticky-table tbody {
  border: 4px solid #F6F6F6;
  background: #F6F6F6;
}

table.uc-order-history.sticky-enabled.sticky-table td {
  background: #F6F6F6;
  text-align: center;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}

table.category-products.sticky-enabled.sticky-table th.active {
  text-align: left;
}

table.uc-order-history.sticky-enabled.sticky-table th.active {
  text-align: center;
}

thead.tableHeader-processed th {
  border-bottom: 2px solid #F6F6F6;
  text-align: center;
}

thead.tableHeader-processed th.active {
  text-align: left;
}

.sticky-header th {
  border-bottom: 2px solid #F6F6F6;
  text-align: center !important;
}

.sticky-header th.active {
  text-align: left !important;
}

.order-overview-form {
  float: left;
  padding: 0em 2em 2em 0em;
}

.order-overview-form .form-item {
  margin-bottom: 0em;
}

.order-overview-form #uc-order-select-form,
.order-overview-form #uc-order-admin-sort-form {
  margin-bottom: 0em;
}

.uc-orders-table {
  clear: both;
  width: 100%;
}

.uc-orders-table td,
.uc-orders-table thead th {
  white-space: nowrap;
}

.uc-orders-table tr.odd:hover,
.uc-orders-table tr.even:hover {
  background-color: #F3F3F3;
}

.order-admin-icons {
  margin-left: 2px;
}

.order-admin-icons img {
  padding: 0px 3px;
  position: relative;
  top: 3px;
}

.order-pane {
  background: #F6F6F6;
  border: 2px solid #F6F6F6;
  margin: 20px auto;
  padding: 10px;
  width: 90%;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}

.order-pane.abs-left{
  border: 2px solid #F6F6F6;
  background: none;
  margin-top: 10px;
  margin-bottom: 10px;
}

.order-pane.pos-left{
  border: 2px solid #F6F6F6;
  background: none;
}

.order-pane thead {
  border-bottom: 4px solid #F6F6F6;
}

.order-pane-title {
  background: #F6F6F6;
  color: #DD4492;
  font-size: 16px;
  font-weight: bold;
  font-style: normal;
  text-align: center;
  margin-bottom: 10px;
  padding: 10px 10px 12px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}

.pos-right {
  float: right;
}

.abs-right {
  clear: right;
  float: right;
}

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

.full-width {
  width: 100%;
}

.order-pane-table th {
  padding: 4px 8px;
  font-weight: bold;
}

.order-pane-table td {
  padding: 4px 8px;
  vertical-align: top;
}

.order-pane-table td.qty {
  text-align: center;
  white-space: nowrap;
  padding: 12px;
}

th.sku, th.cost, th.price, th.total {
  display: none;
}

td.sku, td.cost, td.price, td.total {
  display: none;
}

div#order-pane-line_items {
  display: none;
}

.order-pane-table td.product {
  width: 80%;
  padding: 12px;
}

.order-pane-table td.cost,
.order-pane-table td.price,
.order-pane-table td.total {
  text-align: center;
  white-space: nowrap;
  padding: 12px;
}

.uc-order-comments td {
  vertical-align: top;
}

.uc-order-comments td.date,
.uc-order-comments td.status {
  text-align: center;
  white-space: nowrap;
}

.uc-order-comments td.message {
  width: 100%;
 }

.order-edit-table {
  width: auto;
}

.order-edit-table .oet-label {
  font-weight: bold;
  text-align: right;
}

.order-edit-table .form-item {
  display: inline;
}

.address-select-box {
  background-color: #ddd;
  border: solid 1px #999;
  padding-bottom: 1em;
  padding-left: 1em;
  margin-bottom: 1em;
  width: auto;
}

.customer-select-box {
  background-color: #ddd;
  border: solid 1px #999;
  padding: 1em;
  margin-top: 1em;
  width: auto;
}

.product-select-box {
  background-color: #ddd;
  border: solid 1px #999;
  margin-right: auto;
  margin-bottom: 1em;
  width: auto;
}

.product-select-box2 {
  background-color: #ddd;
  border: solid 1px #999;
  margin-right: auto;
  margin-bottom: 1em;
  padding-left: 1em;
  padding-bottom: 1em;
  width: auto;
}

.line-item-table {
  width: 100%;
}

.line-item-table td {
  padding: 2px;
}

.line-item-table .li-title {
  font-weight: bold;
  text-align: right;
  width: 100%;
}

.line-item-table .li-amount {
  text-align: right;
}

.line-item-table .form-item {
  display: inline;
}

.order-review-table tbody {
  border-top: 0px;
}

.order-pane-table .product-description {
  font-size: .7em;
}

/* Move to uc_credit.css eventually... */
.order-pane #uc-credit-order-view-form {
  margin-top: .5em;
  margin-bottom: 0em;
}

#uc-credit-order-view-form .form-submit {
  margin: 0em;
}

.order-pane #uc-order-view-update-form {
  margin-bottom: 1em;
}

.update-controls {
  padding-top: 1em;
}

.update-controls div {
  padding-right: 1em;
}

.update-controls div,
.update-controls label {
  display: inline;
}

.update-controls .form-submit {
  margin: 0em;
}

.address-select-box #uc-order-address-book-form {
  margin-bottom: 0em;
}

.order-pane.abs-left .form-submit {
  margin: 0.5em 0.5em 0.5em 0em;
}

.order-pane #customer-select form {
  margin-bottom: 0em;
}