/* Pedidos de Compra — lista orientada a ação + mobile */

.orders-status-details > summary {
    list-style: none;
}

.orders-status-details > summary::-webkit-details-marker {
    display: none;
}

.orders-status-details[open] .orders-status-chevron i {
    transform: rotate(180deg);
}

.orders-status-chevron i {
    transition: transform 0.2s ease;
}

.status-kpi-btn {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: none;
}

.status-kpi-btn:hover {
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.status-kpi-btn:active {
    transform: scale(0.98);
}

.orders-quick-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 40px;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.orders-quick-filter-btn:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.orders-quick-filter-btn.active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.orders-action-summary:not(.hidden) + .orders-quick-filters {
    margin-top: 0;
}

.orders-action-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 64px;
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    text-align: left;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.orders-action-card:active {
    transform: scale(0.98);
}

.orders-action-card.active {
    box-shadow: 0 0 0 2px #2563eb;
}

.orders-action-card__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.orders-action-card__count {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
}

.orders-action-card__label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    opacity: 0.9;
}

.orders-action-card--amber {
    background: #fffbeb;
    color: #92400e;
}

.orders-action-card--amber .orders-action-card__icon {
    background: #fde68a;
    color: #b45309;
}

.orders-action-card--orange {
    background: #fff7ed;
    color: #9a3412;
}

.orders-action-card--orange .orders-action-card__icon {
    background: #fed7aa;
    color: #c2410c;
}

.orders-action-card--red {
    background: #fef2f2;
    color: #991b1b;
}

.orders-action-card--red .orders-action-card__icon {
    background: #fecaca;
    color: #b91c1c;
}

.orders-action-card--slate {
    background: #f8fafc;
    color: #334155;
}

.orders-action-card--slate .orders-action-card__icon {
    background: #e2e8f0;
    color: #475569;
}

.orders-list-toolbar {
    top: 0;
}

@media (max-width: 1023px) {
    .orders-list-toolbar {
        top: 0;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

#order-list .order-item--attention {
    border-left-width: 4px;
    border-left-color: #f59e0b;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.65) 0%, transparent 48%);
}

#order-list .item-protocol {
    letter-spacing: 0.03em;
}

#order-list .item-context {
    line-height: 1.35;
}

#order-nav-tabs .order-tab-btn {
    border-radius: 0.5rem 0.5rem 0 0;
    font-weight: 600;
}

#order-nav-tabs .order-tab-btn.active {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-bottom-color: #fff;
    margin-bottom: -1px;
    color: #1d4ed8;
}

.orders-quick-filters {
    scrollbar-width: thin;
}

.orders-quick-filters::-webkit-scrollbar {
    height: 4px;
}
