/* Orders List Template Styles - Responsive Design */

/* Search Container */
.search-container {
    max-height: 600px;
    overflow-y: auto;
}

/* Table Styles */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    background-color: #f9fafb;
    white-space: nowrap;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-top: 1px solid #e5e7eb;
}

.table tbody tr:hover {
    background-color: #f9fafb;
}

/* Typography */
.fw-semibold {
    font-weight: 600;
}

.fw-medium {
    font-weight: 500;
}

.fw-bold {
    font-weight: 700;
}

.text-muted {
    color: #6b7280;
}

.text-primary {
    color: #3b82f6;
}

/* Spacing */
.mb-3 {
    margin-bottom: 1rem;
}

.me-1 {
    margin-right: 0.25rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.gap-2 {
    gap: 0.5rem;
}

.py-4 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

/* Layout */
.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

.text-end {
    text-align: right;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-grow-1 {
    flex-grow: 1;
}
/* Icons */
.icon {
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
}

/* Table responsive wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Ensure table is always visible */
.table {
    margin-bottom: 0;
    min-width: 100%;
}

/* Loading state styling */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}

/* Sort icons */
.sort-icon {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.sortable:hover .sort-icon {
    opacity: 1;
}

/* Dropdown styling */
.dropdown-item {
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    padding: 0.375rem 1rem;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Mobile Card View */
.table-mobile-md {
    display: none;
}

@media (max-width: 767.98px) {
    .table-mobile-md {
        display: table;
    }

    .table-mobile-md thead {
        display: none;
    }

    .table-mobile-md tbody tr {
        display: block;
        border: 1px solid #e5e7eb;
        margin-bottom: 1rem;
        border-radius: 0.375rem;
        background: white;
    }

    .table-mobile-md tbody td {
        display: block;
        border: none;
        padding: 0.75rem;
        text-align: left;
    }

    .table-mobile-md tbody td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #374151;
        display: inline-block;
        width: 120px;
    }

    .table-mobile-md tbody td:first-child {
        padding-top: 1rem;
    }

    .table-mobile-md tbody td:last-child {
        padding-bottom: 1rem;
    }
}

/* Responsive utilities */
.w-1 {
    width: 1%;
}

.bg-opacity-10 {
    --bs-bg-opacity: 0.1;
}

/* Card styling improvements */
.card {
    border: none;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.card-body {
    padding: 1.5rem;
}

/* Form improvements */
.form-control-sm {
    border-radius: 0.375rem;
}

.form-select-sm {
    border-radius: 0.375rem;
}

/* Badge styling */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Button group styling for mobile */
