/* General page styling */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* Card styling */
.invoice-card, .tracking-card {
    max-width: 900px;
    margin: 30px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #fff;
}

/* Header */
.card-header {
    background: #343a40;
    color: #fff;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Shipment details */
.card-body p {
    margin: 5px 0;
    font-size: 0.95rem;
}

/* Status badge */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #17a2b8;
    color: #fff;
}

/* Table styling */
.table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.table th {
    background: #343a40;
    color: #fff;
    font-weight: 600;
}

.table-striped tbody tr:nth-child(odd) {
    background-color: #f2f2f2;
}

/* Totals box */
.totals-box {
    margin-top: 20px;
    padding: 15px;
    background: #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .invoice-card, .tracking-card {
        margin: 15px;
    }

    .table th, .table td {
        font-size: 0.85rem;
        padding: 8px;
    }

    .card-header {
        font-size: 1rem;
        padding: 15px;
    }

    .totals-box {
        font-size: 0.9rem;
    }
}

/* General table styling */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.responsive-table th,
.responsive-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.responsive-table th {
    background: #343a40;
    color: #fff;
    font-weight: 600;
}

/* Zebra striping */
.responsive-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

/* Mobile-friendly card layout */
@media (max-width: 768px) {
    .responsive-table,
    .responsive-table thead,
    .responsive-table tbody,
    .responsive-table th,
    .responsive-table td,
    .responsive-table tr {
        display: block;
        width: 100%;
    }

    .responsive-table thead tr {
        display: none; /* hide headers */
    }

    .responsive-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 6px;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        padding: 10px;
    }

    .responsive-table td {
        text-align: left;
        border: none;
        padding: 8px 10px;
        position: relative;
    }

    .responsive-table td::before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: 4px;
        color: #555;
    }
}