/* ════════════════════════════════════════════════════════════════
   BÜRO: ALLE AUFTRÄGE UND AKTIVITÄTEN (pages/all-orders.js)
   ════════════════════════════════════════════════════════════════ */

.all-page { max-width: 1280px; }
.all-tabs { margin-bottom: var(--s-5); }
.all-tabs .segmented button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; font-size: 14px; padding: 0 var(--s-5); }
.all-tabs .segmented .ico { width: 16px; height: 16px; }

/* ─── Filter ─── */
.all-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.all-groups .segmented button { display: inline-flex; align-items: center; gap: 6px; }
.all-selects { display: flex; gap: var(--s-2); }
.all-selects .form-select, .act-filters .form-select, .act-filters .form-input { height: 42px; min-width: 150px; width: auto; margin: 0; }

/* ─── Auftragstabelle ─── */
.all-table { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.all-row {
    position: relative;
    display: grid; grid-template-columns: 112px minmax(0, 1.6fr) minmax(0, 1.5fr) 110px minmax(0, 1fr);
    gap: var(--s-4); align-items: center; padding: 12px 16px; min-height: 64px;
    color: inherit; text-decoration: none; border-bottom: 1px solid var(--divider);
    transition: background var(--duration-fast);
}
.all-row:last-child { border-bottom: 0; }
a.all-row:hover { background: var(--surface-hover); }
a.all-row:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.all-row.priority-urgent::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--pri-urgent); }
.all-head {
    min-height: 0; padding-top: 10px; padding-bottom: 10px; background: var(--surface-2);
    font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600;
}
.all-no { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.all-main { display: flex; flex-direction: column; min-width: 0; }
.all-title { font-weight: 620; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.all-sub { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.all-sub .mono { font-size: 12px; color: var(--ink-mute); }
.all-state { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.all-chips { display: contents; }
.all-date, .all-last { font-size: 13px; color: var(--ink-3); }
.all-by { color: var(--ink-mute); }
.all-k { display: none; }
.all-row.is-done .all-title { color: var(--ink-2); font-weight: 560; }
.all-more { display: flex; justify-content: center; padding: var(--s-5) 0 var(--s-2); }

@media (max-width: 1080px) {
    .all-row { grid-template-columns: 100px minmax(0, 1fr) minmax(0, 1fr); }
    .all-head span:nth-child(n+4) { display: none; }
    .all-date { display: none; }
    .all-last { grid-column: 2 / -1; margin-top: -6px; font-size: 12.5px; }
    .all-k { display: inline; }
}
@media (max-width: 680px) {
    .all-filters { flex-direction: column; align-items: stretch; }
    .all-selects .form-select { flex: 1; min-width: 0; }
    .all-page .all-groups .segmented { display: flex; flex-wrap: wrap; width: 100%; }
    .all-page .all-groups .segmented button { flex: 1 1 auto; min-width: 0; justify-content: center; padding: 0 10px; }
    .all-head { display: none; }
    .all-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 14px; }
    .all-last { grid-column: auto; margin-top: 0; }
}

/* ─── Aktivitäten ─── */
.act-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-bottom: var(--s-4); }
.act-find { flex: 1 1 320px; margin-bottom: 0; }
.act-find input { height: 42px; border-radius: var(--r-md); font-size: 15px; }
.act-day {
    font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600;
    margin: var(--s-5) 2px var(--s-2);
}
.act-day:first-child { margin-top: 0; }
.act-list { list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.act-item {
    display: grid; grid-template-columns: 48px 34px minmax(0, 1fr) auto; gap: var(--s-3); align-items: start;
    padding: 11px 16px; border-bottom: 1px solid var(--divider);
}
.act-item:last-child { border-bottom: 0; }
.act-time { font-size: 13px; color: var(--ink-mute); padding-top: 7px; }
.act-ico {
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: var(--station-bg, var(--bg-inset)); color: var(--station-color, var(--ink-3));
    border: 1px solid color-mix(in oklab, var(--station-color, var(--ink-mute)) 22%, var(--border));
}
.act-ico .ico { width: 17px; height: 17px; }
.act-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 1px; }
.act-head { font-size: 14.5px; color: var(--ink); line-height: 1.4; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.act-head strong { font-weight: 650; }
.act-arrow { width: 14px; height: 14px; color: var(--ink-mute); }
.act-scan { font-size: 11px; }
.act-note { font-size: 13.5px; color: var(--ink-2); }
.act-order { font-size: 13px; color: var(--ink-3); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.act-order:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.act-order .mono { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.act-order.is-gone { color: var(--ink-faint); }
.act-who { font-size: 13px; color: var(--ink-2); font-weight: 550; white-space: nowrap; padding-top: 7px; }
.act-end { text-align: center; font-size: 13px; color: var(--ink-mute); padding: var(--s-5) 0 var(--s-2); }

@media (max-width: 680px) {
    .act-filters .form-select, .act-filters .form-input { flex: 1 1 45%; min-width: 0; }
    .act-item { grid-template-columns: 34px minmax(0, 1fr); padding: 11px 14px; }
    .act-ico { grid-row: 1 / span 2; }
    .act-time, .act-who { padding-top: 0; font-size: 12px; }
    .act-time { grid-column: 2; grid-row: 2; order: 3; }
    .act-main { grid-column: 2; grid-row: 1; }
    .act-who { grid-column: 2; grid-row: 2; justify-self: end; }
}
