/* ============================================
   STATUS BADGES / CHIPS
   Centralized styles for status indicators
   ============================================ */

/* Base status chip styling — FLAT (2026-09-24): one tint, no gradient,
   no stroke, no drop shadow (owner: the old chips looked like they glowed). */
.status-chip {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-pill, 50px);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    vertical-align: middle;
    transition: var(--transition-fast, 150ms ease);
}

/* Inquiry - Sky Blue */
.status-inquiry {
    background: var(--status-inquiry-bg, rgba(14, 165, 233, 0.2));
    color: var(--status-inquiry-text, #0284c7);
    border: 1px solid var(--status-inquiry-border, transparent);
}

/* Pending - Amber/Orange */
.status-pending {
    background: var(--status-pending-bg, rgba(255, 193, 7, 0.2));
    color: var(--status-pending-text, #b36b00);
    border: 1px solid var(--status-pending-border, transparent);
}

/* Confirmed - Green */
.status-confirmed {
    background: var(--status-confirmed-bg, rgba(40, 167, 69, 0.2));
    color: var(--status-confirmed-text, #1a7f37);
    border: 1px solid var(--status-confirmed-border, transparent);
}

/* In Progress - Purple */
.status-inprogress {
    background: var(--status-inprogress-bg, rgba(111, 66, 193, 0.2));
    color: var(--status-inprogress-text, #5a32a3);
    border: 1px solid var(--status-inprogress-border, transparent);
}

/* Completed - Blue */
.status-completed {
    background: var(--status-completed-bg, rgba(13, 110, 253, 0.2));
    color: var(--status-completed-text, #0a58ca);
    border: 1px solid var(--status-completed-border, transparent);
}

/* Expired - Gray */
.status-expired {
    background: var(--status-expired-bg, rgba(108, 117, 125, 0.2));
    color: var(--status-expired-text, #495057);
    border: 1px solid var(--status-expired-border, transparent);
}

/* Cancelled - Red */
.status-cancelled {
    background: var(--status-cancelled-bg, rgba(220, 53, 69, 0.2));
    color: var(--status-cancelled-text, #b02a37);
    border: 1px solid var(--status-cancelled-border, transparent);
}

/* Client Cancelled - Dark Gray */
.status-client-cancelled {
    background: var(--status-client-cancelled-bg, rgba(33, 37, 41, 0.2));
    color: var(--status-client-cancelled-text, #212529);
    border: 1px solid var(--status-client-cancelled-border, transparent);
}

/* Declined - Solid Red (inverted for emphasis) */
.status-declined {
    background: var(--status-declined-bg, rgba(220, 53, 69, 0.95));
    color: var(--status-declined-text, #ffffff);
    border: 1px solid var(--status-declined-border, transparent);
}

/* ============================================
   GENERIC TONE CHIPS
   For non-event-status readings (variance Over/Short, pass/fail, counts).
   Don't reuse the .status-* event-lifecycle classes for these.
   ============================================ */

.chip-tone-good {
    background: rgba(25, 135, 84, 0.13);
    color: #15803d;
    border: 1px solid rgba(25, 135, 84, 0.35);
}

.chip-tone-bad {
    background: rgba(220, 53, 69, 0.12);
    color: #b02a37;
    border: 1px solid rgba(220, 53, 69, 0.35);
}

.chip-tone-neutral {
    background: rgba(108, 117, 125, 0.12);
    color: #495057;
    border: 1px solid rgba(108, 117, 125, 0.35);
}

[data-theme="dark"] .chip-tone-good {
    background: rgba(74, 222, 128, 0.14);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.35);
}

[data-theme="dark"] .chip-tone-bad {
    background: rgba(241, 122, 133, 0.14);
    color: #f17a85;
    border-color: rgba(241, 122, 133, 0.35);
}

[data-theme="dark"] .chip-tone-neutral {
    background: rgba(170, 177, 184, 0.14);
    color: #aab1b8;
    border-color: rgba(170, 177, 184, 0.35);
}

/* ============================================
   SIZE VARIANTS
   ============================================ */

/* Small variant */
.status-chip-sm {
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
}

/* Large variant */
.status-chip-lg {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* ============================================
   INTERACTIVE STATES
   ============================================ */

/* Clickable badges */
.status-chip.clickable {
    cursor: pointer;
}

.status-chip.clickable:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

/* Dimmed state for toggled-off filter chips */
.status-chip.dimmed {
    opacity: 0.35;
    box-shadow: none;
}

/* ============================================
   SPECIAL BADGE TYPES
   ============================================ */

/* Discount badge - Money green */
.status-discount {
    background: rgba(85, 170, 85, 0.18);
    color: #3d8b3d;
    border: 1px solid transparent;
}

/* Selected indicator - Amber (Tailwind amber-500/600) for count/selection chips */
.status-selected {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    border: 1px solid transparent;
}

[data-theme="dark"] .status-selected {
    background: rgba(245, 158, 11, 0.22);
    color: #fcd34d;
    border-color: transparent;
}

/* Manual discount - uses pending style */
.status-manual {
    background: var(--status-pending-bg, rgba(255, 193, 7, 0.2));
    color: var(--status-pending-text, #b36b00);
    border: 1px solid var(--status-pending-border, transparent);
}

/* Payment/Paid badge - uses completed style */
.status-paid {
    background: var(--status-completed-bg, rgba(13, 110, 253, 0.2));
    color: var(--status-completed-text, #0a58ca);
    border: 1px solid var(--status-completed-border, transparent);
}

/* Active badge - uses confirmed/green style */
.status-active {
    background: var(--status-active-bg, rgba(40, 167, 69, 0.2));
    color: var(--status-active-text, #1a7f37);
    border: 1px solid var(--status-active-border, transparent);
}

/* Inactive badge - uses expired style */
.status-inactive {
    background: var(--status-expired-bg, rgba(108, 117, 125, 0.2));
    color: var(--status-expired-text, #495057);
    border: 1px solid var(--status-expired-border, transparent);
}

/* Lost Lead badge - Orange */
.status-lost-lead {
    background: rgba(253, 126, 20, 0.2);
    color: #c45d10;
    border: 1px solid transparent;
}

/* Snoozed badge - Purple */
.status-snoozed {
    background: var(--status-snoozed-bg, rgba(111, 66, 193, 0.2));
    color: var(--status-snoozed-text, #5a32a3);
    border: 1px solid var(--status-snoozed-border, transparent);
}

/* ============================================
   STATUS INK (2026-09-27)
   Text in an event status's color, matching its chip — for the big event code on the Event
   list and Client Replies cards. C#: Components/Shared/StatusInk.For(status) returns
   "status-ink status-ink-<key>". Doubled class + dark-theme copy so it beats the pages'
   default purple code colors. Declined uses the chip's red (its chip text is white).
   ============================================ */
.status-ink.status-ink-inquiry, [data-theme="dark"] .status-ink.status-ink-inquiry { color: var(--status-inquiry-text, #0284c7); }
.status-ink.status-ink-pending, [data-theme="dark"] .status-ink.status-ink-pending { color: var(--status-pending-text, #b36b00); }
.status-ink.status-ink-confirmed, [data-theme="dark"] .status-ink.status-ink-confirmed { color: var(--status-confirmed-text, #1a7f37); }
.status-ink.status-ink-inprogress, [data-theme="dark"] .status-ink.status-ink-inprogress { color: var(--status-inprogress-text, #5a32a3); }
.status-ink.status-ink-completed, [data-theme="dark"] .status-ink.status-ink-completed { color: var(--status-completed-text, #0a58ca); }
.status-ink.status-ink-expired, [data-theme="dark"] .status-ink.status-ink-expired { color: var(--status-expired-text, #495057); }
.status-ink.status-ink-cancelled, [data-theme="dark"] .status-ink.status-ink-cancelled { color: var(--status-cancelled-text, #b02a37); }
.status-ink.status-ink-client-cancelled, [data-theme="dark"] .status-ink.status-ink-client-cancelled { color: var(--status-client-cancelled-text, #212529); }
.status-ink.status-ink-declined { color: #dc3545; }
[data-theme="dark"] .status-ink.status-ink-declined { color: #f87171; }
