.table-filter-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.table-filter-button:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.table-filter-button-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table-filter-button-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.table-filter-button-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.36);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
    z-index: 98;
}

.filter-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: min(440px, 100%);
    height: 100vh;
    background: #f8fafc;
    border-left: 1px solid #dbe1ea;
    box-shadow: -10px 0 30px rgba(15, 23, 42, 0.12);
    transform: translateX(100%);
    transition: 0.25s ease;
    z-index: 99;
    display: flex;
    flex-direction: column;
}

.filter-sidebar.is-open {
    transform: translateX(0);
}

.filter-sidebar-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.filter-sidebar-header {
    padding: 18px 16px;
    border-bottom: 1px solid #dbe1ea;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
}

.filter-sidebar-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.filter-sidebar-close {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.filter-sidebar-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.filter-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px 20px;
}

.filter-field {
    margin-bottom: 14px;
}

.filter-field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.filter-field-control {
    width: 100%;
    min-height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    background: #ffffff;
    padding: 10px 12px;
    font-size: 14px;
    color: #334155;
    outline: none;
}

.filter-field-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.filter-field-textarea {
    min-height: 78px;
    resize: vertical;
}

.filter-field-help {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
}

.filter-sidebar-footer {
    padding: 14px 12px;
    border-top: 1px solid #dbe1ea;
    background: #ffffff;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.filter-btn {
    min-width: 84px;
    height: 38px;
    padding: 0 14px;
    border-radius: 0;
    border: 1px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.filter-btn-light {
    background: #ffffff;
    color: #64748b;
}

.filter-btn-primary {
    background: #2f6ea5;
    border-color: #2f6ea5;
    color: #ffffff;
}

body.filter-sidebar-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .filter-sidebar {
        width: 100%;
    }
}