/* wpDataTables Powerful Filters (self-built) — UI for Apply/Reset/Share + hide state */

.wpdt-pf-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
}

.wpdt-pf-controls .button.btn,
.wpdt-pf-controls button.btn {
    margin: 0;
    cursor: pointer;
    border-radius: 4px;
    line-height: 1.4;
    padding: 7px 16px;
    font-size: 13px;
    border: 1px solid transparent;
    transition: background-color .15s ease, opacity .15s ease;
}

.wpdt-pf-apply {
    background-color: #5d9c59;
    border-color: #5d9c59 !important;
    color: #fff;
}
.wpdt-pf-apply:hover { background-color: #4e8a4a; }

.wpdt-pf-reset {
    background-color: #f1f3f5;
    border-color: #d0d5da !important;
    color: #344050;
}
.wpdt-pf-reset:hover { background-color: #e6e9ec; }

.wpdt-pf-share {
    background-color: transparent;
    border-color: #b6bec8 !important;
    color: #4f6781;
}
.wpdt-pf-share:hover { background-color: #eef2f6; }
.wpdt-pf-share.wpdt-pf-done {
    background-color: #5d9c59;
    border-color: #5d9c59 !important;
    color: #fff;
}

.wpdt-pf-apply.wpdt-pf-disabled,
.wpdt-pf-apply:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.wpdt-pf-placeholder {
    border: 1px dashed #c4ccd6;
    background: #f7f9fb;
    color: #6b7785;
    border-radius: 6px;
    padding: 28px 20px;
    text-align: center;
    font-size: 14px;
    margin: 14px 0;
}

/* --- beyond-original UI --------------------------------------------------- */

/* Cascade-mode switcher (demo affordance) */
.wpdt-pf-mode {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    padding: 10px 14px;
    margin: 0 0 14px;
    background: #f3f6fb;
    border: 1px solid #dde6f1;
    border-radius: 6px;
    font-size: 13px;
}
.wpdt-pf-mode-label { font-weight: 600; color: #344050; }
.wpdt-pf-mode-opt { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; color: #28456f; }
.wpdt-pf-mode-opt input { margin: 0; cursor: pointer; }
.wpdt-pf-mode-hint { color: #6b7785; font-size: 12px; flex-basis: 100%; }


.wpdt-pf-export {
    background-color: transparent;
    border-color: #b6bec8 !important;
    color: #4f6781;
}
.wpdt-pf-export:hover { background-color: #eef2f6; }

/* Live result-count: zero-match warning state on the Apply button */
.wpdt-pf-apply.wpdt-pf-empty {
    background-color: #d64545;
    border-color: #d64545 !important;
    color: #fff;
}
.wpdt-pf-apply.wpdt-pf-empty:hover { background-color: #be3b3b; }

/* Active-filter chips */
.wpdt-pf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 12px 0 4px;
}
.wpdt-pf-chips-label { color: #6b7785; font-size: 13px; }
.wpdt-pf-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef4ff;
    border: 1px solid #c7dafe;
    color: #28456f;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
.wpdt-pf-chip:hover { background: #dde9ff; }
.wpdt-pf-chip .wpdt-pf-chip-x { font-weight: 700; opacity: .6; }
.wpdt-pf-chip:hover .wpdt-pf-chip-x { opacity: 1; }
.wpdt-pf-chip-risky { background: #fff4e5; border-color: #ffd591; color: #8a5a00; }
.wpdt-pf-chip-clear {
    background: transparent;
    border-color: #d0d5da;
    color: #6b7785;
    border-radius: 6px;
}
.wpdt-pf-chip-clear:hover { background: #f1f3f5; }

/* Live KPI / aggregate bar */
.wpdt-pf-kpi {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    align-items: baseline;
    padding: 10px 14px;
    margin: 8px 0 12px;
    background: #f7f9fb;
    border: 1px solid #e3e8ee;
    border-radius: 6px;
}
.wpdt-pf-kpi-item { display: inline-flex; align-items: baseline; gap: 6px; }
.wpdt-pf-kpi-label { color: #6b7785; font-size: 12px; }
.wpdt-pf-kpi-value { color: #1f2d3d; font-size: 16px; font-weight: 600; }

/* Zero-result recovery card */
.wpdt-pf-recovery {
    border: 1px solid #ffd591;
    background: #fff8ec;
    color: #7a5600;
    border-radius: 6px;
    padding: 22px 20px;
    text-align: center;
    margin: 14px 0;
}
.wpdt-pf-recovery-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.wpdt-pf-recovery-hint { font-size: 14px; }
.wpdt-pf-relax {
    background-color: #5d9c59;
    border: 1px solid #5d9c59 !important;
    color: #fff;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 13px;
    cursor: pointer;
    margin-left: 6px;
}
.wpdt-pf-relax:hover { background-color: #4e8a4a; }
