/* Craftspot — styling for tables written inside proposal content.
   Content tables carry no attributes (the WAF blocks them), so we target class-less tables only.
   The line-items table (.items) and the totals table (.text-right) are left untouched. */
.proposal-content table:not([class]) {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 14px 0 24px;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid #e3e1d8;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.proposal-content table:not([class]) th {
  background: #111111;
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .2px;
  text-align: left;
  padding: 12px 14px;
  border: 0;
  vertical-align: bottom;
}
.proposal-content table:not([class]) th:first-child { border-left: 4px solid #eae62b; }
.proposal-content table:not([class]) td {
  padding: 11px 14px;
  border: 0;
  border-top: 1px solid #ecebe4;
  vertical-align: top;
  color: #222;
  overflow-wrap: anywhere;
}
.proposal-content table:not([class]) tr:nth-child(even) td { background: #faf9f5; }
.proposal-content table:not([class]) td:first-child { font-weight: 600; color: #111; overflow-wrap: normal; min-width: 110px; }
/* rows whose first cell is bold (Total rows) */
.proposal-content table:not([class]) tr:has(> td:first-child > b) td,
.proposal-content table:not([class]) tr:has(> td:first-child > strong) td {
  background: #fdfbe3;
  border-top: 2px solid #eae62b;
  font-weight: 700;
}
@media (max-width: 640px) {
  .proposal-content table:not([class]) { display: block; overflow-x: auto; white-space: normal; }
  .proposal-content table:not([class]) th,
  .proposal-content table:not([class]) td { padding: 9px 10px; font-size: 13px; }
}
/* 4-column tables (e.g. ad groups: name / landing page / keywords / share): fixed proportions */
.proposal-content table:not([class]):has(tr > th:nth-child(4):last-child) { table-layout: fixed; }
.proposal-content table:not([class]):has(tr > th:nth-child(4):last-child) th:nth-child(1) { width: 20%; }
.proposal-content table:not([class]):has(tr > th:nth-child(4):last-child) th:nth-child(2) { width: 27%; }
.proposal-content table:not([class]):has(tr > th:nth-child(4):last-child) th:nth-child(3) { width: 41%; }
.proposal-content table:not([class]):has(tr > th:nth-child(4):last-child) th:nth-child(4) { width: 12%; }
.proposal-content table:not([class]):has(tr > th:nth-child(4):last-child) td:nth-child(2) { font-size: 12.5px; color: #666; }
.proposal-content table:not([class]):has(tr > th:nth-child(4):last-child) td:nth-child(4) { font-weight: 700; }
