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

.view-uc-orders .form-item {
  padding-top: 4px;
}

.view-uc-orders #edit-order-id {
  width: 10em;
}

.view-uc-orders #edit-delivery-first-name-wrapper,
.view-uc-orders #edit-created-wrapper {
  clear: left; /* LTR */
}
[dir="rtl"] .view-uc-orders #edit-delivery-first-name-wrapper,
[dir="rtl"] .view-uc-orders #edit-created-wrapper {
  clear: right;
}

.view-uc-orders #edit-created-min-wrapper,
.view-uc-orders #edit-created-max-wrapper {
  float: left; /* LTR */
}
[dir="rtl"] .view-uc-orders #edit-created-min-wrapper,
[dir="rtl"] .view-uc-orders #edit-created-max-wrapper {
  float: right;
}

.view-uc-orders .form-type-date-select .date-padding {
  padding: 0 22px 0 0; /* LTR */
}
[dir="rtl"] .view-uc-orders .form-type-date-select .date-padding {
  padding: 0 0 0 22px;
}

.view-uc-orders .form-type-date-select {
  padding-top: 0;
}

.order-pane {
  border: 1px solid #bbb;
  line-height: 1.1em;
  margin: .5em;
  padding: .5em;
  position: relative;
}

.order-pane-icons {
  position: absolute;
  right: .5em; /* LTR */
  top: 5px;
}
[dir="rtl"] .order-pane-icons {
  right: auto;
  left: .5em;
}

.order-pane-icons img {
  cursor: pointer;
}

.order-pane-title {
  font-weight: bold;
  padding-bottom: .5em;
}

.order-pane.pos-left {
  float: left; /* LTR */
}
[dir="rtl"] .order-pane.pos-left {
  float: right;
}

.order-pane.abs-left {
  border: 0;
  clear: left; /* LTR */
  padding: .5em 0;
}
[dir="rtl"] .order-pane.abs-left {
  clear: right;
}

.order-pane.abs-left .form-submit {
  margin: 0.5em 0.5em 0.5em 0; /* LTR */
}
[dir="rtl"] .order-pane.abs-left .form-submit {
  margin: 0.5em 0 0.5em 0.5em;
}

.uc-order-edit-form .form-actions {
  clear: both;
}

.order-pane #edit-add-line-item,
.order-pane #edit-add-line-item .form-item {
  float: left; /* LTR */
  margin-right: 1em; /* LTR */
  padding-top: 0;
}
[dir="rtl"] .order-pane #edit-add-line-item,
[dir="rtl"] .order-pane #edit-add-line-item .form-item {
  float: right;
  margin-right: auto;
  margin-left: 1em;
}

.order-pane .line-item-table {
  float: right;
  width: auto;
}

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

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

.order-pane-table td.qty,
.order-pane-table td.sku {
  text-align: center;
  white-space: nowrap;
}

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

.order-pane-table td.cost,
.order-pane-table td.price,
.order-pane-table td.total {
  text-align: right; /* LTR */
  white-space: nowrap;
}
[dir="rtl"] .order-pane-table td.cost,
[dir="rtl"] .order-pane-table td.price,
[dir="rtl"] .order-pane-table td.total {
  text-align: left;
}

#order-edit-products .form-remove {
  cursor: pointer;
  margin-top: 4px;
}

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

.uc-order-comments .date {
  width: 25%;
  text-align: left; /*LTR */
}
[dir="rtl"] .uc-order-comments .date {
  text-align: right;
}

.uc-order-comments .user,
.uc-order-comments .notified,
.uc-order-comments .status {
  text-align: center;
}

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

.address-select-box {
  background-color: #ddd;
  border: solid 1px #999;
  margin-bottom: 1em;
  padding-bottom: 1em;
  padding-left: 1em; /* LTR */
  width: auto;
}
[dir="rtl"] .address-select-box {
  padding-left: inherit;
  padding-right: 1em;
}

.customer-select-box {
  background-color: #ddd;
  border: solid 1px #999;
  margin-top: 1em;
  padding: 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; /* LTR */
  width: 100%;
}
[dir="rtl"] .line-item-table .li-title {
  text-align: left;
}

.line-item-table .li-amount {
  text-align: right; /* LTR */
  white-space: nowrap;
}
[dir="rtl"] .line-item-table .li-amount {
  text-align: left;
}

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

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

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

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

#uc-order-view-update-form #edit-controls label {
  display: inline;
}

#uc-order-view-update-form #edit-controls .form-type-checkbox {
  padding-top: 8px;
}

#uc-order-view-update-form .form-actions {
  clear: left; /* LTR */
}
[dir="rtl"] #uc-order-view-update-form .form-actions {
  clear: right;
}

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

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

#order-pane-print_button {
  border: 1px solid #bbb;
  padding: 0.5em 0.5em 0.5em 2em; /* LTR */
  background: url("../../uc_store/images/print.gif") no-repeat 0.5em 50%;
}
[dir="rtl"] #order-pane-print_button {
  padding: 0.5em 2em 0.5em 0.5em;
}
