/* ===================================
   DealernetX - Common Page Styles
   Shared styles for multiple pages
   =================================== */

/* ===================================
   Common Page Headers
   =================================== */
.page-header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.1);
}

.page-header.centered {
    text-align: center;
}

.page-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 600;
}

.page-header p {
    margin: 0;
    opacity: 0.95;
    font-size: 1.1rem;
}

/* ===================================
   Alert Messages
   =================================== */
.alert-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.alert-warning p {
    margin: 0;
}

.alert-info {
    background: #eff6ff;
    border: 1px solid #3b82f6;
    color: #1e40af;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #22c55e;
    color: #166534;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

/* ===================================
   Filter Cards
   =================================== */
.filter-card {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    margin-bottom: 2rem;
}

.filter-card h2 {
    margin: 0 0 1.25rem 0;
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 600;
}

.filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group,
.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 0 0 auto;
    position: relative;
}

.filter-group label,
.filter-item label {
    font-weight: 600;
    color: #374151;
    font-size: 0.8rem;
    white-space: nowrap;
}

.filter-group select,
.filter-group input,
.filter-item select,
.filter-item input {
    padding: 0.6rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #f9fafb;
    transition: all 0.2s;
    min-width: 140px;
}

.filter-group select:focus,
.filter-group input:focus,
.filter-item select:focus,
.filter-item input:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.date-range {
    flex: 0 0 auto;
}

.filter-date-pair {
    display: flex;
    flex-direction: row !important;
    gap: 1rem !important;
    align-items: flex-end;
}

.date-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-inputs input {
    width: 120px;
    min-width: 100px;
}

.date-separator {
    color: #64748b;
    font-weight: 500;
}

.field-hint {
    position: absolute;
    bottom: -1.1rem;
    left: 0;
    font-size: 0.65rem;
    color: #94a3b8;
    font-style: italic;
    white-space: nowrap;
}

/* ===================================
   Page Cards / Content Cards
   =================================== */
.page-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    margin-bottom: 2rem;
}

.page-card h2 {
    margin: 0 0 1.5rem 0;
    color: #1e293b;
    font-size: 1.3rem;
}

/* ===================================
   Common Form Styles
   =================================== */
.form-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.form-row:last-child {
    border-bottom: none;
}

.form-label {
    font-weight: 500;
    color: #475569;
}

.form-input {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input:disabled {
    background: #f8fafc;
    color: #94a3b8;
}

select.form-input {
    cursor: pointer;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input {
    cursor: pointer;
}

/* ===================================
   Common Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-refresh {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-refresh:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ===================================
   Data Tables
   =================================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 2px solid #e2e8f0;
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

.data-table a {
    color: #2563eb;
    text-decoration: none;
}

.data-table a:hover {
    text-decoration: underline;
}

/* ===================================
   Status Badges
   =================================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.status-accepted,
.status-active,
.status-success {
    background: #d1fae5;
    color: #065f46;
}

.status-declined,
.status-cancelled,
.status-error {
    background: #fee2e2;
    color: #991b1b;
}

.status-archived,
.status-inactive {
    background: #e2e8f0;
    color: #475569;
}

.status-expired {
    background: #fef2f2;
    color: #991b1b;
}

/* ===================================
   Page Layouts
   =================================== */
.offers-page,
.priceguide-page,
.product-page,
.search-page,
.comparison-page,
.calendar-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===================================
   Price Comparison Page
   =================================== */
.comparison-page .results-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    margin-bottom: 2rem;
}

.comparison-page .results-card h3 {
    margin: 0 0 1.25rem 0;
    color: #1e293b;
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comparison-page .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
}

.comparison-page .data-table .price-col {
    text-align: right;
    white-space: nowrap;
}

.comparison-page .data-table .price {
    text-align: right;
    font-weight: 600;
    color: #059669;
    white-space: nowrap;
}

.comparison-page .data-table .upc-cell {
    font-family: monospace;
    font-size: 0.8rem;
    color: #64748b;
}

.comparison-page .no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.comparison-page .no-results i {
    font-size: 2.5rem;
    color: #cbd5e1;
}

.comparison-page .no-results p {
    color: #64748b;
}

.comparison-page .filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .comparison-page .results-card {
        padding: 1rem;
    }

    .comparison-page .data-table th,
    .comparison-page .data-table td {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }

    .comparison-page .filter-actions {
        flex-direction: row;
        width: 100%;
    }

    .comparison-page .filter-actions .btn-primary,
    .comparison-page .filter-actions .btn-secondary {
        flex: 1;
        justify-content: center;
    }
}

/* ===================================
   Product Calendar Page
   =================================== */
.calendar-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.calendar-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto 1.5rem;
}

.calendar-content a {
    color: #2563eb;
    text-decoration: none;
}

.calendar-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .calendar-card {
        padding: 1rem;
    }
}

/* ===================================
   Modern Offers Table
   =================================== */
.offers-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 1.5rem;
}

.offers-container .table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    flex-wrap: wrap;
    gap: 12px;
}

.offers-container .table-info {
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.offers-container .table-info i {
    font-size: 1.1rem;
    color: #93c5fd;
}

.offers-container .legend {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.8125rem;
}

.offers-container .legend-title {
    font-weight: 600;
    opacity: 0.9;
}

.offers-container .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.85;
}

.offers-container .legend-item i {
    font-size: 0.875rem;
}

.offers-container table {
    width: 100%;
    border-collapse: collapse;
}

.offers-container thead {
    background: #f8fafc;
}

.offers-container thead th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
}

.offers-container tbody tr.offer-row {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.offers-container tbody tr.offer-row:hover {
    background: #f8fafc;
}

.offers-container tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    font-size: 0.9375rem;
    color: #1e293b;
}

/* Toggle Button */
.offers-container .toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-right: 8px;
    transition: transform 0.2s ease, color 0.2s ease;
    vertical-align: middle;
}

.offers-container .toggle-btn i {
    font-size: 1.25rem;
    color: #2563eb;
}

.offers-container .toggle-btn:hover {
    transform: scale(1.1);
}

.offers-container .toggle-btn:hover i {
    color: #1d4ed8;
}

/* OID Number */
.offers-container .oid-number {
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    font-weight: 600;
    color: #374151;
}

/* Dealer Name/Link */
.offers-container .dealer-name {
    color: #64748b;
}

.offers-container .dealer-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.offers-container .dealer-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Amount Cell */
.offers-container .amount-cell {
    white-space: nowrap;
}

.offers-container .amount {
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    font-weight: 600;
    color: #059669;
}

.offers-container .counter-badge {
    display: inline-block;
    padding: 3px 8px;
    margin-left: 8px;
    vertical-align: middle;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Status Badges */
.offers-container .status-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
}

/* Action Icons */
.offers-container .action-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.offers-container .action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.offers-container .action-icon i {
    font-size: 1rem;
}

.offers-container .action-icon.rated {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #ffffff;
    position: relative;
}

.offers-container .action-icon.rated > i {
    font-size: 1.25rem;
}

.offers-container .action-icon.rated .rating-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.6rem;
    font-weight: 800;
    color: #92400e;
    line-height: 1;
    pointer-events: none;
    margin-top: 1px;
}

.offers-container .action-icon.not-rated {
    background: #f1f5f9;
    color: #94a3b8;
}

.offers-container .action-icon.shipped {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}

.offers-container .action-icon.not-shipped {
    background: #f1f5f9;
    color: #94a3b8;
}

.offers-container .action-icon.has-chat {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
}

.offers-container .action-icon.no-chat {
    background: #f1f5f9;
    color: #94a3b8;
}

.offers-container .action-icon.has-assistance {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #ffffff;
}

.offers-container .action-icon.print {
    background: #f1f5f9;
    color: #64748b;
}

.offers-container .action-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===================================
   Offer Items Expanded Row
   =================================== */
.offers-container .offer-items-row {
    background: #f8fafc;
}

.offers-container .offer-items-row td {
    padding: 0;
}

.offers-container .offer-items-cell {
    padding: 0 !important;
}

.offers-container .offer-items-table {
    padding: 20px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-top: 2px solid #2563eb;
}

.offers-container .items-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.offers-container .items-table thead {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.offers-container .items-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    border-bottom: none;
}

.offers-container .items-table tbody tr.item-row {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.offers-container .items-table tbody tr.item-row:last-child {
    border-bottom: none;
}

.offers-container .items-table tbody tr.item-row:hover {
    background: #f8fafc;
}

.offers-container .items-table td {
    padding: 14px 16px;
    vertical-align: middle;
    font-size: 0.875rem;
    color: #334155;
}

/* Product Cell */
.offers-container .product-cell {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.offers-container .product-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offers-container .product-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.offers-container .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.offers-container .product-info {
    flex: 1;
    min-width: 0;
}

.offers-container .product-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    display: block;
    transition: color 0.2s ease;
}

.offers-container .product-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.offers-container .item-notes {
    display: block;
    margin-top: 6px;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.4;
}

.offers-container .item-notes strong {
    color: #475569;
}

/* Table Cell Alignments */
.offers-container .upc-cell {
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    font-size: 0.8125rem;
    color: #64748b;
}

.offers-container .qty-cell {
    text-align: center;
    font-weight: 600;
}

.offers-container .qty-warning {
    color: #f97316;
    font-weight: 700;
    margin-left: 4px;
}

.offers-container .price-cell,
.offers-container .subtotal-cell {
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    font-weight: 600;
    text-align: right;
}

.offers-container .price-cell {
    color: #64748b;
}

.offers-container .subtotal-cell {
    color: #059669;
}

/* Total Row */
.offers-container .items-table .total-row {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 2px solid #e2e8f0;
}

.offers-container .items-table .total-row th,
.offers-container .items-table .total-row td {
    padding: 14px 16px;
    font-size: 0.9375rem;
}

.offers-container .items-table .total-row th {
    text-align: right;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.offers-container .total-amount {
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    font-size: 1rem !important;
    font-weight: 700;
    color: #059669;
    text-align: right;
}

/* Alert Styling */
.offers-page .alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    border: 1px solid #fbbf24;
}

.offers-page .alert i {
    font-size: 1.25rem;
    color: #d97706;
}

/* No Results */
.offers-page .no-results,
.search-page .no-results,
.comparison-page .no-results {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.offers-page .no-results i,
.search-page .no-results i,
.comparison-page .no-results i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.offers-page .no-results h3,
.search-page .no-results h3,
.comparison-page .no-results h3 {
    font-size: 1.25rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.offers-page .no-results p,
.search-page .no-results p,
.comparison-page .no-results p {
    color: #64748b;
    font-size: 0.9375rem;
}

/* ===================================
   Search Results Container
   =================================== */
.results-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 1.5rem;
}

.results-container .table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
}

.results-container .table-info {
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.results-container .table-info i {
    font-size: 1.1rem;
}

.results-container .result-count {
    font-size: 0.875rem;
    opacity: 0.9;
}

.results-container table {
    width: 100%;
    border-collapse: collapse;
}

.results-container thead {
    background: #f8fafc;
}

.results-container thead th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
}

.results-container tbody tr.product-row {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.results-container tbody tr.product-row:hover {
    background: #f8fafc;
}

.results-container tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    font-size: 0.9375rem;
    color: #1e293b;
}

.results-container .row-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
}

.results-container .product-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.results-container .product-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.results-container .product-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.results-container .upc-cell {
    font-family: monospace;
    font-size: 0.8125rem;
    color: #64748b;
}

.results-container .text-muted {
    color: #94a3b8;
}

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

.results-container .no-results-cell {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.results-container .no-results-cell i {
    margin-right: 8px;
}

/* Responsive Offers Table */
@media (max-width: 1024px) {
    .offers-container .table-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .offers-container .legend {
        margin-top: 8px;
    }
}

@media (max-width: 768px) {
    .offers-container table thead {
        display: none;
    }
    
    .offers-container tbody tr.offer-row {
        display: block;
        padding: 16px;
        margin-bottom: 12px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
    }
    
    .offers-container tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .offers-container tbody td:last-child {
        border-bottom: none;
    }
    
    .offers-container tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.75rem;
        text-transform: uppercase;
        color: #64748b;
        flex-shrink: 0;
        margin-right: 12px;
    }
    
    .offers-container .amount-cell {
        flex-wrap: wrap;
    }
    
    .offers-container .offer-items-table {
        padding: 12px;
    }
    
    .offers-container .items-table thead {
        display: none;
    }
    
    .offers-container .items-table tbody tr.item-row {
        display: block;
        padding: 14px;
        margin-bottom: 10px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
    }
    
    .offers-container .items-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 8px 0;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .offers-container .items-table td:last-child {
        border-bottom: none;
    }
    
    .offers-container .items-table td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.6875rem;
        text-transform: uppercase;
        color: #94a3b8;
        flex-shrink: 0;
        margin-right: 10px;
    }
    
    .offers-container .product-cell {
        flex-direction: column;
        gap: 10px;
    }
    
    .offers-container .items-table .total-row td {
        justify-content: flex-end;
    }
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1200px) {
    .filter-grid {
        flex-wrap: wrap;
    }
    
    .filter-group,
    .filter-item {
        flex: 1 1 180px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .filter-grid {
        flex-direction: column;
    }
    
    .filter-group,
    .filter-item {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .filter-group select,
    .filter-group input,
    .filter-item select,
    .filter-item input {
        width: 100%;
    }

    .date-inputs {
        flex-direction: row;
    }
    
    .date-inputs input {
        width: auto;
        flex: 1;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .offers-page,
    .priceguide-page,
    .product-page,
    .search-page,
    .comparison-page,
    .calendar-page,
    .page-card {
        padding: 1rem;
    }

    /* Search Results - Mobile Card Layout */
    .search-page .results-container {
        border-radius: 12px;
    }

    .search-page .results-container table thead {
        display: none;
    }

    .search-page .results-container tbody tr.product-row {
        display: block;
        padding: 16px;
        margin-bottom: 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .search-page .results-container tbody tr.product-row:last-child {
        border-bottom: none;
    }

    .search-page .results-container tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border-bottom: none;
    }

    .search-page .results-container tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.75rem;
        text-transform: uppercase;
        color: #64748b;
        flex-shrink: 0;
        margin-right: 12px;
    }

    .search-page .results-container tbody td.image-cell {
        justify-content: center;
    }

    .search-page .results-container tbody td.image-cell::before {
        display: none;
    }

    .search-page .results-container .product-thumb {
        width: 100px;
        height: 100px;
    }

    .search-page .results-container .table-header {
        flex-direction: column;
        gap: 4px;
        padding: 12px 16px;
    }
}
