/* Feature tags of a cast and the filters built on them (the owner's requests of 2026-11-18). static/cast-tags.mjs */

/* The cast's form: the choices are boxes to tick, drawn as pills; a ticked one is coloured. */
.cast-tag-field .choice-grid{gap:6px 7px}
.cast-tag-field .choice-grid .cast-tag-choice{padding:3px 11px 3px 8px!important;gap:6px;border:1px solid #d3dbd2;border-radius:999px;background:#fff;cursor:pointer}
.cast-tag-field .choice-grid .cast-tag-choice:has(input:checked){border-color:#3c7a57;background:#e4f3ea;color:#1d4a33;font-weight:600}
.cast-tag-field .cast-tag-choice input{flex:none;width:auto;margin:0}
.cast-tag-add{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-top:9px}
.cast-tag-add label{flex:none;color:#627564;font-size:11px;font-weight:600}
.cast-tag-add input{flex:0 1 190px;width:auto;min-width:0}
.cast-tag-error{margin:5px 0 0;color:#b42318;font-size:12px}
.cast-tag-error:empty{display:none}

/* The tags of a cast where a list shows her. */
.cast-tag-chips{display:inline-flex;flex-wrap:wrap;gap:2px 3px;vertical-align:middle}
.cast-tag-chip{padding:0 6px;border-radius:999px;background:#eceefb;color:#3a3f7a;font-size:10px;line-height:1.7;white-space:nowrap}
.cast-tag-chip.more{background:#eef0ee;color:#566056}
.data-table td>.cast-tag-chips{display:flex;margin-top:4px}

/* The chips of a filter: the ticket's cast search and the list of candidates. A pressed chip is part of the filter. */
.cast-filter{display:grid;gap:3px;min-width:0}
.cast-filter-row{display:flex;flex-wrap:wrap;align-items:center;gap:3px 4px;min-width:0}
.cast-filter-label{flex:none;min-width:58px;color:#47576a;font-size:11px}
.cast-filter-chip{display:inline-flex;align-items:center;gap:4px;min-height:20px;margin:0;padding:0 8px;border:1px solid #b7c2cf;border-radius:999px;background:#fff;color:#22313f;font:inherit;font-size:11px;line-height:18px;white-space:nowrap;cursor:pointer}
.cast-filter-chip:hover,.cast-filter-chip:focus-visible{border-color:#1f5f8b;outline:none;box-shadow:0 0 0 2px #1f5f8b33}
.cast-filter-chip.on{border-color:#1f5f8b;background:#1f5f8b;color:#fff}
.cast-filter-chip:disabled{opacity:.6;cursor:not-allowed}
.cast-filter-count{font-size:10px;opacity:.8;font-variant-numeric:tabular-nums}
.cast-filter-none{color:#5b6673;font-size:11px}

/* The ticket. The switch of the filter is at the end of the search box's own line: it adds no line to the ticket.
   What it opens is drawn in the row of the search results, which takes no room while it is empty. */
.ticket-dialog .ticket-group #ticket-cast-search-field{grid-template-columns:74px minmax(0,1fr) auto}
.ticket-cast-filter-toggle{align-self:center;height:21px;min-height:0;margin:0;padding:0 7px;border:1px solid #8c9bab;border-radius:2px;background:#f5f5f5;color:#222;font:inherit;font-size:11px;line-height:19px;white-space:nowrap;cursor:pointer}
.ticket-cast-filter-toggle:hover,.ticket-cast-filter-toggle:focus-visible{border-color:#1f5f8b;outline:none}
.ticket-cast-filter-toggle[aria-expanded="true"]{border-color:#2f6195;background:#3472b8;color:#fff}
.ticket-cast-filter-toggle:disabled{opacity:.6;cursor:not-allowed}
.ticket-cast-filter{display:grid;gap:4px;min-width:0;padding:4px 5px;border:1px solid #c4cedb;border-radius:3px;background:#f3f7fb}
.ticket-cast-filter .cast-filter-label{min-width:50px}
.ticket-search-tag.check{background:#fff1d0;color:#6b4a00}
.ticket-search-none.stop{color:#8a1c1c}
.ticket-search-row.duty small{flex:1 1 100%}
@media (max-width:440px){.ticket-dialog .ticket-group #ticket-cast-search-field{grid-template-columns:68px minmax(0,1fr) auto}}
