/* ===================================
   Order Status Tabs v2.2
   Beautiful, modern tab navigation
   =================================== */

/* ---- Container ---- */
.order-actions-container {
    margin-bottom: 1.5rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.order-actions-container>div:not(.order-status-tabs-wrapper) {
    padding: 0.85rem 1.25rem;
}

/* ---- Tab Wrapper ---- */
.order-status-tabs-wrapper {
    border-top: 1px solid #f0f0f0;
    background: linear-gradient(to bottom, #fafbfd, #f5f7fa);
    padding: 0.25rem 0 0 0;
}

/* ---- Tab Nav ---- */
.order-status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0 0.75rem;
    list-style: none;
}

.order-status-tabs .tab-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 1rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1;
    border-bottom: 2.5px solid transparent;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
    cursor: pointer;
    background: transparent;
    white-space: nowrap;
}

.order-status-tabs .tab-link:hover {
    color: #374151;
    background: rgba(59, 130, 246, 0.05);
}

.order-status-tabs .tab-link.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: rgba(59, 130, 246, 0.06);
}

/* ---- Tab Label ---- */
.order-status-tabs .tab-link .tab-label {
    font-weight: 500;
}

.order-status-tabs .tab-link.active .tab-label {
    font-weight: 600;
}

/* ---- Count Badge ---- */
.order-status-tabs .tab-link .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    background: #e5e7eb;
    border-radius: 11px;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.order-status-tabs .tab-link:hover .tab-count {
    background: #d1d5db;
}

.order-status-tabs .tab-link.active .tab-count {
    color: #fff;
    background: #2563eb;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.35);
}

.order-status-tabs .tab-link.active:hover .tab-count {
    background: #1d4ed8;
}

/* ---- No Results Message ---- */
.ost-no-results {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 2.5rem 1rem;
    color: #9ca3af;
    font-size: 0.95rem;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    margin-top: 1.25rem;
}

.ost-no-results svg {
    flex-shrink: 0;
    opacity: 0.5;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .order-actions-container {
        border-radius: 10px;
        margin-bottom: 1rem;
    }

    .order-status-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding: 0 0.5rem;
        scrollbar-width: none;
        gap: 2px;
    }

    .order-status-tabs::-webkit-scrollbar {
        display: none;
    }

    .order-status-tabs .tab-link {
        padding: 0.55rem 0.75rem;
        font-size: 0.8125rem;
        gap: 6px;
    }

    .order-status-tabs .tab-link .tab-count {
        min-width: 20px;
        height: 20px;
        font-size: 0.7rem;
        padding: 0 5px;
    }
}

@media (max-width: 480px) {
    .order-status-tabs .tab-link {
        padding: 0.5rem 0.625rem;
        font-size: 0.75rem;
        gap: 4px;
    }

    .order-status-tabs .tab-link .tab-count {
        min-width: 18px;
        height: 18px;
        font-size: 0.65rem;
        padding: 0 4px;
    }
}