:root {
    --primary-color: #1B429C;
    --primary-hover: #152b63;
    --background-color: white;
    --border-color: #e9ecef;
    --error-color: #dc3545;
    --text-color: #212529;
    --text-muted: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

/* Card Styling */
.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    border-radius: 8px;
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 10px;
    margin: 10px;
    background-color: #f8f9fa;
    max-height: 490px;
    overflow-y: auto;

}

/* Offer Cards */
.offer-card {
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 20px;
}

.offer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* Offer Header */
.offer-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.offer-route {
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.offer-dates {
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

/* Status Labels */
.offer-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35em 0.75em;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

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

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

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

/* Price Section */
.offer-price {
    margin-bottom: 1rem;
}

.price-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--success-color);
    margin-left: 0.5rem;
}

/* Details Section */
.offer-details {
    margin-bottom: 1rem;
}

.toggle-items {
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    transition: background-color 0.2s ease;
    border-radius: 4px;
}

.toggle-items:hover {
    background-color: #f8f9fa;
}

.items-table-container {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-top: 0.5rem;
}

/* Actions Section */
.offer-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.action-btn {
    padding: 0.5rem 2rem;
}

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

.table thead th {
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

/* Empty state */
.no-offers {
    background-color: white;
    border-radius: 6px;
    padding: 1rem;
}

.no-offers i {
    opacity: 0.6;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 767.98px) {
    .offer-header h5 {
        font-size: 1rem;
    }

    .card-header h4 {
        font-size: 1.25rem;
    }

    .action-btn {
        width: 100%;
    }
}

.offer-status {
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.status-pending {
    background-color: #ffc107;
    color: #000;
}

.status-accepted {
    background-color: #28a745;
    color: #fff;
}

.status-rejected {
    background-color: #dc3545;
    color: #fff;
}

.offer-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.status-accepted,
.status-rejected {
    padding: 0.5rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 0.6rem;
    border: none;
    color: #fff !important;
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.status-accepted {
    background-color: #28a745 !important;
}

.status-rejected {
    background-color: #dc3545 !important;
}

.status-accepted:hover {
    background-color: #218838 !important;
}

.status-rejected:hover {
    background-color: #c82333 !important;
}

.offer-actions {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.offer-actions form {
    margin: 0;
}

.modal-content {
    border-radius: 16px;
    box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.15);
}

.modal-body .bg-success {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.photo-correct {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: auto;
}

.offer-details {
    margin-top: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    /* padding: 1rem; */
    background-color: #f9f9f9;
}

.toggle-items {
    margin-bottom: 1rem;
    font-weight: 500;
}

.items-table-container {
    overflow-x: auto;
}

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

.items-table-container th,
.items-table-container td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #dee2e6;
}

.items-table-container th {
    background-color: #1B429C;
    font-weight: 600;
}

.items-table-container tr:hover {
    background-color: #f1f1f1;
}

@media (max-width: 768px) {
    .items-table-container table {
        font-size: 14px;
    }
}

