/* Order Statuses Table Styling */
.home-table-container {
    overflow-x: auto;
}

.home-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.home-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4px 8px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-table th:nth-child(4), /* Load Board column */
.home-table th:nth-child(5) { /* Price column */
    text-align: right;
}

.home-table th:nth-child(6), /* Status column */
.home-table th:nth-child(7) { /* Date column */
    text-align: center;
}

.home-table td {
    padding: 4px 8px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

.offer-row:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.offer-row.current {
    background-color: #fff3e0 !important;
    border-left: 4px solid #ff9800;
    box-shadow: inset 4px 0 0 #ff9800, 0 1px 3px rgba(255, 152, 0, 0.1);
}

.offer-row.current:hover {
    background-color: #ffe0b2 !important;
    transform: translateY(-1px);
    box-shadow: inset 4px 0 0 #ff9800, 0 4px 8px rgba(255, 152, 0, 0.15);
}

.order-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.order-link:hover {
    text-decoration: underline;
}

.carrier-location {
    min-width: 120px;
    font-size: 13px;
}

.location {
    color: #333;
    font-weight: 500;
}

.no-location {
    color: #999;
    font-style: italic;
    font-size: 12px;
}

.load-board-cell {
    text-align: right;
    font-weight: 500;
}

.load-board-price {
    color: #6c757d;
    font-size: 14px;
}

.price-cell {
    text-align: right;
    font-weight: 500;
}

.requested-price {
    color: #28a745;
    font-size: 14px;
}

.base-price {
    color: #6c757d;
    font-size: 14px;
}

.no-price {
    color: #dc3545;
    font-style: italic;
    font-size: 14px;
}

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

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-accepted, .status-ok {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #e2d9f3;
    color: #4a1f7a;
}

.status-new {
    background: #cce5ff;
    color: #004085;
}

.status-picked_up {
    background: #f8d7da;
    color: #721c24;
}

.status-canceled {
    background: #e9ecef;
    color: #495057;
}

.route-cell {
    color: #666;
    max-width: 150px;
}

.route {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.date-cell {
    font-size: 12px;
    color: #666;
    text-align: center;
    min-width: 70px;
}

/* All tables - center all content */
.home-table th,
.home-table td {
    text-align: center !important;
}

/* Missing quote row styling */
.missing-quote-row td {
    text-align: center;
    padding: 12px;
    font-style: italic;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 200px;
    white-space: normal;
}

.missing-quote-row a {
    color: #2962ff;
    font-size: 18px;
}

.missing-quote-row a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .home-table {
        font-size: 12px;
    }

    .home-table th,
    .home-table td {
        padding: 8px 4px;
    }

    .carrier-location {
        min-width: 100px;
    }

    .route-cell {
        max-width: 100px;
    }
}
