/**
 * 智能报价左侧菜单 - 独立样式文件
 * 不依赖 .card/.card-body/.accordion 等系统默认类，避免加载时黑边框和菜单堆叠
 * 需在 head 中加载，确保首帧渲染正确
 */

/* 菜单容器：纯自定义，无 card 继承 */
.product-detail-smart-quote-left .product-detail-smart-quote-menu-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background: #fff;
    overflow: visible;
}

.product-detail-smart-quote-left .product-detail-smart-quote-menu-body {
    padding: 0.75rem 0.875rem;
    background: #fff;
    border: none;
}

/* 防止 collapse 继承 Bootstrap/系统样式 */
#smartQuoteCategoryAccordion .collapse {
    display: none;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0;
    margin: 0;
}

#smartQuoteCategoryAccordion .collapse.show {
    display: block;
    border: none !important;
    background: transparent !important;
}

#smartQuoteCategoryAccordion .collapsing {
    border: none !important;
    background: transparent !important;
}

/* 标题区 */
.product-detail-smart-quote-left .smart-quote-sidebar-header {
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border: none;
}

.product-detail-smart-quote-left .smart-quote-sidebar-header h6 {
    margin: 0;
    color: #212529;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.product-detail-smart-quote-left .smart-quote-sidebar-header h6 i {
    margin-right: 0.4rem;
    color: #6c757d;
}

/* 手风琴容器 */
.product-detail-smart-quote-left .smart-quote-accordion {
    max-height: 70vh;
    overflow-y: auto;
    background: #fff;
    border: none;
}

.product-detail-smart-quote-left .smart-quote-menu-group {
    margin-bottom: 0.25rem;
}

/* 分类按钮 */
.product-detail-smart-quote-left .smart-quote-category-header {
    background: #f5f6f7;
    border: none;
    border-radius: 4px;
    padding: 0.45rem 0.6rem;
    width: 100%;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.product-detail-smart-quote-left .smart-quote-category-header:hover {
    background: #e9ecef;
    color: #212529;
}

.product-detail-smart-quote-left .smart-quote-category-header[aria-expanded="true"],
.product-detail-smart-quote-left .smart-quote-category-header:not(.collapsed) {
    background: #e7f3ff;
    color: #0066cc;
}

.product-detail-smart-quote-left .smart-quote-category-header i.bi-folder {
    margin-right: 0.3rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.product-detail-smart-quote-left .smart-quote-category-header[aria-expanded="true"] i.bi-folder,
.product-detail-smart-quote-left .smart-quote-category-header:not(.collapsed) i.bi-folder {
    color: #0066cc;
}

/* Badge - 覆盖 Bootstrap .badge */
.product-detail-smart-quote-left .smart-quote-cat-badge {
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0.15rem 0.35rem;
    background: rgba(0,0,0,0.08);
    color: #495057;
    margin-left: auto;
    border-radius: 3px;
    border: none !important;
}

.product-detail-smart-quote-left .smart-quote-category-header[aria-expanded="true"] .smart-quote-cat-badge,
.product-detail-smart-quote-left .smart-quote-category-header:not(.collapsed) .smart-quote-cat-badge {
    background: rgba(0,102,204,0.2);
    color: #0066cc;
}

.product-detail-smart-quote-left .smart-quote-chevron {
    font-size: 0.7rem;
    color: #6c757d;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.product-detail-smart-quote-left .smart-quote-category-header[aria-expanded="true"] .smart-quote-chevron,
.product-detail-smart-quote-left .smart-quote-category-header:not(.collapsed) .smart-quote-chevron {
    transform: rotate(90deg);
    color: #0066cc;
}

/* 产品列表 - 覆盖 ul/li 默认样式 */
.product-detail-smart-quote-left .smart-quote-product-list {
    list-style: none;
    padding: 0.2rem 0 0.15rem 0;
    margin: 0.15rem 0 0 0;
    padding-left: 0.85rem;
    border: none !important;
    background: transparent;
}

.product-detail-smart-quote-left .smart-quote-product-list li {
    border: none !important;
    background: transparent;
}

.product-detail-smart-quote-left .smart-quote-sub-label {
    font-weight: 500;
    font-size: 0.72rem;
    color: #6c757d;
    padding: 0.2rem 0 0.05rem 0.85rem;
    margin-top: 0.25rem;
    border: none !important;
    background: transparent;
}

.product-detail-smart-quote-left .smart-quote-sub-label:first-child {
    margin-top: 0;
}

.product-detail-smart-quote-left .smart-quote-menu-item {
    padding: 0.18rem 0.5rem;
    margin: 0;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    color: #6c757d;
    text-decoration: none;
    display: block;
    font-size: 0.78rem;
    border: none;
}

.product-detail-smart-quote-left .smart-quote-menu-item:hover {
    background: #f5f6f7;
    color: #495057;
}

.product-detail-smart-quote-left .smart-quote-menu-item.active {
    background: #e7f3ff;
    color: #0066cc;
    font-weight: 500;
}

.product-detail-smart-quote-left .smart-quote-menu-item i.bi-circle-fill {
    margin-right: 0.35rem;
    font-size: 0.4rem;
    vertical-align: middle;
}
