﻿.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
<!--
Order list -->
.order-container {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 1rem;
}

/* Scrollable table */
.scrollable-table {
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: auto;
}

/* Sticky header */
.sticky-header th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 2;
}

/* Search box styling */
.search-box {
    background-color: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .table th,
    .table td {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .scrollable-table {
        max-height: 50vh;
    }

    .btn-sm {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 576px) {
    .main-top-section span {
        font-size: 1.2rem;
    }

    .order-container {
        padding: 0.5rem;
    }

    .table {
        font-size: 0.85rem;
    }
}

<!--Order details -->
.order-details-container {
    padding: 1rem;
    background-color: #f8f9fa;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .order-details-container {
        padding: 0.8rem;
    }

    .table th, .table td {
        white-space: nowrap;
    }

    select.form-select-sm {
        width: 100%;
    }

    .card {
        padding: 1rem !important;
    }

    .btn-sm {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .table-responsive {
        overflow-x: auto;
    }

    h5 {
        font-size: 1.1rem;
    }

    .row.g-3 > * {
        flex: 1 1 100%;
    }

    .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}
/* Make table scrollable */
.scrollable-table {
    max-height: 55vh;
    overflow-y: auto;
    overflow-x: auto;
}

/* Fix header on scroll */
.sticky-header th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 2;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .scrollable-table {
        max-height: 50vh;
    }

    .table th,
    .table td {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .form-select-sm {
        font-size: 0.85rem;
        padding: 0.25rem;
    }

    .btn-sm {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .table th, .table td {
        font-size: 0.8rem;
    }

    .scrollable-table {
        max-height: 45vh;
    }
}