/* Promotions calendar: the list, the planning form and the estimate. Uses the board tokens. */
.promo-table th.left, .promo-table td.left { text-align: left; }
.promo-table tr.past { opacity: 0.55; }
.promo-table td.muted { color: var(--board-muted); font-style: italic; }
.promo-table td.good { color: var(--board-good); font-weight: 700; }
.promo-table td.bad { color: var(--board-bad); font-weight: 700; }
.board-link { margin-left: 10px; padding: 0; border: 0; background: none; color: var(--board-ink); font: inherit; font-size: 11.5px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.board-link.danger { color: var(--board-bad); }
.board .promo-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
/* A wide field directly in the form would open a second column. */
.promo-form > .promo-field.wide { grid-column: auto; }
.promo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.promo-grid:empty { display: none; }
.promo-field { display: grid; gap: 5px; color: var(--board-muted); font-size: 11px; font-weight: 700; }
.promo-field.wide { grid-column: span 2; }
.promo-field input, .promo-field select { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--board-rule-strong); border-radius: 8px; background: #fff; color: var(--board-ink); font: inherit; font-size: 13px; font-weight: 500; }
.promo-field input:focus-visible, .promo-field select:focus-visible { outline: 2px solid var(--board-ink); outline-offset: 1px; }
.promo-products, .promo-tiers { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border: 1px solid var(--board-rule); border-radius: 8px; }
.promo-products legend, .promo-tiers legend { padding: 0 6px; color: var(--board-muted); font-size: 11px; font-weight: 700; }
.promo-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 14px; max-height: 220px; overflow: auto; }
.promo-check { display: flex; align-items: baseline; gap: 6px; font-size: 12px; color: var(--board-ink); }
.promo-tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.promo-tier { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.promo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.board-button { height: 36px; padding: 0 16px; border: 1px solid var(--board-ink); border-radius: 999px; background: var(--board-ink); color: #fff; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.board-button.ghost { background: transparent; color: var(--board-ink); }
.board-button:disabled { opacity: 0.4; cursor: not-allowed; }
.promo-estimate { display: grid; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--board-rule); }
.promo-assumptions { margin: 0; padding-left: 18px; color: var(--board-muted); font-size: 11.5px; line-height: 1.55; }
@media (max-width: 900px) {
  .promo-grid, .promo-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo-products { grid-template-columns: 1fr; }
}
.promo-products-rated { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 320px; }
.promo-rate { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 8px; font-size: 12px; color: var(--board-ink); }
.promo-rate input { width: 100%; height: 28px; padding: 0 6px; border: 1px solid var(--board-rule-strong); border-radius: 6px; font: inherit; font-size: 12px; text-align: right; }
.promo-can-table { width: 100%; margin: 12px 0 4px; border-collapse: collapse; font-size: 12px; }
.promo-can-table caption { margin-bottom: 6px; color: var(--board-muted); font-size: 11px; font-weight: 700; text-align: left; }
.promo-can-table th, .promo-can-table td { padding: 5px 8px; border-bottom: 1px solid var(--board-rule); }
.promo-can-table th { color: var(--board-muted); font-size: 11px; }
.promo-can-table .num { text-align: right; white-space: nowrap; }
.promo-can-table .left { text-align: left; }
@media (max-width: 720px) { .promo-products-rated { grid-template-columns: 1fr; } }
