/* ========================================
   GLOBAL STATUS BADGE/PILL STYLES
   Consistent pastel colors across the app
   ======================================== */

/* Base badge style override for Bootstrap badges */
.badge {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

/* ----------------------------------------
   PURCHASE ORDER STATUSES
   ---------------------------------------- */

/* Draft - Gray */
.badge.status-draft,
.badge.po-draft {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
}

/* Submitted/Awaiting Approval - Yellow/Amber */
.badge.status-submitted,
.badge.po-submitted {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
}

/* Approved - Green */
.badge.status-approved,
.badge.po-approved {
    background-color: #dcfce7 !important;
    color: #16a34a !important;
}

/* Partially Received - Blue */
.badge.status-partial,
.badge.po-partial {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
}

/* Closed/Fulfilled - Slate Gray */
.badge.status-closed,
.badge.po-closed {
    background-color: #e2e8f0 !important;
    color: #475569 !important;
}

/* ----------------------------------------
   FORM/DOCUMENT STATUSES
   ---------------------------------------- */

/* Certified - Green */
.badge.status-certified {
    background-color: #dcfce7 !important;
    color: #16a34a !important;
}

/* Unsynced - Orange */
.badge.status-unsynced {
    background-color: #ffedd5 !important;
    color: #c2410c !important;
}

/* ----------------------------------------
   WAREHOUSE TRANSACTION TYPES
   ---------------------------------------- */

/* Received Purchase Order - Green */
.badge.txn-received-po {
    background-color: #dcfce7 !important;
    color: #16a34a !important;
}

/* Received Transfer - Cyan */
.badge.txn-received-transfer {
    background-color: #cffafe !important;
    color: #0891b2 !important;
}

/* To Vehicle - Orange (leaving warehouse) */
.badge.txn-to-vehicle {
    background-color: #ffedd5 !important;
    color: #c2410c !important;
}

/* Transferred Out - Blue */
.badge.txn-transferred-out {
    background-color: #dbeafe !important;
    color: #2563eb !important;
}

/* Scrapped - Red */
.badge.txn-scrapped {
    background-color: #fee2e2 !important;
    color: #dc2626 !important;
}

/* Adjustment - Purple */
.badge.txn-adjustment {
    background-color: #f3e8ff !important;
    color: #7c3aed !important;
}

/* ----------------------------------------
   PRIORITY LEVELS
   ---------------------------------------- */

/* Urgent - Red */
.badge.priority-urgent {
    background-color: #fee2e2 !important;
    color: #dc2626 !important;
}

/* High - Orange */
.badge.priority-high {
    background-color: #ffedd5 !important;
    color: #c2410c !important;
}

/* Normal - Blue */
.badge.priority-normal {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
}

/* Low - Gray */
.badge.priority-low {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
}

/* ----------------------------------------
   ALERT TYPES
   ---------------------------------------- */

/* Low Stock - Amber */
.badge.alert-low-stock {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
}

/* Out of Stock - Red */
.badge.alert-out-of-stock {
    background-color: #fee2e2 !important;
    color: #dc2626 !important;
}

/* Excess Stock - Blue */
.badge.alert-excess-stock {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
}

/* ----------------------------------------
   AGE INDICATORS (Days old)
   ---------------------------------------- */

/* Recent (0-7 days) - Gray */
.badge.age-recent {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
}

/* Warning (8-14 days) - Orange */
.badge.age-warning {
    background-color: #ffedd5 !important;
    color: #c2410c !important;
}

/* Old (14+ days) - Red */
.badge.age-old {
    background-color: #fee2e2 !important;
    color: #dc2626 !important;
}

/* ----------------------------------------
   VEHICLE PILLS (Settings/Config pages)
   ---------------------------------------- */

.badge.vehicle-pill {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
}

/* ----------------------------------------
   USER PILLS
   ---------------------------------------- */

.badge.user-pill {
    background-color: #fce7f3 !important;
    color: #be185d !important;
}

/* ----------------------------------------
   COUNT/NUMBER PILLS
   ---------------------------------------- */

/* Info count - Blue */
.badge.count-info {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
}

/* Warning count - Amber */
.badge.count-warning {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
}

/* Danger count - Red */
.badge.count-danger {
    background-color: #fee2e2 !important;
    color: #dc2626 !important;
}

/* Success count - Green */
.badge.count-success {
    background-color: #dcfce7 !important;
    color: #16a34a !important;
}

/* Neutral count - Gray */
.badge.count-neutral {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
}

/* ----------------------------------------
   VEHICLE NUMBER - Plain text, no pill
   ---------------------------------------- */

.vehicle-number {
    color: #475569;
    font-weight: 500;
}

/* ----------------------------------------
   MISC STATUS BADGES
   ---------------------------------------- */

/* Received - Teal */
.badge.status-received {
    background-color: #ccfbf1 !important;
    color: #0f766e !important;
}

/* Cancelled - Red */
.badge.status-cancelled {
    background-color: #fee2e2 !important;
    color: #dc2626 !important;
}

/* From Vehicle - Blue (returning to warehouse) */
.badge.txn-from-vehicle {
    background-color: #dbeafe !important;
    color: #2563eb !important;
}
