.staff-grid {
    align-items: start;
}

.staff-toolbar,
.staff-filters,
.staff-pagination {
    justify-content: space-between;
}

.staff-toolbar__group,
.staff-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.staff-filters {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.7fr) auto;
    gap: 14px;
    margin-top: 18px;
}

.staff-field {
    display: grid;
    gap: 8px;
}

.staff-field__label {
    font-size: 0.9rem;
    font-weight: 800;
    color: #475569;
}

.staff-field__input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    border-radius: 16px;
    padding: 14px 16px;
    outline: none;
}

.staff-field__input:focus {
    border-color: rgba(15, 23, 42, 0.45);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.06);
}

.staff-message {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    font-weight: 700;
}

.staff-message--info {
    background: rgba(219, 234, 254, 0.82);
    color: #1d4ed8;
}

.staff-message--success {
    background: rgba(220, 252, 231, 0.92);
    color: #15803d;
}

.staff-message--error {
    background: rgba(254, 226, 226, 0.92);
    color: #b91c1c;
}

.staff-stats {
    margin-top: 18px;
}

.staff-stat {
    flex: 1 1 160px;
    min-width: 0;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.88);
}

.staff-stat__label {
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 700;
}

.staff-stat__value {
    margin-top: 6px;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
}

.staff-orders {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.staff-order,
.staff-empty,
.staff-detail__section {
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.88);
}

.staff-order {
    padding: 18px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.staff-order:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 23, 42, 0.16);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.staff-order.is-selected {
    border-color: rgba(15, 23, 42, 0.32);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.staff-order__top,
.staff-order__meta,
.staff-detail__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 14px;
    align-items: center;
}

.staff-order__code,
.staff-detail__code {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
}

.staff-order__status,
.staff-detail__status,
.staff-action.is-active {
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 800;
}

.staff-status--pending {
    background: #fef3c7;
    color: #92400e;
}

.staff-status--preparing {
    background: #dbeafe;
    color: #1d4ed8;
}

.staff-status--ready {
    background: #dcfce7;
    color: #15803d;
}

.staff-status--completed {
    background: #ede9fe;
    color: #6d28d9;
}

.staff-status--cancelled {
    background: #fee2e2;
    color: #b91c1c;
}

.staff-order__title,
.staff-detail__title {
    margin: 12px 0 0;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
}

.staff-order__copy,
.staff-detail__copy,
.staff-empty {
    color: #475569;
    line-height: 1.8;
    font-weight: 500;
}

.staff-order__meta {
    margin-top: 14px;
    color: #64748b;
    font-size: 0.92rem;
}

.staff-empty {
    padding: 24px;
}

.staff-pagination {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.staff-pagination__label {
    font-weight: 800;
    color: #475569;
}

.staff-detail {
    display: grid;
    gap: 14px;
}

.staff-detail--empty {
    color: #64748b;
}

.staff-detail__section {
    padding: 18px;
}

.staff-detail__label {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 800;
}

.staff-detail__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.staff-detail__chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.95);
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
}

.staff-status-actions {
    margin-top: 18px;
}

.staff-action {
    min-width: 140px;
}

@media (max-width: 900px) {
    .staff-filters {
        grid-template-columns: 1fr;
    }

    .staff-filter-actions {
        justify-content: stretch;
    }

    .staff-filter-actions .button-primary,
    .staff-filter-actions .button-tertiary,
    .staff-pagination .button-tertiary,
    .staff-status-actions .button-secondary {
        width: 100%;
    }
}
