/* Combipicklisten (PP-336). Karten, Kennzahlen und Fortschritt kommen aus picker/style.css. */

.combi-section {
    padding: 0 20px 20px;
}

.combi-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 10px;
}

.combi-section-head h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text, #1a1a1a);
}

.combi-hint {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted, #555555);
}

.combi-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.combi-filters input,
.combi-filters select {
    flex: 1 1 220px;
    min-width: 0;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    color: var(--text, #1a1a1a);
    background: var(--surface, #ffffff);
    border: 1.5px solid var(--border, #e6e6e6);
    border-radius: var(--r-sm, 8px);
}

.combi-orders {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.combi-order {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: var(--surface, #ffffff);
    border: 1.5px solid var(--border, #e6e6e6);
    border-radius: var(--r, 12px);
    cursor: pointer;
    transition: border-color var(--t, 0.2s);
}

.combi-order:hover {
    border-color: var(--brand-400, #fe6161);
}

.combi-order.is-selected {
    border-color: var(--brand-500, #fe0000);
}

.combi-order.is-blocked {
    cursor: not-allowed;
    opacity: 0.65;
}

.combi-order input[type="checkbox"] {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    accent-color: var(--brand-500, #fe0000);
}

.combi-order-body {
    display: block;
    flex: 1;
    min-width: 0;
}

.combi-order-top {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-bottom: 8px;
    font-size: 15px;
    color: var(--text, #1a1a1a);
}

.combi-order-customer {
    color: var(--text-muted, #555555);
    overflow-wrap: anywhere;
}

.combi-order .picklist-stats {
    margin-bottom: 0;
}

.combi-order-note {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--warning-text, #856404);
}

.combi-card-orders {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted, #555555);
    overflow-wrap: anywhere;
}

.combi-card {
    cursor: default;
}

.combi-card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.combi-card-actions .btn-secondary {
    width: auto;
}

/* Feste Leiste unten, damit die Auswahl beim Scrollen sichtbar bleibt. Neben dem Seitenmenü
   beginnt sie rechts davon, sonst läge die Zusammenfassung darunter. */
.combi-action-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--surface, #ffffff);
    border-top: 1px solid var(--border, #e6e6e6);
    box-shadow: var(--shadow, 0 -6px 16px rgba(22, 22, 22, 0.08));
}

.combi-action-bar.is-hidden {
    display: none;
}

@media (min-width: 1025px) {
    .combi-action-bar {
        left: var(--menu-sidebar-width, 0px);
    }
}

body.has-combi-action-bar .combi-page {
    padding-bottom: 110px;
}

.combi-action-summary {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 14px;
    color: var(--text, #1a1a1a);
}

.combi-action-summary span {
    font-size: 12px;
    color: var(--text-muted, #555555);
}

.combi-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.combi-action-buttons .btn-primary,
.combi-action-buttons .btn-secondary {
    width: auto;
}

@media (max-width: 767px) {
    .combi-section {
        padding: 0 16px 16px;
    }

    .combi-action-bar {
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .combi-action-buttons {
        width: 100%;
    }

    .combi-action-buttons .btn-primary,
    .combi-action-buttons .btn-secondary {
        flex: 1;
    }

    body.has-combi-action-bar .combi-page {
        padding-bottom: 170px;
    }
}
