/* Ein Auftrag bleibt optisch eine Einheit, auch bei mehreren Teilausfuehrungen. */
#ordersPanel { min-width:0; }
#ordersPanel .order-scroll { max-height:none; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.order-table { min-width:1100px; }
#ordersPanel .order-table th,#ordersPanel .order-table td { padding:14px 12px; border-color:var(--line); }
#ordersPanel .order-table th { font-size:10px; color:var(--muted); font-weight:600; letter-spacing:.025em; }
.order-table td { vertical-align:top; font-size:12px; }
.order-table .order-info { min-width:210px; max-width:280px; }
.order-info strong,.order-info span,.order-info small { display:block; }
.order-info strong { margin-bottom:7px; font-size:13px; color:var(--ink); }
.order-info span { margin-bottom:6px; color:var(--muted); }
.order-info small { color:var(--muted); font-size:10px; line-height:1.7; }
.order-table .order-number { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.order-time { min-width:90px; max-width:120px; line-height:1.6; color:var(--muted); font-size:11px; }
.order-status,.order-action { white-space:nowrap; }
.order-status[data-status=open] { color:var(--accent); }
.order-status[data-status=filled] { color:var(--green); }
.order-status[data-status=cancelled] { color:var(--muted); }
.order-action button { border:1px solid var(--line); color:var(--muted); background:var(--surface-raised); font-size:11px; padding:8px 10px; }
.order-action button:hover:enabled { border-color:var(--red); color:var(--red); }
.order-partner { min-width:95px; max-width:170px; overflow-wrap:anywhere; }
.order-execution.order-start td { border-top:2px solid var(--line); }
.order-execution.order-start:first-child td { border-top:0; }
.order-execution:not(.order-start) td { background:color-mix(in srgb,var(--surface-raised) 45%,var(--surface)); }
.order-execution .order-missing { color:var(--muted); font-size:11px; white-space:normal; }
#ordersPanel .orderhistoryhead { padding-top:28px; border-top:1px solid var(--line); margin-top:28px; }
.order-table:has(tbody .empty) { min-width:0; }
.order-table:has(tbody .empty) thead { display:none; }
#ordersPanel .empty { color:var(--muted); padding:32px 20px; }
.ordercards { display:none; }
.ordercard { border:1px solid var(--line); background:var(--surface); border-radius:12px; padding:18px; min-width:0; }
.ordercard-open { border-left:3px solid var(--accent); }
.ordercard-filled { border-left:3px solid var(--green); }
.ordercardhead { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ordercardhead strong,.ordercardhead span { display:block; overflow-wrap:anywhere; }
.ordercardhead strong { font-size:14px; }
.ordercardhead span { margin-top:6px; color:var(--muted); font-size:11px; }
.ordercardhead button { min-height:44px; flex-shrink:0; background:var(--surface-raised); color:var(--muted); border:1px solid var(--line); }
.ordercard p { font-size:12px; line-height:1.6; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.ordercard small { color:var(--muted); font-size:10px; }
.ordercard details { margin-top:12px; border-top:1px solid var(--line); }
.ordercard summary { color:var(--accent); font-size:11px; }
.firstdelivery { max-width:650px; margin:20px auto; text-align:left; }
.firstdelivery li { margin:12px 0; line-height:1.6; }
@media(max-width:760px) {
 #ordersPanel .order-scroll { display:none; }
 .ordercards { display:grid; gap:12px; }
 #ordersPanel .orderhistoryhead { margin-top:24px; padding-top:24px; }
}
