/* ==========================================================================
   1. SHARED COMPONENT STYLES (Consolidated)
   ========================================================================== */
.ke-dbke-page-hero,
.ke-dbke-stat-card,
.ke-dbke-toolbar,
.ke-dbke-table-card,
.ke-dbke-section-card {
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.04);
}

/* Standard padding for most containers */
.ke-dbke-page-hero,
.ke-dbke-toolbar,
.ke-dbke-stat-card,
.ke-dbke-section-card {
    padding: 18px;
}

/* ==========================================================================
   2. LAYOUT & GRIDS
   ========================================================================== */
.ke-dbke-stat-grid {
    display: grid;
    /* Updated to the most flexible version from your bottom code */
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

/* ==========================================================================
   3. HERO & TOOLBAR
   ========================================================================== */
.ke-dbke-page-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.ke-dbke-page-hero h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
}

.ke-dbke-page-hero p {
    margin: 0;
    color: #667085;
    max-width: 720px;
    font-size: 13px;
}

.ke-dbke-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.ke-dbke-toolbar input[type="search"] {
    min-width: 320px;
    padding: 10px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
}

/* ==========================================================================
   4. TABLES & PRODUCT CELLS
   ========================================================================== */
.ke-dbke-table-card {
    overflow: hidden;
}

.ke-dbke-product-table {
    width: 100%;
}

.ke-dbke-product-table th {
    background: #f8fafc;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #667085;
    font-weight: 600;
}

.ke-dbke-product-table td {
    vertical-align: middle;
    font-size: 13px;
}

.ke-dbke-product-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
}

.ke-dbke-product-thumb img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eaecf0;
}

.ke-dbke-product-title {
    font-weight: 600;
    color: #101828;
    text-decoration: none;
    font-size: 13px;
}

/* ==========================================================================
   5. BADGES & STATUSES
   ========================================================================== */
/* Main Badge (Blue) */
.ke-dbke-badge {
    display: inline-block;
    background: #007cba;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 600;
}

/* Pill/Status Badge */
.dbke-badge {
    display: inline-block;
    background: #eef4ff;
    color: #1d4ed8;
    border: 1px solid #c7d2fe;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
}

.ke-dbke-status-pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #d0d5dd;
    background: #ffffff;
}

/* Status Colors */
.ke-dbke-status-processing, .ke-dbke-status-pending, .ke-dbke-status-queued {
    background: #fffaeb; color: #b54708; border-color: #fedf89;
}
.ke-dbke-status-picking {
    background: #eff8ff; color: #175cd3; border-color: #b2ddff;
}
.ke-dbke-status-packing {
    background: #eef4ff; color: #1d4ed8; border-color: #c7d2fe;
}
.ke-dbke-status-shipped, .ke-dbke-live-badge {
    background: #ecfdf3; color: #027a48; border-color: #abefc6;
}

/* ==========================================================================
   6. PAGINATION & FOOTER
   ========================================================================== */
.ke-dbke-pagination {
    margin-top: 20px;
}

.ke-dbke-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin-right: 6px;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    text-decoration: none;
}

.ke-dbke-pagination .current {
    background: #101828;
    color: #fff;
    border-color: #101828;
}

/* ==========================================================================
   7. ORDER VIEW SPECIFICS
   ========================================================================== */
.ke-dbke-order-view-wrap .ke-dbke-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.ke-dbke-tracking-box {
    margin: 16px 0;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    font-size: 13px;
}

/* =media queries */
@media (max-width: 768px) {
    .ke-dbke-order-view-wrap .ke-dbke-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .ke-dbke-product-cell {
        align-items: flex-start;
    }
    .ke-dbke-product-thumb img {
        width: 40px;
        height: 40px;
    }
}


/* =========================
   DBKE TIMELINE
========================= */

.ke-dbke-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0 24px;
    position: relative;
}

/* LINE */

.ke-dbke-timeline::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

/* STEP */

.ke-dbke-timeline-step {
    position: relative;
    text-align: center;
    flex: 1;
    z-index: 1;
}

/* CIRCLE */

.ke-dbke-timeline-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    margin: 0 auto 6px;
    border: 2px solid #fff;
}

/* LABEL */

.ke-dbke-timeline-label {
    font-size: 11px;
    color: #667085;
}

/* COMPLETE */

.ke-dbke-complete .ke-dbke-timeline-circle {
    background: #16a34a;
}

.ke-dbke-complete .ke-dbke-timeline-label {
    color: #027a48;
    font-weight: 600;
}

/* ACTIVE */

.ke-dbke-active .ke-dbke-timeline-circle {
    background: #2563eb;
    transform: scale(1.2);
}

.ke-dbke-active .ke-dbke-timeline-label {
    color: #1d4ed8;
    font-weight: 600;
}

/* UPCOMING */

.ke-dbke-upcoming .ke-dbke-timeline-circle {
    background: #d1d5db;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .ke-dbke-timeline-label {
        font-size: 10px;
    }
}










/* =========================
   WAREHOUSE SUMMARY
========================= */

.ke-dbke-warehouse-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

.ke-dbke-warehouse-stats {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.ke-dbke-warehouse-stats div {
    text-align: center;
    flex: 1;
}