/**
 * カテゴリーと商品管理のスタイル
 */

/* カテゴリーツリー */
.category-tree {
    max-height: 500px;
    overflow-y: auto;
    padding: 0.5rem;
    border-radius: 0.375rem;
}

.category-link {
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    color: #212529;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-link:hover {
    background-color: #e9ecef;
    color: #0d6efd;
}

.category-link.active {
    background-color: #e7f1ff;
    color: #0d6efd;
    font-weight: 500;
}

/* 商品テーブル */
.product-table {
    font-size: 0.875rem;
}

.product-table th {
    background-color: #f8f9fa;
}

.product-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 商品検索ボックス */
.product-search-box {
    position: relative;
}

.product-search-box .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.product-search-box input {
    padding-left: 35px;
}

/* 商品詳細カード */
.product-detail-card {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-detail-card:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-color: #c6c9cc;
}

.product-detail-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.product-detail-card .card-body {
    padding: 1rem;
}

/* カテゴリーバッジ */
.category-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    background-color: #e9ecef;
    color: #495057;
}

/* 商品選択モーダル */
.product-modal .modal-dialog {
    max-width: 800px;
}

.product-modal .modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.product-selection-container {
    display: flex;
    gap: 1.5rem;
}

.category-sidebar {
    flex: 0 0 30%;
    min-width: 200px;
    border-right: 1px solid #dee2e6;
    padding-right: 1rem;
}

.product-content {
    flex: 1;
}