/* 鳴白用 販売状況管理スタイル */

.nakihaku-sales-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.nakihaku-sales-title {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #444;
}

.nakihaku-sales-notice {
    background-color: #2a2a2a;
    color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #444;
}

.nakihaku-sales-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 商品アイテム */
.nakihaku-sales-item {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nakihaku-sales-item:hover {
    border-color: #555;
}

/* ヘッダー（常に表示） */
.nakihaku-sales-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #252525;
    transition: background-color 0.3s ease;
}

.nakihaku-sales-header:hover {
    background-color: #2f2f2f;
}

.nakihaku-sales-header-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nakihaku-product-title {
    color: #ffffff;
    font-size: 20px;
    margin: 0;
    font-weight: 600;
}

.nakihaku-end-date {
    color: #ff6b6b;
    font-size: 14px;
    background-color: #2a1a1a;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #ff6b6b;
}

.nakihaku-end-date-label {
    font-weight: 600;
    margin-right: 5px;
}

.nakihaku-toggle-icon {
    color: #888;
    font-size: 18px;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.nakihaku-sales-item.active .nakihaku-toggle-icon {
    transform: rotate(180deg);
}

/* コンテンツ（アコーディオン） */
.nakihaku-sales-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nakihaku-sales-item.active .nakihaku-sales-content {
    max-height: 1000px;
}

/* テーブル */
.nakihaku-sales-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px;
    width: calc(100% - 40px);
}

.nakihaku-sales-table thead {
    background-color: #2a2a2a;
}

.nakihaku-sales-table th {
    color: #ffffff;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #444;
}

.nakihaku-sales-table td {
    color: #e0e0e0;
    padding: 15px;
    border-bottom: 1px solid #333;
}

.nakihaku-sales-table tbody tr:hover {
    background-color: #2a2a2a;
}

.nakihaku-sales-table tbody tr:last-child td {
    border-bottom: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .nakihaku-sales-container {
        padding: 10px;
    }
    
    .nakihaku-sales-title {
        font-size: 24px;
    }
    
    .nakihaku-sales-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .nakihaku-product-title {
        font-size: 18px;
    }
    
    .nakihaku-sales-table {
        font-size: 14px;
    }
    
    .nakihaku-sales-table th,
    .nakihaku-sales-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .nakihaku-sales-table {
        font-size: 12px;
    }
    
    .nakihaku-sales-table th,
    .nakihaku-sales-table td {
        padding: 8px;
    }
    
    .nakihaku-end-date {
        font-size: 12px;
        padding: 4px 8px;
    }
}