.tree-search input {
    width: 100%;
    padding: 6px 8px;
    font-size: 13px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
}

.tree-search input:focus {
    border-color: #2563eb;
}
/* =====================================================
BUTTON
===================================================== */
.btn-filter {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-filter:hover {
    background: #f3f6f9;
}

/* =====================================================
   OVERLAY TREE FILTER
===================================================== */
.css-tree-filter  {
    border-right: 1px solid #c3c3c3;
    border-radius: 10px;
    background: #ffffff;
    border-radius: 8px;
    /*    padding: 12px;*/

    box-shadow: 0 10px 30px rgba(0,0,0,0.15);

    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    color: #2b2f33;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* fixed вариант ако потрябва */
.css-tree-filter.fixed {
    position: fixed;
    z-index: 9999;
}

/* hidden state */
.css-tree-filter.is-hidden {
    display: none;
}

/* =====================================================
   TITLE
===================================================== */
.css-tree-filter h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

/* =====================================================
   TREE STRUCTURE
===================================================== */
.css-tree-filter ul {
    list-style: none;
    margin: 0;
    padding-left: 18px;
}

.css-tree-filter ul.root {
    padding-left: 0;
}

.css-tree-filter li {
    margin: 3px 0;
}

/* =====================================================
   NODE
===================================================== */
.css-tree-filter .css-node {
    display: inline;
    align-items: center;
    gap: 6px;
    overflow-wrap: anywhere;
    line-height: 1.4;
    padding: 3px 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.css-tree-filter .css-node:hover {
    background: #f3f6f9;
}

/* =====================================================
   TOGGLE
===================================================== */
.css-tree-filter .toggle {
    width: 14px;
    text-align: center;
    font-size: 10px;
    color: #6b7280;
    user-select: none;
}

.css-tree-filter .toggle::before {
    content: "▶";
}

.css-tree-filter li.open > .css-node .toggle::before {
    content: "▼";
}

/* =====================================================
   CHECKBOX & LABEL
===================================================== */

.css-tree-filter li.has-children.open > .css-node > .css-label {
    font-weight: 500;
    color:#2563eb;
}

/* =====================================================
   CHILD LEVEL VISUAL
===================================================== */
.css-tree-filter ul ul {
    border-left: 1px dashed #e5e7eb;
    margin-left: 6px;
    padding-left: 12px;
}

/* =====================================================
   ACTION BUTTONS
===================================================== */
.css-tree-filter .actions {
    display: flex;
    gap: 8px;
    position: absolute;
    margin-bottom: 10px;
    bottom:0;
}

.css-tree-filter .actions button {
    padding: 6px 8px !important;
    border: 1px solid #d1d5db;
    cursor: pointer;
    transition: background 0.15s ease, border 0.15s ease;
}

.css-tree-filter .actions button:hover {
    background: #eef2f7;
    border-color: #c7ccd1;
}

.css-tree-filter .css-date-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.css-tree-filter .css-date-label {
    margin-bottom: 2px;
    display: block;
}
