*, :after, :before {
    border: 0 solid #e5e7eb;
    box-sizing: border-box;
}

.filter-panel{
    opacity: .1;
    -webkit-transform: translateY(50px);
    -webkit-transition: opacity 200ms ease, -webkit-transform 200ms ease;
    -moz-transform: translateY(50px);
    -moz-transition: opacity 200ms ease, -webkit-transform 200ms ease;
    -ms-transform: translateY(50px);
    -ms-transition: opacity 200ms ease, -webkit-transform 200ms ease;
    transform: translateY(50px);
    transition: opacity 200ms ease, -webkit-transform 200ms ease;
}
.filter-panel-shown{
    opacity: 1;
    -webkit-transform: translateY(0px);
    -moz-transform: translateY(0px);
    -ms-transform: translateY(0px);
    transform: translateY(0px);
}
.filter-panel.pc{
    border: 1px solid #EEE;
    display: inline-block;
    position: fixed;
    box-shadow: 0px 0px 15px 0px #C2C2C2;
    top:150px;
    left: 150px;
    z-index: 3;
    background-color: #ffffff;
}
/* ============================================
   FILTER TAB PANEL - PROFESSIONAL COMPACT UI
   ============================================ */
.filter-tabPanel{
    background: white;
    border: 1px solid #DDD;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.filter-panel.pc .reArrangeButton {
    float: right;
    background: blue;
    width: 24px;
    height: 24px;
}

.filter-panel.pc .filter-divHeader {
    padding: 15px;
    background: #3f4944;
    cursor: move;
    color: white;
    font-size: 20px;
}

.filter-panel.pc > table > tbody> tr:nth-child(2)> td{
    padding: 15px;
}
.filter-panel.pc > table > tbody> tr:nth-child(3)> td{
    padding: 5px;
}

.filter-container.pc {
    padding: 5px;
    /*margin-right: 10px;*/
}
.filter-container.pc .filter-display-name{
    padding: 3px;
}
.filter-container.pc .filter-button-panel{
    padding: 3px;
}
.filter-container.pc select {
    /* min-width removed for flexible layout */
}
.filter-container.pc .chosen-container {
    /* min-width removed for flexible layout */
}




.filter-button-panel.pc .filter-form-elements{
    position: relative;
}
.filter-container.pc .filter-form-elements{
    position: relative;
    /*margin-left: 35px;*/
}
.filter-container.pc .filter-form-elements::before {
    transition: all 300ms ease;
    content: '';
    visibility: hidden;
    opacity: 0;
    bottom: 10px;
    left: 42%;
    border-right: 7px solid rgba(0, 0, 255, 0);
    border-top: 7px solid #3f4944;
    border-left: 7px solid rgba(255, 255, 255, 0.00);
    position: absolute;
}
.filter-container.pc .filter-form-elements::after {
    transition: all 300ms ease;
    content: attr(title);
    visibility: hidden;
    width: 84%;
    opacity: 0;
    position: absolute;
    left: 2px;
    bottom: 10px;
    background-color: #3f4944;
    color: white;
    padding: 5px 10px;
    line-height: 14px;
    border-radius: 2px;
}
.filter-container.pc .filter-form-elements.showTitle::before {
    bottom: 23px;
    visibility: visible;
    opacity: 1;
}
.filter-container.pc .filter-form-elements.showTitle::after {
    bottom: 30px;
    visibility: visible;
    opacity: 1;
}

table.filter-table-main {
    width: 100%;
}

/* Inside filter panel - compact table layout */
.filter-tabPanel table.filter-table-main {
    width: 100%;
    border-collapse: collapse;
}

.filter-tabPanel table.filter-table-main tr {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.filter-tabPanel table.filter-table-main td {
    padding: 0;
}

/* Form elements wrapper in filter panel */
.filter-tabPanel .filter-form-elements {
    margin: 0 !important;
    padding: 0;
}

.filter-container.pc .date_range_input_wrapper .filter_input{
    padding-left: 35px;
}

.filter-container.pc :is( select, input[type="search"], input[type="text"], input[type="date"], ul.chosen-choices, textarea, .chosen-container a){
    width: 100% !important;
    padding: var(--spacing_sm, 6px) var(--spacing_md, 8px);
    padding-inline-start: 2.5rem;
    border: 1px solid var(--border_primary, rgba(0, 0, 0, 0.08));
    border-radius: var(--radius_sm, 6px);
    font-size: var(--font_size_base, 13px);
    line-height: 1.5;
    color: var(--text_primary, #111827);
    background-color: var(--bg_primary, white);
    transition: var(--transition_fast, 0.15s ease);
    outline: none;
}
.filter-container.pc :is( select:focus, input:focus, input:focus, .chosen-container a:focus) {
    border-color: var(--accent_primary, #007AFF);
    outline: none;
    box-shadow: none;
}


/* ============================================
   FILTER SIDE PANEL - ENHANCED PROFESSIONAL UI
   ============================================ */
body.pc .filter-tabPanel{
    --filter-panel-width: 380px;
    --filter-panel-bg: #ffffff;
    --filter-panel-header-bg: #fafbfc;
    --filter-panel-border: #e5e7eb;
    --filter-panel-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --filter-accent: #3b82f6;
    --filter-accent-hover: #2563eb;
    --filter-text-primary: #111827;
    --filter-text-secondary: #6b7280;
    --filter-text-muted: #9ca3af;
    
    background: var(--filter-panel-bg);
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--filter-panel-border);
    box-shadow: var(--filter-panel-shadow);
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    width: var(--filter-panel-width);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 380ms cubic-bezier(0.32, 0.72, 0, 1),
                visibility 0s linear 380ms;
    overflow: hidden;
}

body.pc .filter-tabPanel.show_as_side_popup{
    transform: translateX(0);
    visibility: visible;
    transition: transform 450ms cubic-bezier(0.32, 0.72, 0, 1),
                visibility 0s linear 0s;
}

/* Subtle top accent line */
body.pc .filter-tabPanel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--filter-accent);
    z-index: 20;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 400ms cubic-bezier(0.32, 0.72, 0, 1) 150ms,
                opacity 200ms ease 150ms;
}

body.pc .filter-tabPanel.show_as_side_popup::before {
    opacity: 1;
    transform: scaleX(1);
}
table.filter-table-main tr {
    display: flex;
    flex-direction: column;
}

/* ============================================
   FILTER PANEL HEADER - COMPACT & CLEAN
   ============================================ */
.filter-tabPanel .filter-heading {
    width: 100%;
    padding: 16px 20px;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--filter-text-primary, #111827);
    border-bottom: 1px solid var(--filter-panel-border, #e5e7eb);
    background: var(--filter-panel-header-bg, #fafbfc);
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 15;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.filter-tabPanel .filter-heading i {
    font-size: 16px;
    color: var(--filter-accent, #3b82f6);
    flex-shrink: 0;
    opacity: 0.9;
}

.filter-tabPanel .filter-heading span {
    display: inline-block;
    margin: 0;
    font-weight: 600;
    color: var(--filter-text-primary, #111827);
    letter-spacing: -0.01em;
    flex: 1;
}

.filter-tabPanel .filter-heading-icon {
    color: var(--filter-accent, #3b82f6);
    flex-shrink: 0;
}

.filter-tabPanel .filter-heading-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--filter-panel-border, #e5e7eb);
    background: #ffffff;
    color: var(--filter-text-secondary, #6b7280);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 0;
    padding: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.filter-tabPanel .filter-heading-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.filter-tabPanel .filter-heading-close svg {
    position: relative;
    z-index: 1;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-tabPanel .filter-heading-close:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.15);
    transform: scale(1.05);
}

.filter-tabPanel .filter-heading-close:hover::before {
    opacity: 1;
}

.filter-tabPanel .filter-heading-close:hover svg {
    transform: rotate(90deg);
}

.filter-tabPanel .filter-heading-close:active {
    transform: scale(0.95);
    box-shadow: 0 1px 2px rgba(239, 68, 68, 0.2);
}

body.dark-theme .filter-tabPanel .filter-heading-close,
.dark-theme body.pc .filter-tabPanel .filter-heading-close {
    background: #374151;
    border-color: #4b5563;
    color: #d1d5db;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.dark-theme .filter-tabPanel .filter-heading-close::before,
.dark-theme body.pc .filter-tabPanel .filter-heading-close::before {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
}

body.dark-theme .filter-tabPanel .filter-heading-close:hover,
.dark-theme body.pc .filter-tabPanel .filter-heading-close:hover {
    background: #7f1d1d;
    border-color: #991b1b;
    color: #fca5a5;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

body.dark-theme .filter-tabPanel .filter-heading-close:active,
.dark-theme body.pc .filter-tabPanel .filter-heading-close:active {
    box-shadow: 0 1px 2px rgba(239, 68, 68, 0.4);
}
/* ============================================
   FILTER CONTENT AREA - SCROLLABLE
   ============================================ */
.filter-tabPanel .filter-panel-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 16px;
    padding-bottom: 100px;
}

.filter-tabPanel > .filter-container{
    display: block;
    margin: 0 0 8px 0;
    padding: 12px 14px;
    background: #ffffff;
    z-index: 10;
    border: 1px solid var(--filter-panel-border, #e5e7eb);
    border-radius: 10px;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease,
                transform 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    /* Staggered entrance animation */
    opacity: 0;
    transform: translateX(20px);
    animation: filterSlideIn 0.4s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

/* Staggered animation delays for each filter */
.filter-tabPanel.show_as_side_popup > .filter-container:nth-child(2) { animation-delay: 80ms; }
.filter-tabPanel.show_as_side_popup > .filter-container:nth-child(3) { animation-delay: 120ms; }
.filter-tabPanel.show_as_side_popup > .filter-container:nth-child(4) { animation-delay: 160ms; }
.filter-tabPanel.show_as_side_popup > .filter-container:nth-child(5) { animation-delay: 200ms; }
.filter-tabPanel.show_as_side_popup > .filter-container:nth-child(6) { animation-delay: 240ms; }
.filter-tabPanel.show_as_side_popup > .filter-container:nth-child(7) { animation-delay: 280ms; }
.filter-tabPanel.show_as_side_popup > .filter-container:nth-child(8) { animation-delay: 320ms; }
.filter-tabPanel.show_as_side_popup > .filter-container:nth-child(n+9) { animation-delay: 360ms; }

@keyframes filterSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reset animation when panel is closed */
.filter-tabPanel:not(.show_as_side_popup) > .filter-container {
    animation: none;
    opacity: 0;
    transform: translateX(20px);
}

.filter-tabPanel > .filter-container:hover{
    border-color: var(--filter-accent, #3b82f6);
    z-index: 12;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

.filter-tabPanel > .filter-container:focus-within {
    border-color: var(--filter-accent, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-tabPanel > .filter-container:first-of-type {
    margin-top: 0;
}

.filter-container.pc .filter-tabOptions{
    /*padding: 6px;*/
}

/* ============================================
   FILTER LABELS & INPUTS - COMPACT STYLING
   ============================================ */
.filter-tabPanel .filter-container .filter-display-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--filter-text-secondary, #6b7280);
    margin-bottom: 6px;
    display: block;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Filter inputs inside Tab Panel */
.filter-tabPanel .filter-container select,
.filter-tabPanel .filter-container input[type="text"],
.filter-tabPanel .filter-container input[type="date"],
.filter-tabPanel .filter-container input[type="number"],
.filter-tabPanel .filter-container input[type="search"] {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid var(--filter-panel-border, #e5e7eb);
    border-radius: 6px;
    background: #f9fafb;
    color: var(--filter-text-primary, #111827);
    transition: all 0.15s ease;
    outline: none;
    font-family: inherit;
}

.filter-tabPanel .filter-container select:hover,
.filter-tabPanel .filter-container input[type="text"]:hover,
.filter-tabPanel .filter-container input[type="date"]:hover,
.filter-tabPanel .filter-container input[type="number"]:hover,
.filter-tabPanel .filter-container input[type="search"]:hover {
    background: #ffffff;
    border-color: #d1d5db;
}

.filter-tabPanel .filter-container select:focus,
.filter-tabPanel .filter-container input[type="text"]:focus,
.filter-tabPanel .filter-container input[type="date"]:focus,
.filter-tabPanel .filter-container input[type="number"]:focus,
.filter-tabPanel .filter-container input[type="search"]:focus {
    background: #ffffff;
    border-color: var(--filter-accent, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

/* Placeholder styling */
.filter-tabPanel .filter-container input::placeholder {
    color: var(--filter-text-muted, #9ca3af);
    font-size: 13px;
}

/* Select arrow styling */
.filter-tabPanel .filter-container select {
    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%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
    cursor: pointer;
}

/* Filter container inside panel - remove extra spacing from form elements */
.filter-tabPanel .filter-container .filter-form-elements {
    margin-left: 0 !important;
    padding: 0;
}

/* Chosen dropdown adjustments for filter panel */
.filter-tabPanel .filter-container .chosen-container {
    width: 100% !important;
}

.filter-tabPanel .filter-container .chosen-container .chosen-choices {
    padding: 4px 8px;
    min-height: 34px;
    border: 1px solid var(--filter-panel-border, #e5e7eb);
    border-radius: 6px;
    background: #f9fafb;
}

.filter-tabPanel .filter-container .chosen-container-active .chosen-choices {
    border-color: var(--filter-accent, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

/* Date range picker adjustments */
.filter-tabPanel .filter-container .date_range_input_wrapper {
    position: relative;
}

.filter-tabPanel .filter-container .date_range_input_wrapper .filter_input {
    padding-left: 36px !important;
}

/* Filter count badge (for lookup filters with selection count) */
.filter-tabPanel .filter-container .filter-selection-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    background: var(--filter-accent, #3b82f6);
    border-radius: 9px;
    margin-left: 6px;
}

/* ============================================
   SCROLLBAR STYLING - MINIMAL & ELEGANT
   ============================================ */
.filter-tabPanel {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.filter-tabPanel::-webkit-scrollbar {
    width: 6px;
}

.filter-tabPanel::-webkit-scrollbar-track {
    background: transparent;
    margin: 4px 0;
}

.filter-tabPanel::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.filter-tabPanel::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Hide scrollbar when not hovering */
.filter-tabPanel:not(:hover)::-webkit-scrollbar-thumb {
    background: transparent;
}


.filter-panel.mobile{
    display: block;
    position: fixed;
    box-shadow: 0px 0px 15px 0px #C2C2C2;
    top:0px;
    left: 0px;
    bottom:0px;
    right:0px;
    z-index: 3;
    background-color: #ffffff;
}
.filter-container.mobile {
    padding: 5px;
    margin-right: 10px;
    font-size: 14px;
}
.filter-container.mobile .filter-display-name{
    padding: 3px;
}
.filter-container.mobile .filter-button-panel{
    padding: 3px;
}
.filter-container.mobile .filter-divHeader {
    padding: 10px;
    background: #3f4944;
    cursor: move;
    color: white;
}
.filter-container.mobile .filter-tabOptions{
    /*padding: 6px;*/
}

.filter-container.mobile .ui-button-text-only .ui-button-text {
    padding: .1em .4em;
}

.filter-panel.mobile .filter-divHeader{
    padding: 10px;
    display: block;
    background: #3f4944;
    text-align: center;
    color: #FFF;
}
.filter-panel.mobile .filter-button-search{
    position: fixed;
    top: 0px;
    left: 0px;
}
.filter-panel.mobile .filter-button-clear{
    position: fixed;
    top: 0px;
    right: 75px;
}
.filter-panel.mobile .filter-button-cancel{
    position: fixed;
    top: 0px;
    right: 0px;
}
.filter-panel.mobile .filter-display-name{
    width: 100px;
}

body.mobile .filter-tabPanel{
    /*padding: 6px;*/
    background: white;
    margin: 5px 5px 0px 4px;
    border: 1px solid #DDD;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
body.mobile .filter-tabPanel > .filter-container{
    display: flex;
    justify-content: flex-start;
}

/* Filter containers inside content wrapper */
.filter-tabPanel .filter-panel-content > .filter-container {
    display: block;
    margin: 0 0 8px 0;
    padding: 12px 14px;
    background: #ffffff;
    z-index: 10;
    border: 1px solid var(--filter-panel-border, #e5e7eb);
    border-radius: 10px;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    /*opacity: 0;*/
    /*transform: translateX(20px);*/
    /*animation: filterSlideIn 0.4s cubic-bezier(0.32, 0.72, 0, 1) forwards;*/
}

/* Staggered animation for content wrapper children */
/*.filter-tabPanel.show_as_side_popup .filter-panel-content > .filter-container:nth-child(1) { animation-delay: 80ms; }*/
/*.filter-tabPanel.show_as_side_popup .filter-panel-content > .filter-container:nth-child(2) { animation-delay: 120ms; }*/
/*.filter-tabPanel.show_as_side_popup .filter-panel-content > .filter-container:nth-child(3) { animation-delay: 160ms; }*/
/*.filter-tabPanel.show_as_side_popup .filter-panel-content > .filter-container:nth-child(4) { animation-delay: 200ms; }*/
/*.filter-tabPanel.show_as_side_popup .filter-panel-content > .filter-container:nth-child(5) { animation-delay: 240ms; }*/
/*.filter-tabPanel.show_as_side_popup .filter-panel-content > .filter-container:nth-child(6) { animation-delay: 280ms; }*/
/*.filter-tabPanel.show_as_side_popup .filter-panel-content > .filter-container:nth-child(7) { animation-delay: 320ms; }*/
/*.filter-tabPanel.show_as_side_popup .filter-panel-content > .filter-container:nth-child(n+8) { animation-delay: 360ms; }*/

.filter-tabPanel:not(.show_as_side_popup) .filter-panel-content > .filter-container {
    animation: none;
    opacity: 0;
    transform: translateX(20px);
}

.filter-tabPanel .filter-panel-content > .filter-container:hover {
    border-color: var(--filter-accent, #3b82f6);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

.filter-tabPanel .filter-panel-content > .filter-container:focus-within {
    border-color: var(--filter-accent, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Dark theme for content wrapper children */
body.dark-theme .filter-tabPanel .filter-panel-content > .filter-container,
.dark-theme body.pc .filter-tabPanel .filter-panel-content > .filter-container {
    background: #111827;
    border-color: #374151;
}

body.dark-theme .filter-tabPanel .filter-panel-content > .filter-container:hover,
.dark-theme body.pc .filter-tabPanel .filter-panel-content > .filter-container:hover {
    border-color: var(--filter-accent);
}

.filter-panel.mobile .filter-container.mobile > table{
    width: 90%;
}
.filter-panel.mobile input[type="text"]{
    width: 92%;
}
.filter-panel.mobile select{
    width: 100%;
}
.filter-panel.mobile input[type="date"]{
    width: 100%;
}
.filter-panel.mobile .filter-table-main{
}

.filter-panel.mobile .filter-table-main td{
    display: block;
}

.filterImageContainer{
    width: 20px;
    height: 20px;
    float: left;
    margin-left: 4px;
    position: relative;
    top: 3px;
}



/* Inline filter table layout - kept minimal for flex layout */
.filter-inlineTabFilterPanel table.filter-table-main {
    width: auto;
    border-collapse: collapse;
}

.filter-inlineTabFilterPanel table.filter-table-main tr {
    display: table-row;
}

.filter-inlineTabFilterPanel table.filter-table-main td {
    padding: 0;
}

/* Filter tab options - compact pill style */
.filter-tabOptions {
    display: inline-flex;
    gap: 2px;
    border: none;
    padding: 3px;
    border-radius: 8px;
    background: #f3f4f6;
    flex-wrap: nowrap;
}

.filter-tabOptions label {
    padding: 5px 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 5px;
    text-transform: none;
    transition: all 0.15s ease;
    background: transparent;
    color: #6b7280;
    border: none;
    white-space: nowrap;
    line-height: 1.2;
}

.filter-tabOptions label:hover {
    color: #374151;
    background: rgba(255, 255, 255, 0.5);
}

.filter-tabOptions input {
    display: none;
}

.filter-tabOptions input:checked+label {
    background: #ffffff;
    color: #111827;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Tab options inside filter panel - more compact */
.filter-tabPanel .filter-tabOptions {
    width: 100%;
    padding: 2px;
    border-radius: 6px;
    background: #f3f4f6;
    gap: 1px;
}

.filter-tabPanel .filter-tabOptions label {
    flex: 1;
    text-align: center;
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 4px;
}

/* Dark theme tab options */
body.dark-theme .filter-tabPanel .filter-tabOptions,
.dark-theme body.pc .filter-tabPanel .filter-tabOptions {
    background: #374151;
}

body.dark-theme .filter-tabPanel .filter-tabOptions label,
.dark-theme body.pc .filter-tabPanel .filter-tabOptions label {
    color: #9ca3af;
}

body.dark-theme .filter-tabPanel .filter-tabOptions label:hover,
.dark-theme body.pc .filter-tabPanel .filter-tabOptions label:hover {
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.05);
}

body.dark-theme .filter-tabPanel .filter-tabOptions input:checked+label,
.dark-theme body.pc .filter-tabPanel .filter-tabOptions input:checked+label {
    background: #4b5563;
    color: #f9fafb;
}


body.pc .filter-tabPanel.no_filters_to_show{
    display: none !important;
}

/* ============================================
   EMPTY STATE - NO FILTERS MESSAGE
   ============================================ */
.filter-tabPanel .no-filters-message {
    text-align: center;
    padding: 48px 32px;
    color: var(--filter-text-muted, #9ca3af);
}

.filter-tabPanel .no-filters-message svg {
    margin: 0 auto 16px;
    opacity: 0.4;
    width: 48px;
    height: 48px;
}

.filter-tabPanel .no-filters-message h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--filter-text-secondary, #6b7280);
    margin: 0 0 6px 0;
}

.filter-tabPanel .no-filters-message p {
    font-size: 13px;
    color: var(--filter-text-muted, #9ca3af);
    margin: 0;
}

/* ============================================
   FILTER PANEL CONTENT AREA
   ============================================ */
.filter-panel-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 16px;
    padding-bottom: 8px;
}

/* ============================================
   FILTER PANEL FOOTER - ACTION BUTTONS
   ============================================ */
.filter-panel-footer {
    padding: 12px 16px 16px;
    background: var(--filter-panel-bg, #ffffff);
    border-top: 1px solid var(--filter-panel-border, #e5e7eb);
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 480px) {
    body.pc .filter-tabPanel {
        --filter-panel-width: 100%;
        border-left: none;
        border-radius: 0;
    }
    
    .filter-panel-content {
        padding: 10px 12px;
    }
    
    .filter-tabPanel > .filter-container,
    .filter-tabPanel .filter-panel-content > .filter-container {
        padding: 10px 12px;
        margin-bottom: 6px;
    }
}

/* ============================================
   BACKDROP OVERLAY - SMOOTH BLUR EFFECT
   ============================================ */
body.pc .filter-tabPanel-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 350ms cubic-bezier(0.32, 0.72, 0, 1),
                visibility 0s linear 350ms;
    cursor: pointer;
}

body.pc .filter-tabPanel-backdrop.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 250ms cubic-bezier(0.32, 0.72, 0, 1),
                visibility 0s linear 0s;
}

/* Inline filter panel - base styles enhanced in action_toolbar.css */
.filter-inlineTabFilterPanel{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.filter-inlineTabFilterPanel .filter-container{
    display: inline-flex;
    align-items: center;
    position: relative;
    --spacing_md: 0;
    --spacing_lg: 0;
}

.filter-inlineTabFilterPanel .filter-display-name, 
.filter-inlineTabFilterPanel .filter_label{
    display: none;
}

.filter-inlineTabFilterPanel .filter_type_tabFilter .filter-display-name{
    display: none;
}

.filter-inlineTabFilterPanel .filter-container .filter-form-elements{
    margin-left: 0;
}



/* ============================================
   BOTTOM ACTION BUTTONS - FLOATING FOOTER
   ============================================ */
body.pc .filter-tabPanel .filter-panel-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(to top, var(--filter-panel-bg, #ffffff) 80%, transparent 100%);
    display: flex;
    gap: 8px;
    z-index: 15;
    flex-shrink: 0;
}

body.pc .filter-tabPanel .close_popup_icon,
body.pc .filter-tabPanel .reset_popup_icon {
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.32, 0.72, 0, 1);
    border: none;
    letter-spacing: 0;
    position: relative;
    overflow: hidden;
}

/* Apply/Close Button - Primary action */
body.pc .filter-tabPanel .close_popup_icon {
    display: flex;
    background: var(--filter-accent, #3b82f6);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

body.pc .filter-tabPanel .close_popup_icon:hover {
    background: var(--filter-accent-hover, #2563eb);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

body.pc .filter-tabPanel .close_popup_icon:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.3);
}

body.pc .filter-tabPanel .close_popup_icon::before {
    content: 'Apply';
    font-weight: 600;
}

/* Reset Button - Secondary action */
body.pc .filter-tabPanel .reset_popup_icon {
    display: flex;
    background: #f3f4f6;
    color: var(--filter-text-secondary, #6b7280);
    border: 1px solid var(--filter-panel-border, #e5e7eb);
    box-shadow: none;
}

body.pc .filter-tabPanel .reset_popup_icon:hover {
    background: #e5e7eb;
    color: var(--filter-text-primary, #111827);
    transform: translateY(-1px);
}

body.pc .filter-tabPanel .reset_popup_icon:active {
    transform: translateY(0);
}

body.pc .filter-tabPanel .reset_popup_icon::before {
    content: 'Reset';
    font-weight: 600;
}

body.pc .filter-tabPanel .close_popup_icon i,
body.pc .filter-tabPanel .reset_popup_icon i {
    display: none;
}


/*CSS STYLES FOR FILTER TABS BY ABN */
.button_like_tabs{
    display: flex;
    gap: 10px;
    /*border: 1px solid #dbd8d830;*/
    padding: 5px;
    margin-top: 10px;
    padding-inline: 10px;

    & label{
        border-radius: 8px;
        background-color: #daeeee;
        color: #014a4b;
        text-transform: capitalize;
        box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    }
    & label:hover{
        background-color: rgba(149, 184, 236, 0.35);
    }
    & input:checked+label{
        /*background-color: #03192c;*/
        background-color: #408dfb;
        color: #fff;
        border-bottom: none;
    }
}

.full_background_tab{
    /*background-color: #fff;*/
    /*box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;*/
    /*margin-top: 12px;*/
    padding: 0;
    border-radius: 0 10px 10px 0;
    border: none;
    /*margin-left: 10px;*/

    .filter-tabOptions{
        display: flex;
        gap: 0;
        border: 1px solid #EEE;
        padding: 4px;
        border-radius: 5px;
        overflow: hidden;
        /*background: white;*/
    }

    & label{
        /*border: 2px solid #408dfb;*/
        background-color: white;
        padding: 6px 8px;
    }

    & label:hover{
        background-color: rgba(149, 184, 236, 0.35);
        /*border-radius: 0 10px 10px 0;*/
    }
    & input:first-child+label{
        border-radius: 10px 0px 0px 10px;
    }
    & label:last-child{
        border-radius: 0 10px 10px 0;
    }
    & input:checked+label{
        background-color: var(--light_theme_selected_element_bg_color__default_primary);
        color: var(--light_theme_selected_element_text_color__default_primary);
        border-bottom: none;
    }
}

.no_background_simple_tab{

    & .filter-tabOptions{
        display: flex;
        gap: 1rem;
        background: #f5f7fa;
        border-radius: 100px;
        margin: 5px;
        /* text-align: center; */
        align-items: center;
        justify-content: center;
        width: fit-content;
        padding: 8px;
    }

    &label{
        border: none;
        font-size: 14px;
        color: #333;
        cursor: pointer;
        padding: 0.3rem 0.8rem;
        transition: all 0.2s ease;
    }
    & input:checked+label{
        background: rgba(0, 0, 0, 0.05);
        border-radius: 999px;
        font-weight: 600;
        color: #000;
        border-bottom: none;
    }
}

.tab_with_square_border{

    & .filter-tabOptions{
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    & label{
        background: #f9f9f9;
        border: 1px solid #ddd;
        font-size: 14px;
        color: #444;
        cursor: pointer;
        padding: 8px;
        margin: 5px;
        border-radius: 8px;
        transition: all 0.2s ease;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }

    & input:checked+label{
        background: #fff;
        border-color: #007bff;
        color: #007bff;
        font-weight: 600;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }
}

.normal_underline_tab{

    & .filter-tabOptions{
        display: flex;
        gap: 2rem;
        border-bottom: 2px solid #eee;
        padding: 0.5rem 0;
        width: fit-content;
    }
    &label{
        background: transparent;
        border: none;
        font-size: 15px;
        font-weight: 500;
        color: #666;
        cursor: pointer;
        padding: 8px;
        margin: 5px;
        position: relative;
        transition: color 0.2s ease;
    }

    & input:checked+label{
        color: #007bff;
    }
}

.dark_background_tab{

    & .filter-tabOptions{
        display: flex;
        gap: 0.8rem;
        background: #111;
        padding: 0.5rem;
        border-radius: 999px;
        width: fit-content;
    }
    &label{
        background: #1e1e1e;
        border: none;
        font-size: 14px;
        font-weight: 500;
        color: #aaa;
        cursor: pointer;
        padding: 8px;
        margin: 5px;
        border-radius: 100px;
        transition: all 0.25s ease;
        position: relative;
        overflow: hidden;
    }

    & input:checked+label{
        background: #007bff;
        color: #fff;
        border-radius: 100px;
        border-bottom: none;

    }


}

.dark_background_tab label{
    background: #1e1e1e;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #aaa;
    cursor: pointer;
    padding: 8px;
    margin: 5px;
    border-radius: 100px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

/* Gradient Tabs - Modern gradient style */
.gradient_tabs {
    & .filter-tabOptions {
        display: flex;
        gap: 0.5rem;
        padding: 6px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 12px;
        width: fit-content;
    }

    & label {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        font-size: 14px;
        font-weight: 500;
        color: #fff;
        cursor: pointer;
        padding: 10px 18px;
        border-radius: 8px;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

    & label:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
    }

    & input:checked+label {
        background: #fff;
        color: #667eea;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        border-bottom: none;
    }
}

/* Pill Tabs - Rounded pill-style tabs */
.pill_tabs {
    & .filter-tabOptions {
        display: flex;
        gap: 0.5rem;
        background: #f0f4f8;
        padding: 6px;
        border-radius: 50px;
        width: fit-content;
    }

    & label {
        background: transparent;
        border: none;
        font-size: 14px;
        font-weight: 500;
        color: #64748b;
        cursor: pointer;
        padding: 8px 20px;
        border-radius: 50px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    & label:hover {
        color: #0ea5e9;
    }

    & input:checked+label {
        background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
        color: #fff;
        box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
        border-bottom: none;
    }
}

/* Outlined Tabs - Clean outlined border style */
.outlined_tabs {
    & .filter-tabOptions {
        display: flex;
        gap: 0.75rem;
        padding: 8px;
        background: #fff;
        border-radius: 10px;
        width: fit-content;
    }

    & label {
        background: transparent;
        border: 2px solid #e2e8f0;
        font-size: 14px;
        font-weight: 500;
        color: #475569;
        cursor: pointer;
        padding: 8px 16px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    & label:hover {
        border-color: #3b82f6;
        color: #3b82f6;
    }

    & input:checked+label {
        background: #3b82f6;
        border-color: #3b82f6;
        color: #fff;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        border-bottom: 2px solid #3b82f6;
    }
}

/* Minimal Badge Tabs - Clean badge-like appearance */
.minimal_badge_tabs {
    & .filter-tabOptions {
        display: flex;
        gap: 0.5rem;
        padding: 4px;
        width: fit-content;
    }

    & label {
        background: #f1f5f9;
        border: none;
        font-size: 13px;
        font-weight: 600;
        color: #64748b;
        cursor: pointer;
        padding: 6px 14px;
        border-radius: 6px;
        transition: all 0.2s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    & label:hover {
        background: #e2e8f0;
        color: #334155;
    }

    & input:checked+label {
        background: #1e293b;
        color: #fff;
        border-bottom: none;
    }
}

/* Animated Slide Tabs - Smooth sliding background animation */
.animated_slide_tabs {
    & .filter-tabOptions {
        display: flex;
        gap: 0;
        padding: 4px;
        background: #f8fafc;
        border-radius: 10px;
        position: relative;
        width: fit-content;
        border: 1px solid #e2e8f0;
    }

    & label {
        background: transparent;
        border: none;
        font-size: 14px;
        font-weight: 500;
        color: #64748b;
        cursor: pointer;
        padding: 10px 20px;
        border-radius: 8px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        z-index: 1;
    }

    & label:hover {
        color: #0f172a;
    }

    & input:checked+label {
        background: #fff;
        color: #0f172a;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-bottom: none;
    }
}

/* Glassmorphism Tabs - Modern glass effect */
.glassmorphism_tabs {
    & .filter-tabOptions {
        display: flex;
        gap: 0.5rem;
        padding: 8px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        width: fit-content;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    & label {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 14px;
        font-weight: 500;
        color: #334155;
        cursor: pointer;
        padding: 10px 18px;
        border-radius: 12px;
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
    }

    & label:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
    }

    & input:checked+label {
        background: rgba(59, 130, 246, 0.8);
        border-color: rgba(59, 130, 246, 0.8);
        color: #fff;
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
        border-bottom: 1px solid rgba(59, 130, 246, 0.8);
    }
}

/* Neon Glow Tabs - Vibrant neon border effect */
.neon_glow_tabs {
    & .filter-tabOptions {
        display: flex;
        gap: 1rem;
        padding: 8px;
        background: #1a1a2e;
        border-radius: 12px;
        width: fit-content;
    }

    & label {
        background: transparent;
        border: 2px solid #0f3460;
        font-size: 14px;
        font-weight: 600;
        color: #94a3b8;
        cursor: pointer;
        padding: 10px 20px;
        border-radius: 8px;
        transition: all 0.3s ease;
        position: relative;
    }

    & label:hover {
        border-color: #16a085;
        color: #16a085;
        box-shadow: 0 0 10px rgba(22, 160, 133, 0.5);
    }

    & input:checked+label {
        background: transparent;
        border-color: #16a085;
        color: #16a085;
        box-shadow: 0 0 20px rgba(22, 160, 133, 0.8),
                    inset 0 0 10px rgba(22, 160, 133, 0.3);
        border-bottom: 2px solid #16a085;
    }
}

/* Material Tabs - Material Design style */
.material_tabs {
    & .filter-tabOptions {
        display: flex;
        gap: 0;
        padding: 0;
        background: #fff;
        border-bottom: 1px solid #e0e0e0;
        width: fit-content;
    }

    & label {
        background: transparent;
        border: none;
        font-size: 14px;
        font-weight: 500;
        color: #616161;
        cursor: pointer;
        padding: 14px 24px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    & label:hover {
        background: rgba(63, 81, 181, 0.08);
        color: #3f51b5;
    }

    & label::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: #3f51b5;
        transform: scaleX(0);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    & input:checked+label {
        color: #3f51b5;
        border-bottom: none;
    }

    & input:checked+label::after {
        transform: scaleX(1);
    }
}

/* Soft Shadow Tabs - Elegant soft shadow style */
.soft_shadow_tabs {
    & .filter-tabOptions {
        display: flex;
        gap: 0.75rem;
        padding: 8px;
        background: #fff;
        border-radius: 12px;
        width: fit-content;
    }

    & label {
        background: #fff;
        border: none;
        font-size: 14px;
        font-weight: 500;
        color: #64748b;
        cursor: pointer;
        padding: 10px 20px;
        border-radius: 10px;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    & label:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
        color: #334155;
    }

    & input:checked+label {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        color: #fff;
        box-shadow: 0 8px 20px rgba(245, 87, 108, 0.4);
        border-bottom: none;
    }
}

/* Modern Minimal Tabs - Clean and modern minimal design */
.modern_minimal_tabs {
    & .filter-tabOptions {
        display: flex;
        gap: 0.25rem;
        padding: 4px;
        background: #f8fafc;
        border-radius: 10px;
        width: fit-content;
        border: 1px solid #e2e8f0;
    }

    & label {
        background: transparent;
        border: none;
        font-size: 14px;
        font-weight: 500;
        color: #64748b;
        cursor: pointer;
        padding: 8px 16px;
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    & label:hover {
        color: #0f172a;
        background: #f1f5f9;
    }

    & input:checked+label {
        background: #0f172a;
        color: #fff;
        border-bottom: none;
    }
}




/* ============================================
   DARK THEME SUPPORT
   ============================================ */
body.dark-theme .filter-tabPanel,
.dark-theme body.pc .filter-tabPanel {
    --filter-panel-bg: #1f2937;
    --filter-panel-header-bg: #111827;
    --filter-panel-border: #374151;
    --filter-panel-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --filter-accent: #60a5fa;
    --filter-accent-hover: #3b82f6;
    --filter-text-primary: #f9fafb;
    --filter-text-secondary: #9ca3af;
    --filter-text-muted: #6b7280;
}

body.dark-theme .filter-tabPanel > .filter-container,
.dark-theme body.pc .filter-tabPanel > .filter-container {
    background: #111827;
    border-color: #374151;
}

body.dark-theme .filter-tabPanel > .filter-container:hover,
.dark-theme body.pc .filter-tabPanel > .filter-container:hover {
    border-color: var(--filter-accent);
}

body.dark-theme .filter-tabPanel .filter-container select,
body.dark-theme .filter-tabPanel .filter-container input[type="text"],
body.dark-theme .filter-tabPanel .filter-container input[type="date"],
body.dark-theme .filter-tabPanel .filter-container input[type="number"],
body.dark-theme .filter-tabPanel .filter-container input[type="search"],
.dark-theme body.pc .filter-tabPanel .filter-container select,
.dark-theme body.pc .filter-tabPanel .filter-container input {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

body.dark-theme .filter-tabPanel .filter-container select:hover,
body.dark-theme .filter-tabPanel .filter-container input:hover,
.dark-theme body.pc .filter-tabPanel .filter-container select:hover,
.dark-theme body.pc .filter-tabPanel .filter-container input:hover {
    background: #4b5563;
    border-color: #6b7280;
}

body.dark-theme .filter-tabPanel .filter-container select:focus,
body.dark-theme .filter-tabPanel .filter-container input:focus,
.dark-theme body.pc .filter-tabPanel .filter-container select:focus,
.dark-theme body.pc .filter-tabPanel .filter-container input:focus {
    background: #374151;
    border-color: var(--filter-accent);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

body.dark-theme .filter-tabPanel .reset_popup_icon,
.dark-theme body.pc .filter-tabPanel .reset_popup_icon {
    background: #374151;
    border-color: #4b5563;
    color: #d1d5db;
}

body.dark-theme .filter-tabPanel .reset_popup_icon:hover,
.dark-theme body.pc .filter-tabPanel .reset_popup_icon:hover {
    background: #4b5563;
    color: #f9fafb;
}

body.dark-theme .filter-tabPanel-backdrop,
.dark-theme body.pc .filter-tabPanel-backdrop {
    background: rgba(0, 0, 0, 0.6);
}

body.dark-theme .filter-tabPanel .filter-panel-footer,
.dark-theme body.pc .filter-tabPanel .filter-panel-footer {
    background: linear-gradient(to top, #1f2937 80%, transparent 100%);
}

/* Select arrow for dark theme */
body.dark-theme .filter-tabPanel .filter-container select,
.dark-theme body.pc .filter-tabPanel .filter-container select {
    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='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.filter-container .daterangepicker{
    /*min-width: 400px;*/
}


/* ============================================
   MODULE LEVEL FILTER - PROMINENT SPECIAL FILTERS
   ============================================ */
.module_level_filter_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    gap: 12px;
    padding: 16px 20px;
    /*background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #f8fafc 100%);*/
    /*border-bottom: 1px solid rgba(59, 130, 246, 0.12);*/
    /*border-top: 1px solid rgba(59, 130, 246, 0.08);*/
    position: relative;
    flex-wrap: wrap;
    z-index: 999;
    margin-bottom: 0;
    /*box-shadow: */
    /*    0 1px 3px rgba(0, 0, 0, 0.04),*/
    /*    inset 0 1px 0 rgba(255, 255, 255, 0.8);*/

    &:empty{
        display: none;
    }

    /* Professional top accent line */
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(
            90deg,
            #3b82f6 0%,
            #60a5fa 50%,
            #3b82f6 100%
        );
        opacity: 0.8;
    }

    /* Subtle bottom highlight */
    /*&::after {*/
    /*    content: '';*/
    /*    position: absolute;*/
    /*    bottom: 0;*/
    /*    left: 0;*/
    /*    right: 0;*/
    /*    height: 1px;*/
    /*    background: linear-gradient(*/
    /*        90deg,*/
    /*        transparent 0%,*/
    /*        rgba(59, 130, 246, 0.2) 50%,*/
    /*        transparent 100%*/
    /*    );*/
    /*}*/

    /* Responsive design improvements */
    @media (max-width: 768px) {
        padding: 12px 16px;
        gap: 10px;
    }

    @media (max-width: 480px) {
        padding: 10px 12px;
        gap: 8px;
    }
}

/* Removed shimmer animation for cleaner, more professional look */

.filter-container.module_level_filter {
    min-width: 280px;
    max-width: 500px;
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    /*border: 1px solid rgba(59, 130, 246, 0.2);*/
    /*box-shadow: */
    /*    0 4px 6px -1px rgba(59, 130, 246, 0.08),*/
    /*    0 2px 4px -2px rgba(59, 130, 246, 0.06),*/
    /*    0 0 0 1px rgba(59, 130, 246, 0.05);*/
    position: relative;
    z-index: 1;
    /*overflow: hidden;*/
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/*.filter-container.module_level_filter:hover {*/
/*    border-color: rgba(59, 130, 246, 0.4);*/
/*    box-shadow: */
/*        0 8px 12px -3px rgba(59, 130, 246, 0.12),*/
/*        0 4px 6px -4px rgba(59, 130, 246, 0.1),*/
/*        0 0 0 1px rgba(59, 130, 246, 0.1);*/
/*    transform: translateY(-1px);*/
/*}*/

.filter-container.module_level_filter:focus-within {
    border-color: #3b82f6;
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.15),
        0 8px 12px -3px rgba(59, 130, 246, 0.12);
}

/* Accent bar on left side */
/*.filter-container.module_level_filter::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    left: 0;*/
/*    top: 0;*/
/*    bottom: 0;*/
/*    width: 4px;*/
/*    background: linear-gradient(180deg, #3b82f6 0%, #60a5fa 50%, #3b82f6 100%);*/
/*    border-radius: 12px 0 0 12px;*/
/*}*/

/* Label styling */
.filter-container.module_level_filter .filter-display-name,
.filter-container.module_level_filter .filter_label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 6px 18px;
    padding: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    /*background: linear-gradient(to bottom, rgba(59, 130, 246, 0.04) 0%, transparent 100%);*/
}

.filter-container.module_level_filter .filter-display-name::before,
.filter-container.module_level_filter .filter_label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.5);
}

/* Table layout */
.filter-container.module_level_filter .filter-table-main {
    width: 100%;
}

.filter-container.module_level_filter .filter-table-main tr {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
}

.filter-container.module_level_filter .filter-table-main td {
    padding: 0;
}

/* Form elements wrapper */
/*.filter-container.module_level_filter .filter-form-elements {*/
/*    padding: 8px 14px 12px 18px;*/
/*    margin: 0 !important;*/
/*}*/

/* Input styling - Professional Modern Design */
.filter-container.module_level_filter :is(select, input[type="text"], input[type="search"], input[type="date"], input[type="number"]) {
    width: 100%;
    min-width: 220px;
    padding: 11px 16px;
    padding-inline-start: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.04),
        inset 0 1px 2px rgba(0, 0, 0, 0.02);
    font-family: inherit;
}

.filter-container.module_level_filter input[type="search"] {
    padding-inline-start: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 16px 16px;
}

.filter-container.module_level_filter :is(select, input):hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.06),
        inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.filter-container.module_level_filter :is(select, input):focus {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.06);
    outline: none;
}

.filter-container.module_level_filter input[type="search"]:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
}

.filter-container.module_level_filter input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Select dropdown arrow */
.filter-container.module_level_filter select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Chosen dropdown adjustments */
.filter-container.module_level_filter .chosen-container {
    width: 100% !important;
    min-width: 220px;
}

.filter-container.module_level_filter .chosen-container .chosen-choices,
.filter-container.module_level_filter .chosen-container .chosen-single {
    padding: 0px 9px;
    min-height: 35px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-container.module_level_filter .chosen-container-active .chosen-choices,
.filter-container.module_level_filter .chosen-container-active .chosen-single {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Tab options inside module level filter - Professional Modern Design */
.filter-container.module_level_filter .filter-tabOptions {
    display: flex;
    gap: 3px;
    padding: 3px;
    background: #e2e8f0;
    border-radius: 10px;
    width: 100%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.filter-container.module_level_filter .filter-tabOptions label {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
}

.filter-container.module_level_filter .filter-tabOptions label:hover {
    color: #334155;
    background: rgba(255, 255, 255, 0.7);
}

.filter-container.module_level_filter .filter-tabOptions input:checked + label {
    background: #ffffff;
    color: #3b82f6;
    font-weight: 700;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.filter-container.module_level_filter .filter-tabOptions label:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #334155;
}

.filter-container.module_level_filter .filter-tabOptions input:checked + label {
    background: #ffffff;
    color: #3b82f6;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ============================================
   MODULE LEVEL FILTER - DARK THEME
   ============================================ */
body.dark-theme .module_level_filter_container,
.dark-theme .module_level_filter_container {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%);
    border-bottom-color: rgba(96, 165, 250, 0.2);
    border-top-color: rgba(96, 165, 250, 0.15);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-theme .module_level_filter_container::before,
.dark-theme .module_level_filter_container::before {
    background: linear-gradient(
        90deg,
        #60a5fa 0%,
        #3b82f6 50%,
        #60a5fa 100%
    );
    opacity: 0.9;
}

body.dark-theme .module_level_filter_container::after,
.dark-theme .module_level_filter_container::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(96, 165, 250, 0.3) 50%,
        transparent 100%
    );
}

body.dark-theme .filter-container.module_level_filter,
.dark-theme .filter-container.module_level_filter {
    background: #1e293b;
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 2px 4px -2px rgba(0, 0, 0, 0.2);
}

body.dark-theme .filter-container.module_level_filter:hover,
.dark-theme .filter-container.module_level_filter:hover {
    border-color: rgba(96, 165, 250, 0.5);
}

body.dark-theme .filter-container.module_level_filter::before,
.dark-theme .filter-container.module_level_filter::before {
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 50%, #60a5fa 100%);
}

body.dark-theme .filter-container.module_level_filter .filter-display-name,
body.dark-theme .filter-container.module_level_filter .filter_label,
.dark-theme .filter-container.module_level_filter .filter-display-name,
.dark-theme .filter-container.module_level_filter .filter_label {
    color: #60a5fa;
    background: linear-gradient(to bottom, rgba(96, 165, 250, 0.08) 0%, transparent 100%);
}

body.dark-theme .filter-container.module_level_filter .filter-display-name::before,
body.dark-theme .filter-container.module_level_filter .filter_label::before,
.dark-theme .filter-container.module_level_filter .filter-display-name::before,
.dark-theme .filter-container.module_level_filter .filter_label::before {
    background: #60a5fa;
    box-shadow: 0 0 6px rgba(96, 165, 250, 0.6);
}

body.dark-theme .filter-container.module_level_filter :is(select, input),
.dark-theme .filter-container.module_level_filter :is(select, input) {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

body.dark-theme .filter-container.module_level_filter :is(select, input):hover,
.dark-theme .filter-container.module_level_filter :is(select, input):hover {
    background: #1e293b;
    border-color: #475569;
}

body.dark-theme .filter-container.module_level_filter :is(select, input):focus,
.dark-theme .filter-container.module_level_filter :is(select, input):focus {
    background: #1e293b;
    border-color: #60a5fa;
    box-shadow: 
        0 0 0 4px rgba(96, 165, 250, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-theme .filter-container.module_level_filter input[type="search"],
.dark-theme .filter-container.module_level_filter input[type="search"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 16px 16px;
}

body.dark-theme .filter-container.module_level_filter input[type="search"]:focus,
.dark-theme .filter-container.module_level_filter input[type="search"]:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
}

body.dark-theme .filter-container.module_level_filter input::placeholder,
.dark-theme .filter-container.module_level_filter input::placeholder {
    color: #64748b;
}

body.dark-theme .filter-container.module_level_filter select,
.dark-theme .filter-container.module_level_filter select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

body.dark-theme .filter-container.module_level_filter .filter-tabOptions,
.dark-theme .filter-container.module_level_filter .filter-tabOptions {
    background: #1e293b;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.dark-theme .filter-container.module_level_filter .filter-tabOptions label,
.dark-theme .filter-container.module_level_filter .filter-tabOptions label {
    color: #94a3b8;
}

body.dark-theme .filter-container.module_level_filter .filter-tabOptions label:hover,
.dark-theme .filter-container.module_level_filter .filter-tabOptions label:hover {
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.05);
}

body.dark-theme .filter-container.module_level_filter .filter-tabOptions input:checked + label,
.dark-theme .filter-container.module_level_filter .filter-tabOptions input:checked + label {
    background: #334155;
    color: #60a5fa;
    font-weight: 700;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2);
}



