/* Revenue page: row colours down to the Total row, and the Profit pop-up of the reference site. */

/* Rows keep alternating light blue / white, the Total row continuing the pattern */
body.fg-revenue .container table:has(> thead) > tbody > tr:nth-child(odd) { background: #E0F4F6; }
body.fg-revenue .container table:has(> thead) > tbody > tr:nth-child(even) { background: #fff; }
body.fg-revenue .container table:has(> tbody > tr:last-child:nth-child(even)) > tfoot > tr { background: #E0F4F6 !important; }
body.fg-revenue .container table:has(> tbody > tr:last-child:nth-child(odd)) > tfoot > tr { background: #fff !important; }
/* Total row text on the left, as on the reference */
body.fg-revenue .container table > tfoot > tr,
body.fg-revenue .container table > tfoot > tr > td { text-align: left !important; }
body.fg-revenue .fg-profit-cell { cursor: pointer; }

/* Pop-up (reference PopUp.css + AgentMail.css) */
.fg-pop-bg { position: fixed; inset: 0; background: #000; opacity: .7; z-index: 2000; }
.fg-pop {
  position: fixed; left: 5%; top: 5%; width: 88%; height: 520px; padding: 1%; z-index: 2001;
  background: #fff; border: 4px solid #20B7C9; border-radius: 3px; color: #333; font-size: 14px;
  font-family: Roboto, sans-serif; display: flex; flex-direction: column;
}
.fg-pop-close {
  position: absolute; right: -17px; top: -14px; width: 30px; height: 30px; cursor: pointer;
  background: url(/assets/vendor/closebox.png) no-repeat 0 0;
}
.fg-pop-week { margin: 14px 0 18px; font-size: 15px; color: #333; }
.fg-pop-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.fg-pop .table_formatting { text-align: center; color: #515151; height: auto; overflow: visible; }
.fg-pop h3.fg-pop-head { margin: 12px 0 18px; font-size: 19px; font-weight: 700; color: #333; text-align: center; }
.fg-pop .fg-pop-sub { margin: 10px 0 8px; font-size: 18px; font-weight: 700; color: #515151; text-align: left; }
.fg-pop table { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-size: 15.4px; }
.fg-pop thead th { background: #20B7C9; color: #fff; font-weight: 700; text-align: center; padding: 5px; }
.fg-pop tbody td { padding: 5px; text-align: center; color: #666; }
.fg-pop tbody tr:nth-child(odd) { background: #E0F4F6; }
.fg-pop tbody tr:nth-child(even) { background: #fff; }
.fg-pop tfoot td { background: #20B7C9; color: #fff; font-weight: 700; text-align: right; padding: 5px; }
.fg-pop .fg-red { color: red !important; }
.fg-pop .fg-pop-lines { text-align: left; margin-top: 20px; }
.fg-pop .fg-pop-lines p { margin: 0 0 18px; font-size: 18px; font-weight: 700; color: #515151; }
.fg-pop .fg-pop-lines span { color: #cc3300; }
