:root {
    --primary: #1E3D8F;
    --primary-dark: #16306E;
    --primary-light: #3B5FB6;
    --accent: #ED7B1F;
    --accent-dark: #C9620E;
    --accent-light: #F49449;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
}

* { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

/* Brand color overrides (map Tailwind indigo to Uniterp navy) */
.bg-indigo-500 { background-color: var(--primary) !important; }
.bg-indigo-600 { background-color: var(--primary-dark) !important; }
.bg-indigo-50 { background-color: rgba(30, 61, 143, 0.08) !important; }
.bg-indigo-100 { background-color: rgba(30, 61, 143, 0.12) !important; }
.text-indigo-500 { color: var(--primary) !important; }
.text-indigo-600 { color: var(--primary-dark) !important; }
.hover\:text-indigo-500:hover { color: var(--primary) !important; }
.hover\:text-indigo-600:hover { color: var(--primary-dark) !important; }
.focus\:ring-indigo-500:focus { --tw-ring-color: var(--primary) !important; box-shadow: 0 0 0 2px var(--primary) !important; }
.border-indigo-500 { border-color: var(--primary) !important; }

/* Pipeline card quick actions */
.deal-card-actions {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #e5e7eb;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.deal-card:hover .deal-card-actions { opacity: 1; }

.deal-card-actions .btn-quick {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.25rem 0.35rem;
    border-radius: 0.375rem;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.1;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    white-space: nowrap;
}

.deal-card-actions .btn-quick i { width: 0.7rem; height: 0.7rem; flex-shrink: 0; }

.btn-quick.btn-quick-won {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.3);
}
.btn-quick.btn-quick-won:hover { background: #10b981; color: white; border-color: #10b981; }

.btn-quick.btn-quick-lost {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.25);
}
.btn-quick.btn-quick-lost:hover { background: #ef4444; color: white; border-color: #ef4444; }

/* Stage editor (settings) */
.stage-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: grab;
}

.stage-row .stage-handle {
    color: #9ca3af;
    cursor: grab;
}

.stage-row input[type=color] {
    width: 36px;
    height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0;
    cursor: pointer;
}

.stage-row input[type=text] {
    flex: 1;
    padding: 0.375rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.stage-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
}
.stage-flag.is-won-on  { background: #d1fae5; color: #047857; }
.stage-flag.is-lost-on { background: #fee2e2; color: #b91c1c; }

/* Cadence step row */
.cadence-step {
    display: grid;
    grid-template-columns: 70px 110px 1fr auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.625rem 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.cadence-step input,
.cadence-step select {
    padding: 0.375rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    background: white;
}

.cadence-day-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Snippet card */
.snippet-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.15s ease;
}
.snippet-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); border-color: var(--primary-light); }

.snippet-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    background: rgba(30,61,143,0.08);
    color: var(--primary);
    border-radius: 0.375rem;
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Snippet inserter dropdown (used inside textareas) */
.snippet-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(237,123,31,0.08);
    color: var(--accent-dark);
    border: 1px solid rgba(237,123,31,0.25);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    cursor: pointer;
}
.snippet-trigger:hover { background: rgba(237,123,31,0.15); }

/* Automation rule card */
.automation-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.automation-card.is-inactive { opacity: 0.55; }

.automation-rule-text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
}

.automation-rule-text .chip {
    background: rgba(30,61,143,0.08);
    color: var(--primary);
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
}
.automation-rule-text .chip-action {
    background: rgba(237,123,31,0.12);
    color: var(--accent-dark);
}

/* Toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.15s;
}
.switch .slider::before {
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.15s;
}
.switch input:checked + .slider { background: var(--success); }
.switch input:checked + .slider::before { transform: translateX(16px); }

/* Lost / Won modal helper */
.action-confirm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

.nav-link.active {
    background: rgba(237,123,31,0.18);
    color: #F49449;
    border-left: 3px solid var(--accent);
    padding-left: calc(0.875rem - 3px);
}

.stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-yellow { background: #fef3c7; color: #b45309; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-gray { background: #f3f4f6; color: #374151; }

.pipeline-column {
    min-width: 300px;
    max-width: 300px;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 220px);
}

.pipeline-column-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pipeline-cards {
    padding: 0.5rem;
    flex: 1;
    overflow-y: auto;
    min-height: 100px;
}

.deal-card {
    background: white;
    border-radius: 0.5rem;
    padding: 0.875rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e5e7eb;
    cursor: grab;
    transition: all 0.15s ease;
}

.deal-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: var(--primary-light);
}

.deal-card.sortable-ghost {
    opacity: 0.4;
    background: rgba(30, 61, 143, 0.08);
}

.deal-card.sortable-chosen {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-accent {
    background: var(--accent);
    color: white;
}

.btn-accent:hover { background: var(--accent-dark); }

.btn-secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover { background: #f9fafb; }

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover { background: #dc2626; }

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.15s ease;
    background: white;
    color: #111827;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,61,143,0.12);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

.table-container {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    overflow-x: auto;
    overflow-y: hidden;
}

.table-container table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.table-container th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.table-container td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.table-container tr:hover td {
    background: #f9fafb;
}

.table-container tr:last-child td {
    border-bottom: none;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.avatar-sm { width: 2rem; height: 2rem; font-size: 0.75rem; }
.avatar-md { width: 2.5rem; height: 2.5rem; font-size: 0.875rem; }
.avatar-lg { width: 3rem; height: 3rem; font-size: 1rem; }

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #9ca3af;
}

.empty-state i,
.empty-state svg {
    margin-bottom: 1rem;
    color: #d1d5db;
}

.sidebar {
    position: relative;
    z-index: 30;
    background: linear-gradient(180deg, #16306E 0%, #1E3D8F 100%);
}

@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        transition: left 0.3s ease;
    }
    .sidebar.open { left: 0; }
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination a,
.pagination span {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    border: 1px solid #d1d5db;
}

.pagination a:hover { background: #f3f4f6; }
.pagination .active { background: var(--primary); color: white; border-color: var(--primary); }

.activity-timeline {
    position: relative;
    padding-left: 2rem;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 0.9rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.activity-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: -1.35rem;
    top: 0.25rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: 2px solid white;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #16306E 0%, #1E3D8F 100%);
}

.login-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.tab-nav a {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s ease;
}

.tab-nav a:hover { color: #374151; }

.tab-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

.progress-bar {
    height: 0.5rem;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s ease;
}

/* ==========================================================
   Deal-detail drawer: tabs, activity timeline, type pills
   ========================================================== */
.deal-tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}
.deal-tab-btn:hover { color: #1E3D8F; }
.deal-tab-btn--active {
    color: #1E3D8F;
    border-bottom-color: #1E3D8F;
}

.deal-tab-pane { animation: fadeIn .15s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }

.activity-timeline { display: flex; flex-direction: column; gap: 0.75rem; }
.activity-item {
    display: flex; gap: 0.75rem;
    padding: 0.875rem;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    transition: box-shadow .15s;
}
.activity-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.activity-item--done { background: #F9FAFB; }
.activity-item-icon {
    width: 2rem; height: 2rem; border-radius: 9999px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.activity-item-body { flex: 1; min-width: 0; }
.activity-item-desc {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #F9FAFB;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    color: #374151;
    line-height: 1.5;
}
.activity-item-desc p { margin: 0 0 0.4rem 0; }
.activity-item-desc p:last-child { margin-bottom: 0; }
.activity-item-desc ul, .activity-item-desc ol { margin: 0.25rem 0 0.5rem 1.25rem; }

.icon-btn {
    background: transparent; border: 1px solid #E5E7EB;
    width: 1.75rem; height: 1.75rem;
    border-radius: 0.375rem;
    color: #6B7280;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .15s;
}
.icon-btn:hover { background: #F3F4F6; color: #1E3D8F; }
.icon-btn--danger:hover { background: #FEE2E2; color: #DC2626; border-color: #FECACA; }

.activity-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
.activity-type-pill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    background: #fff; border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    color: #374151;
    cursor: pointer;
    transition: all .15s;
}
.activity-type-pill:hover { border-color: #1E3D8F; }
.activity-type-pill input { margin: 0; accent-color: #1E3D8F; }
.activity-type-pill:has(input:checked) {
    border-color: #1E3D8F;
    background: rgba(30,61,143,0.05);
    box-shadow: inset 0 0 0 1px #1E3D8F;
}

/* Quill editor wrapper polish */
.deal-detail .ql-toolbar.ql-snow,
.deal-detail .ql-container.ql-snow {
    border-color: #E5E7EB;
}
.deal-detail .ql-toolbar.ql-snow {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    background: #F9FAFB;
}
.deal-detail .ql-container.ql-snow {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.875rem;
    min-height: 120px;
}
.deal-detail .ql-editor { min-height: 120px; }

/* ===== Advanced filter bar ============================================== */
.filter-bar-advanced {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.filter-bar-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
}

.filter-bar-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 0;
    padding: 0.35rem 0.6rem;
    margin: -0.35rem -0.6rem;
    border-radius: 0.5rem;
    color: #1f2937;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.filter-bar-toggle:hover { background: #f3f4f6; }
.filter-bar-toggle .filter-chevron { transition: transform 0.2s ease; }
.filter-bar-advanced.is-open .filter-chevron { transform: rotate(180deg); }

.filter-count {
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 9999px;
    min-width: 18px;
    height: 18px;
    padding: 0 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-chips {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
}

.filter-chip {
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.filter-clear-link {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: auto;
    text-decoration: none;
}
.filter-clear-link:hover { color: #b91c1c; text-decoration: underline; }

.filter-bar-body {
    display: none;
    padding: 0 1rem 1rem;
    border-top: 1px dashed #e5e7eb;
}
.filter-bar-advanced.is-open .filter-bar-body { display: block; padding-top: 1rem; }

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem 1rem;
}

.filter-field-wide { grid-column: span 2; }
@media (max-width: 720px) { .filter-field-wide { grid-column: span 1; } }

.filter-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin-bottom: 0.3rem;
}

.filter-input {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: white;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.filter-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(30,61,143,0.15); }

.filter-date-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.filter-date-range .filter-input { flex: 1; }

.filter-toggle-group {
    display: inline-flex;
    background: #f3f4f6;
    padding: 0.2rem;
    border-radius: 0.5rem;
    gap: 0.15rem;
    flex-wrap: wrap;
}
.filter-toggle {
    cursor: pointer;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 0.35rem;
    color: #4b5563;
    transition: all 0.12s;
}
.filter-toggle input { display: none; }
.filter-toggle:hover { color: #1f2937; }
.filter-toggle.is-active { background: white; color: var(--primary); box-shadow: 0 1px 2px rgba(0,0,0,0.06); font-weight: 600; }

.filter-bar-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e5e7eb;
}

.btn-light {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}
.btn-light:hover { background: #e5e7eb; }

/* Item 14 — pipeline aging badges (time-in-stage indicator). */
.aging-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    border: 1px solid transparent;
    line-height: 1;
}
.aging-badge i { width: 0.7rem; height: 0.7rem; flex-shrink: 0; }
.aging-badge.aging-fresh {
    background: rgba(16, 185, 129, 0.10);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.25);
}
.aging-badge.aging-warm {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.30);
}
.aging-badge.aging-stale {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.30);
}
