/* eMAG Admin – wide data layout v1.8. Additive rules only. */
@media (min-width: 1050px) {
  body main.wrap {
    width: calc(100% - 64px);
    max-width: 1760px;
    margin: 26px auto;
    padding: 0 12px;
  }
}
@media (max-width: 1049px) {
  body main.wrap {width:100%; max-width:100%; padding:0 14px; margin:18px auto;}
}
/* Keep a complete record on one physical line; scroll containers handle overflow. */
main.wrap table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
  font-size: 13px;
}
main.wrap table th,
main.wrap table td {
  white-space: nowrap;
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #d9e0ea;
}
main.wrap table th {background:#e6edfa; font-weight:650;}
main.wrap table tbody tr:hover {background:#edf3ff;}
/* Older data modules can place a table directly in their content. */
main.wrap {overflow-x:auto;}
/* Do not constrain forms or cards on full-width pages. */
main.wrap input, main.wrap select, main.wrap button {max-width:100%;}
@media (max-width: 650px) {
  main.wrap table th, main.wrap table td {padding:7px 9px;}
}

/* v1.8.1 – accounting reversals/negative amounts: restrained rose tint.
   Apply to TD cells to override alternating-row and hover themes. */
main.wrap table tbody tr.row-negative > td {
  background-color: #fff2f2;
}
main.wrap table tbody tr.row-negative:hover > td {
  background-color: #ffe8e8;
}
main.wrap table tbody tr.row-negative > td:first-child {
  box-shadow: inset 3px 0 0 #dca8ac;
}
main.wrap table tbody tr.row-negative td.negative-amount {
  color: #8e343b;
  font-weight: 600;
}
