#assignmentCard{margin:4px 0 7px;border:1px solid #d8d3c9;border-radius:6px;background:#fff}
#assignmentCard summary{display:flex;align-items:center;gap:14px;padding:6px 10px;cursor:pointer;font-size:12px;flex-wrap:wrap;list-style:none}
#assignmentCard summary::before{content:'▸';color:#a56300}#assignmentCard[open] summary::before{content:'▾'}
#assignmentCard summary small{margin-left:auto;color:#6b665d}.assignment-free{color:#276440;font-weight:600}
.assignment-blocked{color:#a33830;font-weight:600}.assignment-yard{color:#3f6176;font-weight:600}.assignment-count{color:#6b665d}
.assignment-content{padding:0 12px 12px;border-top:1px solid #eee9df}.assignment-note{font-size:11px;color:#68635d;margin:8px 0}
.assignment-columns{display:grid;grid-template-columns:2fr 1fr;gap:18px}.assignment-columns h3{font-size:13px;margin:8px 0}
.assignment-pairs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.assignment-pairs article{padding:6px 8px;background:#f7f5f0;border-left:3px solid #cf7f07;font-size:12px}.assignment-pairs article span,.assignment-pairs article small{display:block}.assignment-pairs article small{color:#6b665d;margin-top:2px}
.assignment-chips{display:flex;flex-wrap:wrap;gap:5px;font-size:12px}.assignment-chip{padding:5px 8px;border-radius:4px;background:#eaf4ed;color:#28553a}.assignment-chip small{display:block}.blocked .assignment-chip{background:#f8e9e5;color:#8c3c30}
.assignment-driver-status{font-size:11px;font-weight:600}.assignment-pairs article.free{border-color:#34815a;background:#eef7f0}.assignment-pairs article.blocked{border-color:#b44839;background:#fbefec}.assignment-pairs article.unavailable{border-color:#999;background:#f1f1f1;color:#686868}
@media(max-width:900px){.assignment-columns{grid-template-columns:1fr}.assignment-pairs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.assignment-pairs{grid-template-columns:1fr}}

/* Compact, explicit groups preserve every driver, including unavailable helpers. */
#assignmentCard .assignment-content{padding:0 8px 7px}
#assignmentCard .assignment-note{font-size:10px;line-height:1.3;margin:5px 0}
#assignmentCard .assignment-columns{grid-template-columns:minmax(0,3fr) minmax(180px,1fr);gap:12px}
#assignmentCard .assignment-driver-tables{min-width:0;overflow:auto}
#assignmentCard .assignment-driver-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:11px;line-height:1.25;margin:0 0 6px}
#assignmentCard .assignment-driver-table caption{text-align:left;font-weight:750;font-size:12px;padding:4px 5px;background:#f0eee9}
#assignmentCard .assignment-driver-table caption span{font-size:10px;margin-left:5px;color:#6a655f}
#assignmentCard .assignment-driver-table th,#assignmentCard .assignment-driver-table td{padding:3px 6px;text-align:left;vertical-align:top;overflow-wrap:anywhere;border-bottom:1px solid #e8e7e3}
#assignmentCard .assignment-driver-table thead th{font-size:10px;font-weight:650;color:#69655e;background:#faf9f6}
#assignmentCard .assignment-driver-table th:first-child{width:22%}
#assignmentCard .assignment-driver-table th:nth-child(2){width:23%}
#assignmentCard .assignment-driver-table th:nth-child(3){width:16%}
#assignmentCard .assignment-driver-table tbody th{border-left:3px solid #cf7f07}
#assignmentCard .assignment-driver-table tbody th small{display:block;font-size:9px;font-weight:400;color:#68635d;margin-top:1px}
#assignmentCard .assignment-driver-table tr.booked{background:#f8f6f1}
#assignmentCard .assignment-driver-table tr.free{background:#eef7f0}
#assignmentCard .assignment-driver-table tr.free th{border-left-color:#34815a}
#assignmentCard .assignment-driver-table tr.blocked{background:#fbefec}
#assignmentCard .assignment-driver-table tr.blocked th{border-left-color:#b44839}
#assignmentCard .assignment-driver-table tr.unavailable{background:#f1f1f1;color:#686868}
#assignmentCard .assignment-driver-table tr.unavailable th{border-left-color:#999}
#assignmentCard .assignment-columns h3{font-size:11px;margin:4px 0}
#assignmentCard .assignment-chips{font-size:11px;gap:3px}
#assignmentCard .assignment-chip{padding:3px 5px}
#assignmentCard .assignment-chip small{font-size:9px}
#assignmentCard .assignment-columns section>p{font-size:10px;margin:3px 0}
@media(min-width:1150px){#assignmentCard .assignment-driver-tables{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:start}#assignmentCard .assignment-driver-table{font-size:10px}#assignmentCard .assignment-driver-table th,#assignmentCard .assignment-driver-table td{padding:3px 4px}}
@media(max-width:900px){#assignmentCard .assignment-columns{grid-template-columns:1fr}}
@media(max-width:550px){#assignmentCard .assignment-driver-table{min-width:460px}#assignmentCard .assignment-driver-table th,#assignmentCard .assignment-driver-table td{padding:5px 6px}#assignmentCard .assignment-note{font-size:11px}}

/* Facts share a compact row and wrap naturally on smaller screens. */
#planView .plan-sticky-summary #assignmentCard summary{display:flex;align-items:center;column-gap:24px;row-gap:7px;padding:7px 10px;flex-wrap:wrap}
#assignmentCard summary>span{display:inline;line-height:1.35}
#assignmentCard summary>small{margin-left:auto}
@media(max-width:600px){#planView .plan-sticky-summary #assignmentCard summary{column-gap:14px}}
