/* ============================================================
   Shared active filter pill component
   ============================================================ */

/* Active filter row */
.active-filter-row,
.active-proposal-filter-row,
.active-invoice-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
}

/* Filter label */
.active-filter-label,
.active-proposal-filter-label,
.active-invoice-filter-label {
    font-weight: 700;
    color: #495057;
}

/* Filter pill container */
.active-filter-pills,
.active-proposal-filter-pills,
.active-invoice-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Individual filter pill */
.active-filter-pill,
.active-proposal-filter-pill,
.active-invoice-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
}

.active-filter-pill {
    border: 1px solid #cfe2f3;
    background: #edf6ff;
    color: #1f3b63;
}

.active-filter-pill-text {
    min-width: 0;
}

/* Remove action */
.active-filter-pill-remove,
.active-proposal-filter-pill-remove,
.active-invoice-filter-pill-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.active-filter-pill-remove:hover,
.active-proposal-filter-pill-remove:hover,
.active-invoice-filter-pill-remove:hover {
    background: rgba(31, 59, 99, 0.12);
}

.active-filter-pill-remove:focus,
.active-filter-pill-remove:focus-visible,
.active-proposal-filter-pill-remove:focus,
.active-proposal-filter-pill-remove:focus-visible {
    background: rgba(31, 59, 99, 0.12);
    outline: 2px solid rgba(18, 45, 80, 0.35);
    outline-offset: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.active-filter-pill-remove:focus:not(:focus-visible),
.active-proposal-filter-pill-remove:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

.active-filter-pill-remove .fal,
.active-proposal-filter-pill-remove .fal,
.active-invoice-filter-pill-remove .fal {
    font-size: 0.75rem;
}

body.mod-skin-dark:not(.mod-skin-light) .active-filter-label,
body.mod-skin-dark:not(.mod-skin-light) .active-proposal-filter-label,
.mod-skin-dark .active-proposal-filter-label {
    color: #a0aec0 !important;
}

body.mod-skin-dark:not(.mod-skin-light) .active-filter-pill {
    border-color: #c44a0e !important;
    background: rgba(241, 94, 34, 0.18) !important;
    color: #ffb993 !important;
}

body.mod-skin-dark:not(.mod-skin-light) .active-filter-pill-remove:hover,
body.mod-skin-dark:not(.mod-skin-light) .active-filter-pill-remove:focus,
body.mod-skin-dark:not(.mod-skin-light) .active-filter-pill-remove:focus-visible,
body.mod-skin-dark:not(.mod-skin-light) .active-proposal-filter-pill-remove:hover,
body.mod-skin-dark:not(.mod-skin-light) .active-proposal-filter-pill-remove:focus,
body.mod-skin-dark:not(.mod-skin-light) .active-proposal-filter-pill-remove:focus-visible,
.mod-skin-dark .active-proposal-filter-pill-remove:hover,
.mod-skin-dark .active-proposal-filter-pill-remove:focus,
.mod-skin-dark .active-proposal-filter-pill-remove:focus-visible {
    background: rgba(255, 255, 255, 0.12) !important;
}

body.mod-skin-dark:not(.mod-skin-light) .active-filter-pill-remove:focus,
body.mod-skin-dark:not(.mod-skin-light) .active-filter-pill-remove:focus-visible,
body.mod-skin-dark:not(.mod-skin-light) .active-proposal-filter-pill-remove:focus,
body.mod-skin-dark:not(.mod-skin-light) .active-proposal-filter-pill-remove:focus-visible,
.mod-skin-dark .active-proposal-filter-pill-remove:focus,
.mod-skin-dark .active-proposal-filter-pill-remove:focus-visible {
    outline: 2px solid rgba(241, 94, 34, 0.65) !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* Shared admin status filter pills */
.admin-status-filter-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-items: center;
}

.admin-status-filter-pill {
    background: transparent;
    color: #6c757d;
    border: 1px solid #e9e9e9;
    border-radius: 9999px;
    padding: 0.32rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.4;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.admin-status-filter-pill:hover {
    border-color: #f15e22;
    color: #f15e22;
    background: transparent;
}

.admin-status-filter-pill.active[data-status=""] {
    background: #f15e22;
    border-color: #f15e22;
    color: #fff !important;
}

.admin-status-filter-pill.active[data-status="Active"] {
    background: #28a745;
    border-color: #28a745;
    color: #fff !important;
}

.admin-status-filter-pill.active[data-status="InActive"],
.admin-status-filter-pill.active[data-status="Inactive"] {
    background: #6c757d;
    border-color: #6c757d;
    color: #fff !important;
}

.admin-status-filter-pill.active[data-status="Disabled"] {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff !important;
}

body.mod-skin-dark:not(.mod-skin-light) .admin-status-filter-pill {
    color: #a0aec0;
    border-color: rgba(255, 255, 255, 0.18);
}

body.mod-skin-dark:not(.mod-skin-light) .admin-status-filter-pill:hover {
    color: #f15e22;
}
