.delivery-admin .delivery-stats-grid,
.delivery-shell .delivery-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}
.delivery-stat-card,
.delivery-panel,
.delivery-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}
.delivery-stat-card span {
    display: block;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}
.delivery-stat-card strong {
    display: block;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.2;
}
.delivery-two-col,
.delivery-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.delivery-filter-bar,
.delivery-inline-form,
.delivery-tracking-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0;
}
.delivery-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}
.delivery-table {
    width: 100%;
    border-collapse: collapse;
}
.delivery-table th,
.delivery-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}
.delivery-table th {
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    text-transform: uppercase;
}
.delivery-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 18px;
    color: #0f172a;
}
.delivery-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.delivery-page-head h1 {
    margin: 0;
    font-size: 30px;
}
.delivery-page-head p {
    margin: 6px 0 0;
    color: #64748b;
}
.delivery-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.delivery-field-wide {
    grid-column: 1 / -1;
}
.delivery-field label {
    font-weight: 700;
    color: #334155;
}
.delivery-field input,
.delivery-field textarea,
.delivery-field select,
.delivery-tracking-form input,
.delivery-rider-form input,
.delivery-rider-form textarea,
.delivery-rider-form select,
.delivery-filter-bar input,
.delivery-filter-bar select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 9px 11px;
    background: #fff;
    color: #0f172a;
}
.delivery-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid #be123c;
    border-radius: 8px;
    background: #fff;
    color: #be123c;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}
.delivery-btn-primary {
    background: #be123c;
    color: #fff;
}
.delivery-btn-small {
    min-height: 34px;
    padding: 6px 10px;
}
.delivery-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}
.delivery-status--pending,
.delivery-status--accepted,
.delivery-status--assigned { background: #fef3c7; color: #92400e; }
.delivery-status--picked_up,
.delivery-status--in_transit,
.delivery-status--out_for_delivery { background: #dbeafe; color: #1d4ed8; }
.delivery-status--delivered,
.delivery-status--cod_collected,
.delivery-status--cod_settled,
.delivery-status--active { background: #dcfce7; color: #166534; }
.delivery-status--failed_attempt,
.delivery-status--returned,
.delivery-status--cancelled,
.delivery-status--suspended { background: #fee2e2; color: #991b1b; }
.delivery-notice {
    padding: 12px 14px;
    border-radius: 8px;
    margin: 12px 0;
    border: 1px solid #cbd5e1;
}
.delivery-notice--success { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.delivery-notice--error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.delivery-rider-form {
    display: grid;
    gap: 8px;
    min-width: 220px;
}
.delivery-track-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.delivery-track-summary span {
    display: block;
    color: #64748b;
    font-size: 12px;
}
.delivery-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.delivery-timeline li {
    border-left: 3px solid #be123c;
    padding: 8px 0 8px 14px;
    background: #f8fafc;
}
.delivery-timeline span {
    display: block;
    color: #64748b;
    font-size: 12px;
}
@media (max-width: 782px) {
    .delivery-two-col,
    .delivery-form-grid {
        grid-template-columns: 1fr;
    }
    .delivery-page-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .delivery-page-head h1 {
        font-size: 24px;
    }
    .delivery-filter-bar,
    .delivery-inline-form,
    .delivery-tracking-form {
        align-items: stretch;
        flex-direction: column;
    }
}