/* /dev/products/assets/sidebar-menu.css - CORRECTED */

:root {
    --menu-bg: #ffffff; --menu-text: #495057; --menu-text-hover: #000000;
    --menu-section-text: #6c757d; --menu-border: #dee2e6; --menu-active-bg: #f1f3f5;
    --menu-tree-line: #ced4da;
}
.supabase-menu { background-color: transparent;
    color: var(--menu-text);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    font-family: var(--font-family-sans, sans-serif);
    overflow-y: auto;
    border-right: 1px solid var(--menu-border);
    scrollbar-width: thin;
    scrollbar-color: var(--menu-border) transparent;
    border: 0; margin-top: 17px;}
.supabase-menu::-webkit-scrollbar { width: 6px; } .supabase-menu::-webkit-scrollbar-thumb { background-color: var(--menu-border); border-radius: 3px; }
.menu-section { list-style: none; padding: 0; margin: 16px 0 0 0; padding-top: 16px; }
.menu-section:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.menu-section-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--menu-section-text); padding: 8px 12px; letter-spacing: 0.5px; }
.menu-item { display: flex; align-items: center; padding: 8px 12px; border-radius: 6px; text-decoration: none; color: var(--menu-text); font-size: 0.9rem; font-weight: 500; transition: background-color 0.15s, color 0.15s; }
.menu-item:hover { background-color: var(--menu-active-bg); color: var(--menu-text-hover); }
.menu-item.is-static { cursor: default; } .menu-item.is-static:hover { background-color: transparent; }

.item-icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    flex-shrink: 0;
    color: var(--menu-section-text);
}

.o78 {
    border-top: solid 1px #3407381c;
}

.menu-tree { list-style: none; padding: 0; margin: 0; position: relative; }

/* Styles for items generated by the render_category_tree function */
.menu-tree-item {
    display: flex;
    align-items: center;
    padding: 6px 0; /* Vertical padding only */
    cursor: pointer;
    border-radius: 4px;
    position: relative;
    user-select: none;
}
.menu-tree-item:hover { background-color: var(--menu-active-bg); }
.menu-tree-item.selected { color: var(--menu-text-hover); font-weight: 600; }

/* FIX: Scope the checkbox icon and its related padding ONLY to the product tree section. */
.product-tree-section .menu-tree-item {
    padding-left: 20px; /* Add left padding only to product items */
}
.product-tree-section .checkbox-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    flex-shrink: 0;
    background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M6,6 Q4,4 8,4 L24,4 Q28,4 26,8 L26,24 Q28,28 24,26 L8,26 Q4,28 6,24 Z" fill="none" stroke="%236c757d" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    transition: all 0.2s;
}
.product-tree-section .menu-tree-item.selected > .checkbox-icon {
    background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M6,6 Q4,4 8,4 L24,4 Q28,4 26,8 L26,24 Q28,28 24,26 L8,26 Q4,28 6,24 Z" fill="none" stroke="%23212529" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 16 L14 21 L23 10" fill="none" stroke="%23212529" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}
/* End of fix */

.item-label { flex-grow: 1; font-size: 0.85rem; }
.product-tree-section .tree-line { position: absolute; left: 8px; top: 0; bottom: 0; width: 1px; background-color: var(--menu-tree-line); transition: all 0.3s; }
.product-tree-section li:last-child > .menu-tree-item > .tree-line { height: 19px; }
.toggle-icon { width: 14px; height: 14px; margin-left: auto; margin-right: 8px; background-color: var(--menu-text); -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><polyline points="6 9 12 15 18 9"></polyline></svg>') center/contain no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><polyline points="6 9 12 15 18 9"></polyline></svg>') center/contain no-repeat; transition: transform 0.2s ease-out; }
.submenu-container { max-height: 0; overflow: hidden; padding-left: 20px; position: relative; transition: max-height 0.3s cubic-bezier(0.25, 0.1, 0.25, 1); }
li.is-expanded > .menu-tree-item > .toggle-icon { transform: rotate(180deg); }
li.is-expanded > .submenu-container { max-height: 1000px; }