/**
 * @file      purchases/css/purchase.css
 * @brief     Stylesheet related to Purchase backend UI.
 *
 * @addtogroup PWWH_CORE_PURCHASE
 * @{
 */

/**
 * Table of Contents
 *
 * 1.0 - Boxes
 *   1.1 - Submit box
 *   1.2 - Item summary box
 *     1.2.1 - General
 *     1.2.2 - History
 *     1.2.3 - Manager area
 *   1.3 - Movement add item box
 * 2.0 - List
 */

/*===========================================================================*/
/* 1.0 - Boxes                                                               */
/*===========================================================================*/
/**
 * 1.1 - Submit box
 */
.post-type-pwwh_movement #submitdiv .edit-post-status {
  display: none;
}

.post-type-pwwh_movement #submitdiv .edit-visibility {
  display: none;
}

.post-type-pwwh_movement #submitdiv .edit-timestamp {
  display: none;
}

.post-type-pwwh_movement #submitdiv #minor-publishing-actions {
  display:none;
}

.post-type-pwwh_movement #submitdiv .inside {
  opacity: 0.7;
}

.post-type-pwwh_movement #submitdiv #publish {
  opacity: 0;
  display: none;
}

/**
 * 1.2 - Movement summary box
 */
/**
 * 1.2.1 - General
 */
#pwwh_movement_item_summary_box {
  position: relative;
}

#pwwh_movement_item_summary_box #pwwh-remove {
  position:absolute;
  top: 3px;
  right: 10px;
  border: none;
  background: transparent;
  padding: 0;
}

#pwwh_movement_item_summary_box #pwwh-remove .pwwh-lib-icon {
  color: #82878c;
}

#pwwh_movement_item_summary_box #pwwh-remove:focus .pwwh-lib-icon,
#pwwh_movement_item_summary_box #pwwh-remove:hover .pwwh-lib-icon {
  color: #b33535;
}

#pwwh_movement_item_summary_box .pwwh-lib-info-chunk {
  width: 100%;
}

/**
 * 1.2.2 - History
 */
#pwwh_movement_item_summary_box .history .column-moved,
#pwwh_movement_item_summary_box .history .column-lent,
#pwwh_movement_item_summary_box .history .column-returned,
#pwwh_movement_item_summary_box .history .column-donated,
#pwwh_movement_item_summary_box .history .column-lost {
  width: 30px;
  padding: 8px 0;
  text-align: center;
}

#pwwh_movement_item_summary_box .history tfoot {
  display: none;
}

#pwwh_movement_item_summary_box .history th {
  font-weight: 600;
}

#pwwh_movement_item_summary_box .history tbody tr:last-child td {
  font-weight: 700;
}

#pwwh_movement_item_summary_box .history.concluded tbody tr:last-child {
  background-color: #F1F8E9 !important;
}

#pwwh_movement_item_summary_box .history.concluded tbody tr:last-child td.column-lent {
  font-size: 16px;
  color: #689F38;
  padding: 5px 0;
}

#pwwh_movement_item_summary_box .history.active tbody tr:last-child {
  background-color: #FFFDE7 !important;
}

#pwwh_movement_item_summary_box .history.active tbody tr:last-child td.column-lent {
  font-size: 16px;
  color: #FBC02D;
  padding: 5px 0;
}

#pwwh_movement_item_summary_box .status-trash {
  opacity: 0.4;
}

/**
 * 1.2.3 - Manager area
 */
#pwwh-movement-manager-area .pwwh_movement_new_lent.pwwh-active .pwwh-lib-value {
  color: #FBC02D;
}

#pwwh-movement-manager-area .pwwh_movement_new_lent.pwwh-concluded .pwwh-lib-value {
  color: #689F38;
}

#pwwh-movement-manager-area .pwwh_movement_new_lent.pwwh-invalid .pwwh-lib-value {
  color: #ce0e00;
  font-style: italic;
}

#pwwh-movement-manager-area #pwwh-hideshow {
  padding: 0;
  margin-left: 10px;
}

/**
 * 1.3 - Movement add item box
 */
#pwwh_movement_add_item_box .pwwh-description{
  font-style: italic;
  margin: 15px 0 5px;
  display: block;
}

#pwwh_movement_add_item_box .pwwh-lib-input {
  margin-top: 10px;
}

#pwwh_movement_add_item_box .additional {
  margin-top: 30px;
  padding-top: 10px;
  display: block;
  border-top: 1px solid #eee;
  width: 100%;
  position: relative;
}

#pwwh_movement_add_item_box .additional #pwwh-remove {
  position:absolute;
  top: 0;
  right: 0;
  border: none;
  background: transparent;
  padding: 0;
}

#pwwh_movement_add_item_box .additional #pwwh-remove .pwwh-lib-icon {
  color: #82878c;
}

#pwwh_movement_add_item_box .additional #pwwh-remove:focus .pwwh-lib-icon,
#pwwh_movement_add_item_box .additional #pwwh-remove:hover .pwwh-lib-icon {
  color: #b33535;
}

#pwwh_movement_add_item_box .pwwh-footer {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

/**
 * 2.0 - List
 */
.post-type-pwwh_movement .column-moved,
.post-type-pwwh_movement .column-lent,
.post-type-pwwh_movement .column-donated,
.post-type-pwwh_movement .column-lost {
  width: 80px;
}