.team-work-bar,.team-work-filters { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.team-work-bar { margin-bottom:10px; }
.team-work-bar .field { flex-direction:row; align-items:center; gap:7px; min-width:0; }
.team-work-bar select { width:auto; max-width:min(260px,55vw); }
.team-work-filters { margin-bottom:10px; }
.team-work-filters button[aria-pressed=true] { color:#5c3b0d; background:#f6e4bd; border-color:#ba995c; }
.team-work-filters strong { font-variant-numeric:tabular-nums; margin-inline-start:3px; }
.team-work-panel { border:1px solid var(--line); border-radius:8px; background:#fffdf8; }
.team-table-scroll { overflow:auto; max-height:62svh; }
.team-task-table { border-collapse:separate; border-spacing:0; }
.team-task-table th { background:#f3ecdf; }
.team-task-table td { vertical-align:top; white-space:normal; }
.team-task-table td:first-child { min-width:200px; }
.team-task-table td small { display:block; margin-top:4px; color:var(--muted); }
.team-task-title { display:flex; flex-wrap:wrap; gap:4px 7px; margin-bottom:5px; }
.team-task-title strong { color:#362719; }
.team-task-description { white-space:pre-wrap; overflow-wrap:anywhere; }
.team-tag,.team-blocking,.team-late { padding:2px 5px; border-radius:4px; font-size:.74rem; }
.team-tag { margin-inline-start:3px; background:#f2eadd; color:#685636; }
.team-blocking,.team-late { background:#f9e5df; color:#8b3627; }
.team-late { display:table; margin-top:3px; }
.team-deadline { font-variant-numeric:tabular-nums; }
.team-empty { padding:24px 15px; color:var(--muted); text-align:center; }
.team-row-check { display:block; margin-top:5px; font-size:.78rem; }
.team-handover-dialog { width:min(1000px,calc(100% - 24px)); }
.team-handover-dialog .team-table-scroll { max-height:46svh; }
.handover-summary > :last-child { display:block; }
.team-shipping-reasons { padding:10px 12px 10px 28px; margin:0 0 10px; border-radius:6px; color:#842e23; background:#f9e5df; }
.team-check-list { display:grid; gap:8px; margin-bottom:10px; }
.team-check-list label { display:flex; align-items:flex-start; gap:8px; }
.team-check-list input { flex-shrink:0; }
.trace-check-panel { margin-block:12px; padding:12px; border:1px solid var(--line); border-radius:8px; }
.trace-check-panel h3 { margin:0 0 8px; font-size:1rem; }
.trace-expected { display:flex; flex-wrap:wrap; gap:6px; padding:0; margin:0 0 8px; list-style:none; }
.trace-expected li { display:flex; flex-wrap:wrap; gap:6px; padding:4px 7px; border-radius:6px; background:#f4eee4; overflow-wrap:anywhere; }
.trace-expected li[data-matched] { color:#30553b; background:#e5efe7; }
.trace-check-panel .stock-scan-form { margin-bottom:6px; }
.trace-check-panel [data-trace-message]:empty { display:none; }
@media(max-width:650px) {
  .team-task-table td,.team-task-table th { padding:7px 8px; }
  .team-task-table td:first-child { min-width:148px; }
  .team-task-table td .actions { flex-wrap:wrap; }
  .team-table-scroll { max-height:none; }
}

.team-queue-switch { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-bottom:10px; }
.team-queue-switch button { min-height:50px; padding:8px 10px; display:flex; align-items:center; justify-content:space-between; gap:6px; text-align:start; }
.team-queue-switch button[aria-pressed=true] { color:#5c3b0d; background:#f6e4bd; border-color:#ba995c; font-weight:650; }
.team-queue-switch strong { border-radius:5px; padding:2px 6px; color:#604213; background:#f7ead2; font-variant-numeric:tabular-nums; }
@media(max-width:720px) { .team-queue-switch { grid-template-columns:repeat(2,minmax(0,1fr)); } }


.yun-dialog .yun-form { display: flex; flex-direction: column; gap: 9px; }
.yun-dialog .yun-form h3 { margin: 10px 0 1px; }
.yun-dialog .yun-form .note, .yun-dialog .yun-form .muted { margin: 0; }
.yun-dialog .form-grid { gap: 9px 14px; }
.yun-dialog .yun-declaration { border: 1px solid var(--line); border-radius: 7px; padding: 9px 12px; margin: 0 0 8px; min-width: 0; }
.yun-dialog .yun-declaration > button { margin-top: 9px; }
.yun-dialog .yun-print-link { display: inline-block; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; margin-top: 10px; }
