
/* ── Requester Dashboard Enhancements ─────────────────────── */

/* KPI Strip */
.req-kpi-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.req-kpi-card {
    background: var(--card-bg, #fff);
    border: 1.5px solid var(--border, #dde3ed);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: box-shadow 0.18s, border-color 0.18s, transform 0.15s;
    text-align: center;
    user-select: none;
}
.req-kpi-card:hover { box-shadow: 0 4px 18px rgba(30,58,95,.13); transform: translateY(-2px); }
.req-kpi-card.active { border-color: var(--primary, #1e3a5f); box-shadow: 0 4px 18px rgba(30,58,95,.18); }
.req-kpi-icon { font-size: 1.6rem; line-height: 1; margin-bottom: 4px; }
.req-kpi-count { font-size: 1.7rem; font-weight: 800; line-height: 1; color: var(--primary, #1e3a5f); }
.req-kpi-label { font-size: 0.72rem; color: var(--text-muted, #64748b); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 3px; }
.req-kpi-card.kpi-late .req-kpi-count { color: #dc2626; }
.req-kpi-card.kpi-transit .req-kpi-count { color: #0891b2; }
.req-kpi-card.kpi-delivered .req-kpi-count { color: #16a34a; }

/* Needs Attention Banner */
.req-attention-banner {
    background: #fff7ed;
    border: 1.5px solid #f97316;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}
.req-attention-banner .att-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.req-attention-banner .att-body { flex: 1; }
.req-attention-banner .att-title { font-weight: 700; color: #c2410c; font-size: 0.85rem; margin-bottom: 4px; }
.req-attention-item {
    display: inline-flex; align-items: center; gap: 4px;
    background: #fff; border: 1px solid #fdba74; border-radius: 20px;
    padding: 2px 10px; margin: 2px 4px 2px 0;
    font-size: 0.78rem; color: #9a3412; cursor: pointer;
    transition: background 0.15s;
}
.req-attention-item:hover { background: #fed7aa; }

/* View Mode Toggle — add Cards button */
.btn-view-mode.active { background: var(--primary, #1e3a5f); color: #fff; }

/* Card View */
.req-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}
.req-order-card {
    background: #fff;
    border: 2px solid var(--border, #dde3ed);
    border-radius: 14px;
    padding: 1rem 1.1rem 0.9rem;
    cursor: pointer;
    transition: box-shadow 0.18s, transform 0.15s;
    position: relative;
    overflow: hidden;
}
.req-order-card:hover { box-shadow: 0 6px 24px rgba(30,58,95,.13); transform: translateY(-2px); }
.req-order-card.card-late { border-color: #dc2626; }
.req-order-card.card-due7 { border-color: #f97316; }
.req-order-card.card-ontrack { border-color: #22c55e; }
.req-order-card.card-delivered { border-color: #22c55e; background: #f0fdf4; }
.req-order-card.card-cancelled { border-color: #94a3b8; background: #f8fafc; opacity: .75; }
.req-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.req-card-id { font-size: 0.72rem; color: var(--text-muted, #64748b); font-weight: 700; }
.req-card-priority { font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.req-card-title { font-size: 0.92rem; font-weight: 700; color: var(--text, #0f172a); margin-bottom: 0.5rem; line-height: 1.35; }
.req-card-meta { font-size: 0.75rem; color: var(--text-muted, #64748b); margin-bottom: 0.65rem; }

/* Progress stepper */
.req-stepper { display: flex; align-items: center; margin: 0.55rem 0; }
.req-step { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.6rem; font-weight: 800; flex-shrink: 0; border: 2px solid #e2e8f0; background: #f1f5f9; color: #94a3b8; }
.req-step.done { background: #e8682a; border-color: #e8682a; color: #fff; }
.req-step.active { background: #1e3a5f; border-color: #1e3a5f; color: #fff; box-shadow: 0 0 0 3px rgba(30,58,95,.18); }
.req-step-line { flex: 1; height: 2px; background: #e2e8f0; margin: 0 2px; }
.req-step-line.done { background: #e8682a; }

/* Delivery countdown */
.req-countdown { font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; display: inline-block; }
.req-countdown.cnt-late { background: #fee2e2; color: #dc2626; }
.req-countdown.cnt-due7 { background: #ffedd5; color: #ea580c; }
.req-countdown.cnt-due14 { background: #fef9c3; color: #ca8a04; }
.req-countdown.cnt-ok { background: #dcfce7; color: #16a34a; }
.req-countdown.cnt-delivered { background: #dcfce7; color: #16a34a; }
.req-countdown.cnt-none { background: #f1f5f9; color: #64748b; }

/* Ordered date column */
.col-ordered { white-space: nowrap; }

/* Date ordered filter */
#filterOrdered { min-width: 110px; }
