/* Discounts view. Shared layout lives in app.css. */
.disc-grant { display: flex; flex-direction: column; gap: var(--sp-2); }
.disc-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-2); }
.disc-form .field { min-width: 0; }
.disc-form .field input { width: 100%; }
.disc-f-person { flex: 3 1 270px; }
.disc-f-text { flex: 1 1 110px; }
.disc-f-num { flex: 0 0 96px; }
.disc-check { display: inline-flex; align-items: center; gap: var(--sp-1); min-height: 27px; color: var(--text-2); font-size: var(--fs-ctl); white-space: nowrap; cursor: pointer; }
.disc-check input { flex: none; margin: 0; accent-color: var(--accent); }
.disc-grant-btn { min-height: 27px; }
.disc-msg { color: var(--muted); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.disc-msg:empty { display: none; }
.disc-msg.is-bad { color: var(--bad); }

/* The panel that holds a link the server sends once. */
.disc-once { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); background: var(--warn-wash); border: 1px solid color-mix(in srgb, var(--warn) 42%, transparent); border-radius: var(--r-sm); }
.disc-once-row { display: flex; align-items: center; gap: var(--sp-2); }
.disc-link { flex: 1 1 auto; min-width: 0; scroll-margin-top: 120px; }
.disc-once-note { color: var(--text-2); font-size: var(--fs-sm); line-height: var(--lh-tight); }
.disc-once-warn { color: var(--warn); font-size: var(--fs-sm); font-weight: var(--fw-medium); line-height: var(--lh-tight); }

.disc-tile-on { background: var(--accent-wash); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.disc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--sp-1); max-width: 340px; }
.disc-anyone { color: var(--bad); font-weight: var(--fw-medium); }
.disc-acts { display: flex; gap: var(--sp-1); }
/* The actions stay on screen when the table scrolls sideways. */
.tbl .disc-acts-col { position: sticky; right: 0; z-index: 1; background: var(--surface); border-left: 1px solid var(--line-soft); }
.tbl th.disc-acts-col { z-index: 3; }
.disc-danger { color: var(--bad); border-color: var(--bad-line); }
.disc-danger:hover { background: var(--bad-wash); border-color: var(--bad); }
