/* EPM Build 02J - high-volume queue and order ops */

.queue-topbar {
    align-items: flex-start;
}
.queue-ops-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(245, 241, 234, .96);
    backdrop-filter: blur(8px);
    border: 1px solid #e1d3c1;
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 14px;
    align-items: center;
}
.queue-stat {
    background: #fffaf2;
    border: 1px solid #e1d3c1;
    border-radius: 16px;
    padding: 12px 14px;
}
.queue-stat span {
    display: block;
    color: #7b6c62;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.queue-stat strong {
    font-size: 34px;
    color: #3a2a21;
}
.queue-tools {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px) minmax(130px, 170px) auto;
    gap: 10px;
}
.queue-refresh-note {
    grid-column: 2;
    margin: -4px 0 0;
    font-size: 13px;
}
.queue-list {
    display: grid;
    gap: 10px;
}
.queue-row {
    display: grid;
    grid-template-columns: 52px minmax(130px, 180px) minmax(110px, 160px) minmax(180px, 1fr) 150px;
    gap: 12px;
    align-items: center;
    background: #fffaf2;
    border: 1px solid #e1d3c1;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 8px 22px rgba(58,42,33,.05);
}
.queue-row.hidden {
    display: none;
}
.queue-index {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #efe4d5;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #3a2a21;
}
.queue-order {
    font-weight: 900;
    color: #b08d57;
    font-size: 18px;
}
.queue-name,
.queue-product span {
    font-weight: 700;
}
.queue-stamp strong {
    display: block;
    font-size: 26px;
    letter-spacing: .08em;
    color: #3a2a21;
}
.queue-stamp span,
.queue-product small {
    color: #7b6c62;
    font-size: 13px;
}
.queue-action {
    display: grid;
    gap: 6px;
}
.queue-action .btn {
    margin-top: 0;
    padding: 10px 12px;
}
.quiet-link {
    text-align: center;
    color: #3a2a21;
    font-weight: 700;
}
.ready-btn {
    font-weight: 900;
}
.collection-search-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}
.collection-search-head .btn {
    margin-top: 0;
}
.collection-search-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 10px;
    align-items: end;
    margin: 18px 0;
}
.collection-search-form button,
.collection-search-form .btn {
    margin-top: 0;
}
.table-caption {
    color: #b08d57;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
    margin: 10px 0;
}
.orders-filter-bar {
    display: grid;
    grid-template-columns: minmax(140px, 190px) minmax(240px, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}
.orders-filter-actions {
    display: flex;
    gap: 8px;
}
.orders-filter-actions button,
.orders-filter-actions .btn {
    margin-top: 0;
}
.orders-search-grow {
    min-width: 0;
}

@media (max-width: 1100px) {
    .queue-ops-bar {
        grid-template-columns: 1fr;
    }
    .queue-refresh-note {
        grid-column: auto;
    }
    .queue-tools {
        grid-template-columns: 1fr 1fr;
    }
    .queue-row {
        grid-template-columns: 44px 1fr 1fr 150px;
    }
    .queue-product {
        grid-column: 2 / 4;
    }
}
@media (max-width: 760px) {
    .queue-tools,
    .collection-search-form,
    .orders-filter-bar {
        grid-template-columns: 1fr;
    }
    .orders-filter-actions {
        flex-direction: column;
    }
    .queue-row {
        grid-template-columns: 44px 1fr;
        align-items: start;
    }
    .queue-stamp,
    .queue-product,
    .queue-action {
        grid-column: 1 / -1;
    }
    .queue-action {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    .queue-action .btn {
        width: 100%;
    }
    .collection-search-head {
        flex-direction: column;
    }
    .collection-search-head .btn {
        width: 100%;
    }
}
